On Tue, Jul 13, 2010 at 5:47 AM, Kalpan Doshi <kdo...@aumtech.com> wrote:
> Oh I see whats happening. Everything after the Authorization header is > being interpreted as the content (SDP) including the remaining headers. If > you look at the trace in a linux editor (or vim on windows), you can see > that there are two '^M' characters at the end of the string indicating a > double CRLF. In SIP, that means that is where the SDP begins. I am not sure > why the Authorization header is putting a double CRLF. > > Here is what you can try: > > INVITE sip:1...@[remote_ip]:[remote_port] SIP/2.0 > Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] > From: <sip:1...@[local_ip]:[local_port]>;tag=[call_number] > To: <sip:6165551...@[remote_ip]:[remote_port]> > Call-ID: [call_id] > CSeq: [cseq] INVITE > Contact: sip:1...@[local_ip]:[local_port] > Max-Forwards: 70 > Subject: Performance Test > Content-Type: application/sdp > Content-Length: [len] > [field1] (Since this is adding a double CRLF, don't add an extra line > after this before the SDP starts). > v=0 > o=user1 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 > a=rtpmap:101 telephone-event/8000 > a=fmtp:101 0-15 > a=ptime:20 > > ]]> > </send> > I can see the same is happening with the REGISTER so the source of this problem is the csv file. Whatever editor you used to create the csv file is adding some trailing chars that are confusing sipp. Use vim or something like that. Also, there were some problems in the XML itself. I have corrected them. Please try with the attached files. Use the command-line like this: sipp -s 6165551212 -l 1 -m 1 -sf register_and_invite.xml -inf users.csv -i 192.168.2.127 -p 5060 192.168.2.7
<?xml version="1.0" encoding="us-ascii"?> <scenario name="register_and_invite"> <send retrans="500"> <![CDATA[ REGISTER sip:1...@[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: <sip:[fiel...@[field1]>;tag=[call_number] To: <sip:[fie...@[field1]> Call-ID: [call_id] CSeq: 1 REGISTER Contact: sip:1...@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Type: application/sdp Content-Length: [len] ]]> </send> <recv response="100" optional="true" /> <recv response="401" auth="true" /> <send retrans="500"> <![CDATA[ REGISTER sip:1...@[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: <sip:[fiel...@[field1]>;tag=[call_number] To: <sip:[fiel...@[field1]> Call-ID: [call_id] CSeq: 2 REGISTER Contact: sip:1...@[local_ip]:[local_port];transport=UDP Max-Forwards: 70 Subject: Performance Test Content-Type: application/sdp [field2] Content-Length: [len] ]]> </send> <recv response="200" crlf="true" /> <send retrans="500"> <![CDATA[ INVITE sip:[service][remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: <sip:[fiel...@[field1]>;tag=[call_number] To: <sip:[servi...@[field1]> Call-ID: [call_id] CSeq: 1 INVITE Contact: sip:1...@[local_ip]:[local_port];transport=UDP Max-Forwards: 70 Subject: Performance Test Content-Type: application/sdp Content-Length: [len] v=0 o=111 843670094 843670094 IN IP4 [local_ip] s=- c=IN IP4 [local_ip] t=0 0 a=sendrecv m=audio [media_port] RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 ]]> </send> <recv response="100" optional="true" /> <recv response="407" auth="true" optional="false"/> <send> <![CDATA[ ACK sip:6165551...@[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] [last_From:] [last_To:] [last_Call-ID:] CSeq: 1 ACK Contact: sip:1...@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Length: 0 ]]> </send> <send retrans="500"> <![CDATA[ INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] From: <sip:[fiel...@[field1]>;tag=[call_number] To: <sip:[servi...@[field1]> Call-ID: [call_id] CSeq: 2 INVITE Contact: sip:1...@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Type: application/sdp [field2] Content-Length: [len] v=0 o=user1 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" /> <recv response="180" optional="true" /> <recv response="200" rrs="true" /> <send> <![CDATA[ ACK [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] [last_From:] [last_To:] [last_Call-ID:] [routes] CSeq: 2 ACK Contact: sip:s...@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Length: 0 ]]> </send> <pause milliseconds="50000" /> <send retrans="500"> <![CDATA[ BYE [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] [last_From:] [last_To:] [last_Call-ID:] [routes] CSeq: 3 BYE Contact: sip:s...@[local_ip]:[local_port] Max-Forwards: 70 Subject: Performance Test Content-Length: 0 ]]> </send> <recv response="200" crlf="true"/> <pause milliseconds="2000" /> <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200" /> <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000" /> </scenario>
users.csv
Description: Binary data
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users