I have done a script like yours. I think the problem is that you don't
specified in REGISTER message the way of authentication. Look my REGISTER
message and maybe help you to understand me :)

  <send retrans="500" start_rtd="1">
    <![CDATA[
      REGISTER sip:[field1] 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]>
      Call-ID: [call_id]
      CSeq: 1 REGISTER
      Contact: <sip:[EMAIL PROTECTED]:[local_port]>;expires=1800
      Expires: 1800
      Content-Length: 0
      Authorization: Digest username="[EMAIL PROTECTED]", realm="[field3]"
      Supported: path
    ]]>
  </send>

Then, you can put different fieldX depending of how you wrote the file .csv

Finally, I send a copy of this message to sipp-users cause maybe in the
future, our thread can be useful for other people.


Regards,


On Mon, Oct 6, 2008 at 4:31 PM, Raquel Cruz <[EMAIL PROTECTED]> wrote:

> Hi Vanessa
> I've done what you said and I still can't do a registration successfully.
> Let's see:
>
> My auth.csv:
> me;[autentication [EMAIL PROTECTED] password=12345]
>
> My xml file:
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE scenario SYSTEM "sipp.dtd">
>
> <scenario name="Register test">
>
> <send>
> <![CDATA[
>
> REGISTER sip:[EMAIL PROTECTED] SIP/2.0
>  Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
> Max-Forwards: 70
>  From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
> To: <sip:[EMAIL PROTECTED]>
>  Call-ID: [call_id]
> CSeq: [cseq] REGISTER
> Contact:
> <sip:[local_ip]:[local_port];transport=UDP>;methods="INVITE,NOTIFY,MESSAGE,ACK,BYE,CANCEL";cfwd="False";smsfwd="True";mmsfwd="True"
>  Content-Length:  0
> ]]>
> </send>
> <recv response="100" optional="true">
>   </recv>
> <recv response="180" optional="true">
>   </recv>
> <recv response="401" auth="true">
>   </recv>
>
> <send>
> <![CDATA[
>
> REGISTER sip:[EMAIL PROTECTED] SIP/2.0
>  Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
> Max-Forwards: 70
>  From: <sip:[EMAIL PROTECTED]>;tag=[call_number]
> To: <sip:[EMAIL PROTECTED]>
>  Call-ID: [call_id]
> CSeq: [cseq] REGISTER
> Contact:
> <sip:[local_ip]:[local_port];transport=UDP>;methods="INVITE,NOTIFY,MESSAGE,ACK,BYE,CANCEL";cfwd="False";smsfwd="True";mmsfwd="True"
>  [field1]
> Content-Length:  0
> ]]>
> </send>
>
> <recv response="100" optional="true">
>   </recv>
> <recv response="180" optional="true">
>   </recv>
> <recv response="200" rtd="true">
>   </recv>
>
> </scenario>
>
> I use to call this scenario like this:
>
> sipp -sg registerScenario.xml -t un -inf auth.csv -trace_err -i
> 172.18.1.120 192.168.1.80:6052
>
> Can you see where the problem is? I really can't find it.
>
> Thanks anyway
> Kelle
>
> 2008/10/6 Vanessa Tejada Muñoz <[EMAIL PROTECTED]>
>
> Hi Raquel,
>>
>> look at this:
>> http://sipp.sourceforge.net/doc/reference.html#SIP+authentication
>>
>> You need a csv document with your users, put the variable in your cdata
>> and finally add -inf doc.csd in the command line.
>>
>> Regards
>>
>>
>> On Mon, Oct 6, 2008 at 1:09 PM, Raquel Cruz <[EMAIL PROTECTED]> wrote:
>>
>>> Hi everyone,
>>> I would like to build a scenario just with a REGISTER request but my SIP
>>> server use Digest/MD5 as authentication method. When I do the request it
>>> returnes a 401 error and I don't know how to be authenticated.
>>>
>>> Can you help me?
>>>
>>> Thanks,
>>> Kelle
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Sipp-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/sipp-users
>>>
>>>
>>
>>
>> --
>>
>>     Vanessa Tejada
>>
>
>


-- 

    Vanessa Tejada
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to