Hello Louis,

 

You may retry with the latest SVN trunk version, a fix concerning this 
parameter has just been checked-in.

 

Regards,

Olivier Boulkroune

 

________________________________

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED]
Envoyé : lundi 11 juin 2007 17:51
À : [email protected]
Objet : [Sipp-users] Authentication problem : cnonce=0

 


Hi ! 

I am working over a UAC scenario including authentication (digest/MD5). I have 
a problem with the SIP UAS (Nortel's MCS) which is accepting my second INVITE 
(with credentials). The call completes,  but the UAS sends another 407... Which 
causes problem in my scenario. Not beeing able to find any error message in the 
 to explain this behaviour, I looked to the Proxy-Authorization parameters to 
find differences with other working clients. I found that SIPp doesn't fill the 
cnonce parameter (cnonce="0"). All the traces shown on the site have cnonce 
filled "correctly"... So it may be the problem 

What is wrong in the following scenario to explain the cnonce="0" ? 

(extract from sip trace) 
proxy-authorization: Digest username="test15", realm="Realm", 
nonce="MTE4MTE0MTExNTA1OTliNGJkYmIzZDljOGQ5ZmEyZDRlNjMwMzJlOWZhZDMz", 
uri="sip:10.10.10.10:5060", response="9709414d14c003a24401fdcb987f35d1", 
algorithm=MD5, cnonce="0", qop=auth,nc=00000001 

Thanks ! 
-Louis Lamarre 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 

<?xml version="1.0" encoding="ISO-8859-1" ?> 
<scenario name="Basic SSL UAC"> 

<send retrans="500"> 
    <![CDATA[ 

      INVITE sip:[EMAIL PROTECTED] SIP/2.0 
      v: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 
      f: <sip:[EMAIL PROTECTED]>;tag=[pid]LoUISLAMArre[call_number] 
      t: <sip:[EMAIL PROTECTED]> 
      i: [call_id] 
      CSeq: 1 INVITE 
      m: <sip:[EMAIL PROTECTED]:[media_port];maddr=[local_ip]> 
      Max-Forwards: 70 
      User-Agent: SIPp Test Agent 
      x-nt-location: 3878789 
      c: application/sdp 
      l: [len] 

      v=0 
      o=test15 53655765 2353687637 IN IP[local_ip_type] [local_ip] 
      s=- 
      c=IN IP[media_ip_type] [media_ip] 
      t=0 0 
      m=audio [media_port] RTP/AVP 0 
      a=rtpmap:0 PCMU/8000 

    ]]> 
  </send> 
  
  <recv response="100" optional="true"> 
          <action>  <log message="Apres INVITE, recu 100"/> 
          </action> 
  </recv> 
    
  <recv response="407" auth="true"> 
          <action>  <log message="Apres INVITE, recu 407"/> 
                    <ereg regexp="tag=([[:alnum:]]*)" search_in="hdr" 
header="To:" assign_to="1,2" /> 
                    <ereg 
regexp="received=([[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*\.[[:alnum:]]*)" 
search_in="hdr" header="Via:" assign_to="3,4" /> 
              <log message="Tag du 407:[$2]"/> 
              <log message="IP recu dans le 407:[$4]"/> 
          </action> 
  </recv> 
    
   <send> 
   <![CDATA[ 

      ACK sip:[EMAIL PROTECTED]:[remote_port];maddr=[remote_ip] SIP/2.0 
      v: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 
      f: <sip:[EMAIL PROTECTED]>;tag=[pid]LoUISLAMArre[call_number] 
      t: <sip:[EMAIL PROTECTED]>;tag=[$2] 
      i: [call_id] 
      CSeq: 1 ACK 
      m: <sip:[EMAIL PROTECTED]:[media_port];maddr=[local_ip]> 
      Max-Forwards: 70 
      l: 0 

    ]]> 
  </send> 

<nop>  <action>  <log message="Apres ACK"/>         </action> </nop> 

  <send retrans="500"> 
    <![CDATA[ 

      INVITE sip:[EMAIL PROTECTED] SIP/2.0 
      v: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 
      f: <sip:[EMAIL PROTECTED]>;tag=[pid]LoUISLAMArre[call_number] 
      t:<sip:[EMAIL PROTECTED]> 
      Call-ID: [call_id] 
      CSeq: 2 INVITE 
      m: <sip:[EMAIL PROTECTED]:[media_port];maddr=[$4]> 
      [authentication username=test15 password=pwd] 
      Max-Forwards: 70 
      x-nt-location: 3878789 
      c: application/sdp 
      Content-Length: [len] 

      v=0 
      o=test15 53655765 2353687637 IN IP[local_ip_type] [local_ip] 
      s=- 
      c=IN IP[media_ip_type] [media_ip] 
      t=0 0 
      m=audio [media_port] RTP/AVP 0 
      a=rtpmap:0 PCMU/8000 

    ]]> 
  </send> 

  <recv response="100" optional="true"> 
          <action>  <log message="Apres INVITE/AUTH, recu 100"/> 
          </action> 
  </recv> 
  <recv response="180" optional="true"> 
          <action>  <log message="Apres INVITE/AUTH, recu 180"/> 
          </action> 
  </recv> 
  <recv response="183" optional="true"> 
          <action>  <log message="Apres INVITE/AUTH, recu 183"/> 
          </action> 
  </recv> 
  <recv response="407" optional="true"> 
          <action>  <log message="Apres INVITE/AUTH, recu 407"/> 
          </action> 
  </recv> 
  <recv response="200" rtd="true"> 
          <action>  <log message="Apres INVITE/AUTH, recu 200"/> 
          </action> 
  </recv> 


  <send> 
    <![CDATA[ 

      ACK sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 
      From: <sip:[EMAIL PROTECTED]>;tag=[pid]LoUISLAMArre[call_number] 
      To:<sip:[EMAIL PROTECTED]> 
      Call-ID: [call_id] 
      CSeq: 1 ACK 
      Contact: <sip:[EMAIL PROTECTED]> 
      Max-Forwards: 70 
      Subject: Performance Test 
      Content-Length: 0 

    ]]> 
  </send> 

<nop>  <action>  <log message="Apres ACK, pause"/>         </action> </nop> 

<pause milliseconds="200"/> 

<nop>  <action>  <log message="Apres pause envoie BYE"/>         </action> 
</nop> 

  <send retrans="500"> 
    <![CDATA[ 

      BYE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0 
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] 
      From: <sip:[EMAIL PROTECTED]>;tag=[pid]LoUISLAMArre[call_number] 
      To:<sip:[EMAIL PROTECTED]> 
      Call-ID: [call_id] 
      CSeq: 3 BYE 
      Contact: <sip:[EMAIL PROTECTED]> 
      Max-Forwards: 70 
      Subject: Performance Test 
      Content-Length: 0 

    ]]> 
  </send> 

<nop>  <action>  <log message="Apres BYE, attends 200 OK"/>         </action> 
</nop> 

  <recv response="200" crlf="true"> 
  </recv> 

<nop>  <action>  <log message="Recu 200 OK"/>         </action> </nop> 

  <!-- definition of the response time repartition table (unit is ms)   --> 
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> 

  <!-- definition of the call length repartition table (unit is ms)     --> 
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> 

</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

Reply via email to