On Sat, Dec 6, 2008 at 11:01 AM, cool goose <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I installed SIPp in ubuntu from apt-packages where it is named as
> SIP-tester. By using this version of SIPp, can I do authentication? or do I
> need to compile it from source in ubuntu? I mean When SIPp sends REGISTER
> message to a registrar and gets 401 unauthorized, in this case, can I make
> SIP-tester (SIPp) to compute the challange and resend the REGISTER? I am new
> to SIPp and any help would be greatly appreciated guys.


Hi,
the fastest way to discover is to try it.
I'm sending a register scenario and a file for data injection.

Just update data.txt with your user info and run:
sipp -i your_ip_address -p your_sip_port -sf reg.xml -inf data.txt -m 1
registrar
SEQUENTIAL
gandalf;middle-earth.com;[authentication username=gandalf password=qerafecdsdr]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="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 -->
  <!-- Ex.: sipp -i 192.168.2.122 -p 6060 -sf test.xml -inf data.txt 192.168.2.123 -->

  <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:[EMAIL PROTECTED]>;tag=[pid]SIPpTag00[call_number]
To: "[field0]" <sip:[EMAIL PROTECTED]>
Call-ID: [call_id]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
CSeq: 1 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="401" auth="true">
  </recv>

  <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:[EMAIL PROTECTED]>;tag=[pid]SIPpTag00[call_number]
To: "[field0]" <sip:[EMAIL PROTECTED]>
Call-ID: [call_id]
Contact: <sip:[EMAIL PROTECTED]:[local_port]>
CSeq: 1 REGISTER
[field2]
Expires: 3600
User-Agent: ATA
Content-Length: 0

    ]]>
   </send>

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

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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to