[asterisk-users] Fwd: regarding error in SIPp

viswavardhanreddy karna viswavardhanreddy at gmail.com
Mon Jan 31 10:49:40 CST 2011


HI
             I have used this xml file for registering a sipp client with
asterisk i dont know whether it is correct or not.. could you please rectify
and inform me where i did wrong....

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="registration">

<send retrans="500">
<![CDATA[
REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "[field0]" <sip:[field0]@[local_ip]:[local_port]>;tag=[call_number]
To: "[field0]" <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: reg///[call_id]
CSeq: 1 REGISTER
Contact: <sip:[field0]@[local_ip]:[local_port]>
Expires: 3600
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Supported: path
]]>
</send>

<recv response="401" auth="true" rtd="true">
</recv>

<send retrans="500">
<![CDATA[
REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 20
From: "[field0]" <sip:[field0]@[local_ip]>;tag=[call_number]
To: "[field0]" <sip:[field0]@[remote_ip]>
Call-ID: reg///[call_id]
CSeq: 2 REGISTER
Contact: <sip:[field0]@[local_ip]:[local_port]>
Expires: 3600
Content-Length: 0
User-Agent: Sipp v1.1-TLS, version 20061124
Authorization: Digest username="bob", realm="asterisk"
Supported: path
]]>
</send>

<recv response="200" auth="true" rtd="true" >
</recv>

<ResponseTimeRepartition value="10, 20"/>
<CallLengthRepartition value="10"/>

</scenario>

in the wireshark trace i got the follwing traces like.......

210    1703.872509    127.0.0.1    127.0.0.1    SIP    Request: BYE
sip:bob at 127.0.0.1 <sip%3Abob at 127.0.0.1>
2    0.000337    127.0.0.1    127.0.0.1    SIP    Status: 401
Unauthorized    (0 bindings)
3    0.000642    127.0.0.1    127.0.0.1    SIP    Request: REGISTER
sip:127.0.0.1
4    0.060737    127.0.0.1    127.0.0.1    SIP    Status: 200 OK    (1
bindings)

5    6.421330    127.0.0.1    127.0.0.1    SIP    Request: REGISTER
sip:127.0.0.1
6    6.421604    127.0.0.1    127.0.0.1    SIP    Status: 401
Unauthorized    (0 bindings)
7    7.421080    127.0.0.1    127.0.0.1    SIP    Request: REGISTER
sip:127.0.0.1
8    7.421359    127.0.0.1    127.0.0.1    SIP    Status: 401
Unauthorized    (0 bindings)

9    8.421026    127.0.0.1    127.0.0.1    SIP    Request: REGISTER
sip:127.0.0.1
10    10.076914    127.0.0.1    127.0.0.1    SIP    Status: 401
Unauthorized    (0 bindings)
11    10.077348    127.0.0.1    127.0.0.1    SIP    Request: BYE
sip:bob at 127.0.0.1 <sip%3Abob at 127.0.0.1>
12    10.077582    127.0.0.1    127.0.0.1    SIP    Status: 481 Call
leg/transaction does not exist


can you please help me how can i over come this problem......



I am getting the error as

register------------------------10
401------------------------------10
register---------------------------10
200ok-----------------------------------------------------------10
unexpected messages



BR
viswavardhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110131/232d4aad/attachment-0001.htm>


More information about the asterisk-users mailing list