i need help using SIPp tool for testing Asterisk server, both are installed
in my pc.

i want to do a test using one socket per ip address, but i have a problems
my asterisk do not found the user who sipp send the INVITE
i have this response on SIPp bash-terminal:
2007-07-05 17:33:34: Aborting call on unexpected message for Call-ID '
[EMAIL PROTECTED]': while expecting '100' response, received 'SIP/2.0 404
Not Found
Via: SIP/2.0/UDP 10.40.4.100:5061;branch=z9hG4bK-30618-21-0;received=
10.40.4.100
From: sipp <sip: [EMAIL PROTECTED]:5061>;tag=30618SIPpTag0021
To: sut <sip:[EMAIL PROTECTED]:5060>;tag=as70c3acc2
Call-ID: [EMAIL PROTECTED]
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

these are my sip.conf and extension.conf from my asterisk, and this is my
escenario.xml for SIPp tool

miEscenario2.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="Basic Sipstone UAC">
 <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
 <!-- generated by sipp. To do so, use [call_id] keyword.
-->
 <send retrans="500">
   <![CDATA[

     INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
     Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
     From: [field2]
<sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag00[call_number]
     To: sut <sip:[EMAIL PROTECTED]:[remote_port]>
     Call-ID: [call_id]
     CSeq: 1 INVITE
     Contact: sip:[EMAIL PROTECTED]:[local_port]
     Max-Forwards: 70
     Subject: Performance Test
     Content-Type: application/sdp
     Content-Length: [len]

     v=0
     o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
     s=-
     c=IN IP[local_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">
 </recv>

 <recv response="180" optional="true">
 </recv>

 <recv response="183" optional="true">
 </recv>

 <recv response="200" rtd="true">
 </recv>
 <send>
   <![CDATA[

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

   ]]>
 </send>

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

 <!-- The 'crlf' option inserts a blank line in the statistics report. -->
 <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: [field2]
<sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag00[call_number]
     To: sut <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
     Call-ID: [call_id]
     CSeq: 2 BYE
     Contact: sip:[EMAIL PROTECTED]:[local_port]
     Max-Forwards: 70
     Subject: Performance Test
     Content-Length: 0

   ]]>
 </send>

 <recv response="200" crlf="true">
 </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>




sip.conf
[sipp]
type=friend
context=sipp
host=dynamic
port=6000
user=sipp
canreinvite=no
disallow=all
allow=ulaw,alaw

extension.conf
[sipp]
exten => 2005,1,Answer
exten => 2005,2,SetMusicOnHold(default)
exten => 2005,3,WaitMusicOnHold(20)
exten => 2005,4,Hangup


exten => 2002,1,Answer
exten => 2002,2,Goto(MENUCONTEXTORSIMILARCONTEXT,s,1)
exten => 2002,3,Hangup

this is the command:

./sipp -sf miEscenario2.xml -t ui -inf database2.csv -s 2005 10.40.4.100 -l
50


and my .csv file:

database2.csv

SEQUENTIAL
10.40.4.100; sipp; sipp

can u help me to find my error please

u can write me to this email too [EMAIL PROTECTED]
-------------------------------------------------------------------------
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