Try this script for me it worked

On Wed, Feb 2, 2011 at 1:21 AM, viswavardhanreddy karna <
[email protected]> wrote:

> Hi every one,
>                         I am trying to register a sipp client at asterisk
> server...
>
>
> Below i am sending you my register_client.xml file when i run this file i
> am getting this error as
>
> Aborting call on unexpected message for Call-Id '[email protected]': while
> expecting '200' (index 3), received 'SIP/2.0 401 Unauthorized
>
> my xml file is:
>
> <?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: [call_id]
> CSeq: 1 REGISTER
> Contact: <sip:[field0]@[local_ip]:[local_port]>
> Expires: 3600
> Content-Length: 0
> Authorization: Digest username="[field0]", realm="asterisk"
> User-Agent: Sipp v1.1-TLS, version 20061124
> ]]>
> </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: [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
>
> [field1]
> ]]>
> </send>
>
> <recv response="200" auth="true" rtd="true">
> </recv>
>
> <ResponseTimeRepartition value="10, 20"/>
> <CallLengthRepartition value="10"/>
>
>
> </scenario>
>
>
> Please help me to solve this issue..... i am using ossl support for
> authenticating.....
>
>
>
>
> Awaiting fro the reply as soon as possible.....
>
>
>
>
>
>
> with regards,
> viswavardhan
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Sipp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>


-- 
Thank you  with regards,
Gopalakrishnan A.N.
VoIP call - sip:[email protected]
SEQUENTIAL
1002;192.168.0.63;[authentication username=1002 password=1002]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="ATA Registration">
  <!-- You must supply a file containing data for injection -->
  <!-- field0 : username -->
  <!-- field2 : domain -->
  <!-- field2 : authentication -->  
  <!-- Sample
SEQUENTIAL
gandalf;middle-earth.com;[authentication username=gandalf password=qerafecdsdr]
  -->
  <!-- arguments to sipp must include: -->
  <!-- -i : local_ip -->
  <!-- -p : local_port -->
  <!-- -sf : scenario file -->
  <!-- -inf : injection data file -->
  <!-- -d : delay between successful registrations -->
  <!-- Ex.: sipp -i 192.168.2.122 -p 6060 -sf register.xml -inf data.txt -d 20000 192.168.2.123 -->

  <nop>
    <action>
      <assign assign_to="1" value="0" />
    </action>
  </nop>

  <label id="1" />

  <nop>
    <action>
      <add assign_to="1" value="1" />
      <assignstr assign_to="2" value="[$1]" />
      <ereg regexp="[0-9]+" search_in="var" variable="2" assign_to="2" check_it="true" />
    </action>
  </nop>

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

REGISTER sip:[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: "[field0]" <sip:[field0]@[field1]>;tag=[pid]SIPpTag00[call_number]
To: "[field0]" <sip:[field0]@[field1]>
Call-ID: [call_id]
Contact: <sip:[field0]@[local_ip]:[local_port]>
CSeq: [$2] REGISTER
Max-Forwards: 70
Expires: 3600
Allow: INVITE,CANCEL,ACK,BYE,NOTIFY,REFER,OPTIONS,INFO,MESSAGE
User-Agent: ATA
Content-Length: 0

    ]]>
  </send>
	<recv response="100" optional="true"/>
  <recv response="401" auth="true" next="auth_required" optional="true"/>
  <recv response="407" auth="true" next="auth_required"/>

  <label id="auth_required" />

  <nop>
    <action>
      <add assign_to="1" value="1" />
      <assignstr assign_to="2" value="[$1]" />
      <ereg regexp="[0-9]+" search_in="var" variable="2" assign_to="2" check_it="true" />
    </action>
  </nop>


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

REGISTER sip:[field1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: "[field0]" <sip:[field0]@[field1]>;tag=[pid]SIPpTag00[call_number]
To: "[field0]" <sip:[field0]@[field1]>
Call-ID: [call_id]
Contact: <sip:[field0]@[local_ip]:[local_port]>
CSeq: [$2] REGISTER
[field2]
Expires: 3600
User-Agent: ATA
Content-Length: 0

    ]]>
   </send>
<recv response="100" optional="true"/>
  <recv response="200">
  </recv>

  <!-- This delay can be customized by the -d command-line option       -->
  <!-- or by adding a 'milliseconds = "value"' option here.             -->
  <pause/>

  <nop next="1" />

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

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to