I'm not actively using SIPP since I left Newport Networks but I thought you
could add branches to PAUSE statements - I'm sure I used to do that. You could
also try NOP (but that was post the version I was using).
Peter
Date: Tue, 4 Nov 2008 09:00:03 +0100From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
[EMAIL PROTECTED]: Re: [Sipp-users] SIPP Conditional Branching with
If-Then-Else Variable TestingDavid Adams wrote:
Hi,
I'm trying to build error-handling into a scenario with conditional-branching
and variable testing. With the latest stable version of SIPP, I know I have
the ability to use regexp to populate variables, and then in some actions such
as <send> / <receive> I can test a variable and jump to a label after the
<send> or <receive> action has been executed.
What I'd like to be able to do is setup a variable, then based on whether the
variable is set or not, then go to a different place in my scenario file.
So far I have not been able to figure how to do this, if it's even possible.
SIPP seems to support the "Else" part of the If-Then-Else with the variable
testing and next arguments as part of <send> and <receive> operations.
1. Is there a way to do this in SIPP3.x? If not,
2. Could you direct me to the most logical place in the code that I would need
to modify to build this feature?
Thanks,
Dave Adams. Hello Adams, Yes you can build error handling.Personally, I use the
next statement of the receive, + regexp. I do not need 'else'There is also a
special tag for unexpected message catch + return jump.Please look at
conditional testing in the SIP unstable version documentation.The difficult
part is to build regexp; remind that the matching is GLOBAL ( multiline) not ,
by line !! So you must be prepare to match \r\n !I always put a <action><log>
just after my regexp to check them ! There is no good trace for now in that
area.Hope that help FrancoisExample: testing against content of a key<nop>
<action> <assignstr assign_to="8" value="[imediaDirection]" /> <test
assign_to="9" variable="8" compare="equal" value="1"/> </action></nop>example
RTP param extract<nop next="1" test="9"> </nop> <recv response="200">
<!-- wait response, and extract RTP port --> <action> <!-- get the
audio rtp port and IP to send to --> <ereg regexp="IP4
([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)" search_in="msg" assign_to="0,10"/>
<ereg regexp="m=audio ([0-9]+) RTP" search_in="msg" assign_to="0,11"/>
</action> </recv>
_________________________________________________________________
Win £1000 John Lewis shopping sprees with BigSnapSearch.com
http://clk.atdmt.com/UKM/go/117442309/direct/01/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users