Hello,
I have a scenario of a client that registers and then must quit after
receiving x calls.
The scenario goes like this:
<nop>
<action>
<assignstr assign_to="NumberOfCallsToAwnserTemp"
value="[field1]"/>
-- field[1] contains the value 2
<todouble assign_to="NumberOfCallsToAwnser"
variable="NumberOfCallsToAwnserTemp"/>
</action>
</nop>
<label id="ReceiveCall"/>
<recv request="INVITE" rrs="true"> </recv>
<send><![CDATA[....]]></send>
<recv request="ACK" rrs="true"/>
<recv request="BYE><\recv>
<send><![CDATA[...]]></send>
<nop>
<action>
<exec command="echo '[$NumberOfCallsToAwnser]' >> file.log"/>
---> This will always print 2 that is the value of [field1]
<subtract assign_to="NumberOfCallsToAwnser" value="1" />
<exec command="echo '[$NumberOfCallsToAwnser]' >> file.log"/>
---> This will always print 1
<test assign_to="NumberOfCallsToAwnserIsZero"
variable="NumberOfCallsToAwnser" compare="equal" value="0"/>
<test assign_to="NumberOfCallsToAwnserGreaterZero"
variable="NumberOfCallsToAwnser" compare="greater_than" value="0"/>
</action>
</nop>
<nop hide="true" test="NumberOfCallsToAwnserIsZero" next="Unregister" />
<nop hide="true" test="NumberOfCallsToAwnserGreaterZero"
next="ReceiveCall" /> -- here i go to ReceiveCall to make a loop
<label id="Unregister"/>
....Unregister part
The problem is that when i go to ReceiveCall label the variable
NumberOfCallsToAwnser is always reset to the inicial value of 2.
Is there a way to prevent the reset of this variable ??
I am using the latest version of the sipp for snapshots for windows, I
have noticied that the other versions do the same.
TIA
Ricardo Fernandes
-------------------------------------------------------------------------
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