Checked-in (rev 317). 

Thanks Pandu !

 

Olivier Boulkroune

 

________________________________

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Pandurangan R S
Envoyé : samedi 29 septembre 2007 10:56
À : Clemix
Cc : sipp-users
Objet : Re: [Sipp-users] Authentification by using the commandlineparameters -s 
and -ap dosnt work

 

Hi Clemix,

I have submitted the patch on 20th Sep 
(http://sourceforge.net/tracker/index.php?func=detail&aid=1798660&group_id=104305&atid=637566
 ).

But looks like it is not yet applied to the trunk.

Regards
Pandu

On 9/28/07, Clemix <[EMAIL PROTECTED] > wrote:

Hello,
I'm using SIPp v2.0.1-TLS-PCAP, version 20070516, built Sep 28 2007, 
11:45:57.
I build a Register scenario with auth on 401:
    REGISTER ---------->
         401 <----------
         403 <----------
         200 <----------
    REGISTER ---------->
         200 <----------
       Pause [   2000ms]

my auth Message looks like:
REGISTER sip:[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip] : [local_port]
To: <sip:[service] @ [remote_ip] : [remote_port]> 
Contact: <sip:[service] @ [local_ip] : [local_port]>;transport=[transport]
[authentication]
Expires: 300
Call-ID: [call_id]
CSeq: 2 REGISTER
Content-Length: 0

(spaces are cause of mailing list) 

using (/reference.html#SIP+authentication):
sipp -i <localIp> -p 6605 -sf REGISTER_AUTH.xml  <remoteIp> -m 1 -s
<service|username> -ap <password>

Does't work anyway. Wireshark displays me that the username are empty: 
Authorization: Digest
username="",realm="<REALM>",uri="sip:<remoteIp>:5060",nonce="6905429",response="1697aa49964657c0407c33c02f039833",algorithm=MD5
following dirty little diff resolves it for me:

--- call.cpp    2007-05-16 11:03:38.000000000 +0200
+++ ../../programme/sipp-2.0.1/call.cpp 2007-09-28 11:45:39.555982000 +0200
@@ -2262,8 +2262,14 @@ char* call::createSendingMessage(char * 
         /* Look for optional username and password parameters */
         /* add aka_OP, aka_AMF, aka_K */
         key = getKeywordParam(src, "username=", my_auth_user);
+       if(my_auth_user[0] == '\0'){ 
+               strcpy(my_auth_user, service);
+       }
         memset(my_auth_pass,0,KEYWORD_SIZE);
         key = getKeywordParam(src, "password=", my_auth_pass);
+       if(my_auth_pass[0] == '\0'){ 
+           strcpy(my_auth_pass, auth_password);
+       }
         memset(my_aka_OP,0,KEYWORD_SIZE);
         key = getKeywordParam(src, "aka_OP=", my_aka_OP);
         memset(my_aka_AMF,0,KEYWORD_SIZE); 


The mistake also appear with version SIPp v2.0-TLS-PCAP, version
20070920, built Sep 28 2007, 11:48:36.

regards
clemix


------------------------------------------------------------------------- 
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to