Hello André,
Does your client send INVITE requests with a unique Call-Id ? If not, I would
say that your calls will be blocked on the first recv state after one loop,
because if the server receives a second INVITE with a different Call-Id, a new
call will be created and the first call won't go further with its scenario.
About your second question: this is not currently possible with sipp (at least
with the stable version), for the calls are created on the server side when the
first message is received.
Hope this helps.
Olivier Boulkroune
________________________________
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Andre Wangler
Envoyé : vendredi 1 juin 2007 08:54
À : [email protected]
Objet : [Sipp-users] Conditional branching in sipp 2.0.1
Hello all
I have some problems with my xml-scenario. My branchings seem not to work. It
terminates after one loop. Is something wrong with my scenario file? (sipp
2.0.1...)
Another question: Isn't it possible to 'execute' a NOP in the very beginning?
The first NOP is only executed just when an INVITE comes in. I want to execute
the <action> once at initialisation. Thanks for your answer.
Best regards
André
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario>
<nop>
<action>
<exec command="echo '[phys] is waiting for calls' >> /tmp/testresult.log
"/>
</action>
</nop>
<label id="8"/>
<recv request="INVITE" crlf="true">
</recv>
<pause milliseconds="50"/>
<nop>
<action>
<exec command="echo '[local_ip] mapped number to [phys]' >>
/tmp/testresult.log "/>
</action>
</nop>
<send>
<![CDATA[
SIP/2.0 180 Ringing sip:[local_ip] SIP/2.0
[last_Via:]
Max-Forwards:10
[last_To:]
[last_From:]
Call-ID: [call_id]
[last_CSeq:]
Contact: <sip:[EMAIL PROTECTED]>
Expires: 10
Content-Length:[len]
]]>
</send>
<send>
<![CDATA[
SIP/2.0 200 OK sip:[local_ip]
[last_Via:]
Max-Forwards:10
To:[last_From]
From:[EMAIL PROTECTED];tag=[phys]
Call-ID: [call_id]
[last_CSeq:]
Contact:<sip:[EMAIL PROTECTED]>
Content-Length:0
]]>
</send>
<recv request="ACK">
</recv>
<recv request="BYE">
</recv>
<send next="8">
<![CDATA[
SIP/2.0 200 OK sip:[local_ip]
[last_Via:]
Max-Forwards:10
To:[last_From]
From:[EMAIL PROTECTED];tag=[phys]
Call-ID: [call_id]
[last_CSeq:]
Contact:<sip:[EMAIL PROTECTED]>
Content-Length:0
]]>
</send>
</scenario>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users