On Fri, Feb 25, 2011 at 12:21 AM, SHACHAM, RON (RON) <
[email protected]> wrote:

>  Hi.
>
> Is there some way to script a scenario to allow for multiple correct
>
> orderings of messages?
>
>
>
> Here is a simple example: when a SUBSCRIBE is sent, the sender
>
> should be ready to receive either the 200 OK or the NOTIFY first, as
>
> per RFC 3265.
>
>
>
> If I just write the scenario with <recv> of the response first, it will not
>
> know what to do if the NOTIFY sometimes comes first, and will mark it
>
> as an unexpected message.
>
>
>
> Any help would be really appreciated.
>

I think you can use recv with tags "optional" and "next" like this (I wrote
from memory, please check syntax):


<recv request="NOTIFY" optional="true" next="handle_overlapping_notify"/>

<recv response="200" /> # for SUBSCRIBE
<recv request="NOTIFY"/>

<send>
  200 OK for NOTIFY here.
</send>

<nop next="all_done"/>

<label id="handle_overlapping_notify"/>

<send">
  200 OK for NOTIFY here.
</send>
<recv response="200" /> # for SUBSCRIBE


<label id="all_done"/>


Maybe there is a simpler and cleaner way, but this i what I would start
with.
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to