Hello
I have two sipp scrips representing alice and bob. When I start the alice
script, it registers to the SIP server, sends a SIP:MESSAGE to bob trough
the same sip server and then, when 200 OK is received, it unregisters from
the server. Bob will also register to the same SIP server, then it waits for
the message from alice, sends the 200 OK and then unregisters from the
server.
Here is the flow:
Alice SIP server Bob
| | |
| REGISTER | REGISTER |
|----------->|<-----------|
| 401 | 401 |
|<-----------|----------->|
| | |
| | |
| REGISTER | REGISTER |
|----------->|<-----------|
| 401 | 401 |
|<-----------|----------->|
| | |
| | |
| MESSAGE | MESSAGE |
|----------->|----------->|
| 200 | 200 |
|<-----------|<-----------|
| | |
| | |
| | |
| REGISTER | REGISTER |
|----------->|<-----------|
| 200 | 200 |
|<-----------|----------->|
The problem is that Bob's sipp scrip does not parse the received SIP:MESSAGE
as it should. I can see the message in the messages log, but the script does
not want to jump over the <recv> block. What can the problem be?
Thank you
LucTeo
Here are the scripts:
alice.xml
---------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- Register -->
<scenario name="alice_sends_message_to_bob">
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: [call_id]
CSeq: 2 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
[field3]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<!-- Send message and wait for response -->
<pause milliseconds="500" />
<send retrans="500">
<![CDATA[
MESSAGE sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field1] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: msg-[call_id]
CSeq: 1 MESSAGE
Max-Forwards: 20
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Type: text/plain
Content-Length: [len]
Hello Bob!
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<!-- Unregister -->
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: [call_id]
CSeq: 3 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
[field3]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
<action>
<log message="SUCCESS"/>
</action>
</recv>
<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>
</scenario>
bob.xml
-------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- Register -->
<scenario name="alice_sends_message_to_bob">
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field1] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="401" auth="true" rtd="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Service-Route" assign_to="1" />
</action>
</recv>
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
From: [field1] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field1] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: [call_id]
CSeq: 2 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
[field4]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<!-- Wait for the message and send the response -->
<pause milliseconds="100" />
<recv request="MESSAGE" crlf="true">
</recv>
<send retrans="500">
<![CDATA[
BUBU sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field1] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: msg-[call_id]
CSeq: 1 MESSAGE
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 20
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<!-- Unregister -->
<send retrans="500">
<![CDATA[
REGISTER sip:[field2] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: [$1]
From: [field1] <sip:[EMAIL PROTECTED]>;tag=[call_number]
To: [field1] <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-UTRAN-TDD;utran-cell-id-3gpp=C359A3913B20E
Call-ID: [call_id]
CSeq: 3 REGISTER
Contact: sip:[EMAIL PROTECTED]:[local_port]
[field4]
Max-Forwards: 20
Expires: 1800
User-Agent: Sipp v1.1-TLS, version 20061124
Content-Length: 0
Supported: path
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
<action>
<log message="SUCCESS"/>
</action>
</recv>
<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>
</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