On Wed, Apr 6, 2011 at 5:32 PM, Himanshu Rawat <himanshu.ra...@gmail.com>wrote:
> Hi,
>
> Is there any way we can do If else condition or while loop in sipp script?
>
Yes. Read about it here:
http://sipp.sourceforge.net/doc/reference.html#Conditional+branching+in+scenarios
>
> For e.g. scenario
>
> Messages Retrans Timeout
> Unexpected-Msg
> ----------> INVITE 0 0 0 0
>
> <---------- 100 0 0
> <---------- 180 0 0
> <---------- 200 0 0
> <---------- 200 0 0
> ----------> ACK 0 0 0 0
>
> sipp is running as UAS. Till ACK receiving it's done.
>
> After the ACK recieved, i need to wait for 90 seconds.
>
> If in these 90 seconds, Re-Invite comes from Application server, loop from
> 100 to 200
> else
> send BYE
>
It would be something like this (not actual scenario syntax):
<recv request="INVITE"/>
<label id="invite_received" />
<send 100 />
<send 180/>
<send 200/>
<send 200/>
<recv request="ACK"/>
<recv request="INVITE" timeout="90000" ontimeout="no_invite_received"/>
<nop next="invite_received" />
<label id="no_invite_received"/>
<send BYE/>
<recv response="200"/>
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users