> From: KATWALA, KALPESH, ATTLABS [mailto:[email protected]]
> Sent: Thursday, February 26, 2009 3:49 PM
> Try using an optional Parameter.
>
> <recv request="INVITE" optional="true">
> <action>
> ...
> </action>
> </recv>
>
> <recv request="BYE" optional="true">
> <action>
> ...
> </action>
> </recv>
IIUC, this won't work. There must be at least one non-optional <recv>
in a group. To expect both, this sequence should do the trick:
[SNIP]
<recv request="INVITE" optional="true" next="4"/>
<recv request="BYE"/>
<recv request="INVITE' next="5"/>
<label id="4"/>
<recv request="BYE"/>
<label id="5"/>
<!-- Perform actions now -->
[/SNIP]
The two paths are inner and outer. Now if only I could figure out how
to do "there may or may not be another packet after the mandatory one, just
don't flag it as an error"...
HTH,
Mike
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users