Hello!

I'm trying to use SIPp for testing challenging in Authentication. Ie I'm trying to acheive
the following scenario,
 
    1. Send Register
    2. Recv 401, with Proxy Authenticate header
    3. Send Register with credentials
   4. Receive 200 Ok.
 
But My SIP Ptroxy server could not parse the 2nd Register.

 

I compile sipp with authentication support,

 

sipp  -sf branchc2.xml 213.180.213.34 -i 213.180.213.37 -p 5060 -s as.cti.ru  -inf auth.csv

 

Here is my auth.csv

jhgdsf;[authentication username=joe password=schmo];

r.rabochiy;[authentication username=r.rabochiy password=123456];

 

Here is my xml file.

 

<?xml version="1.0" encoding="ISO-8859-1" ?>

 <scenario name="Callee">

 

 <!-- REGISTRATION Starts -->

 

 <send retrans="500">

     <![CDATA[

    

       REGISTER sip:boropbx.com;transport=[transport] SIP/2.0

       Via: SIP/2.0/[transport] [local_ip]:[local_port]

       From: <sip:[EMAIL PROTECTED]>;tag=[call_number]

       To: <sip:[EMAIL PROTECTED]>

       Call-ID: [call_id]

       CSeq: 2 REGISTER

       Contact: <sip:[EMAIL PROTECTED]:[local_port]>

       Expires: 600

       Content-Length: 0

    

     ]]>

 </send>

 

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

 </recv>

 

 <send>

     <![CDATA[

 

       REGISTER sip:boropbx.com;transport=[transport] SIP/2.0

       Via: SIP/2.0/[transport] [local_ip]:[local_port]

       From: <sip:[EMAIL PROTECTED]>;tag=[call_number]

       To: <sip:[EMAIL PROTECTED]>

       Call-ID: [call_id]

       CSeq: 2 REGISTER

       Contact: <sip:[EMAIL PROTECTED]:[local_port]>

       Expires: 600

       Content-Length: 0

       [authentication username=r.rabochiy password=123456]

 

    

     ]]>

 </send>

 

 <recv response="200">

 </recv>

 

 <!-- REGISTRATION End -->

 

 

 </scenario>

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to