Tim,
The Unsupported Media Type may be caused due to the fact that it cannot
read the rtpmap attribute for PCMU. Try adding a CRLF after the last
line of your SDP in the second INVITE. Your first INVITE and second
INVITE have differences in the SDP (first one includes support for RFC
2833 payload 101). You should leave that in the second INVITE as well.
Your second INVITE should look as follows:
<send retrans="500">
<![CDATA[
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]
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>
Regards,
Kalpan
Tim King wrote:
This is the error I am getting now.
-------------------------+---------------------------+--------------------------
Call Length | 00:00:00:000 | 00:00:00:016
------------------------------ Test Terminated
--------------------------------
2010-07-12 14:52:15:256 1278960735.256563: Aborting call on
unexpected message for Call-Id '1-4...@192.168.0.10
<mailto:1-4...@192.168.0.10>': while expecting '100' (index 6),
received 'SIP/2.0 415 Unsupported Media Type
Via: SIP/2.0/UDP 192.168.0.10:5060;branch=z9hG4bK-4168-1-5
From: <sip:1...@192.168.0.10:5060
<http://sip:1...@192.168.0.10:5060>>;tag=1
To: <sip:6165551...@192.168.0.79:5060
<http://sip:6165551...@192.168.0.79:5060>>;tag=20ej9Fg3ScBgg
Call-ID: 1-4...@192.168.0.10 <mailto:1-4...@192.168.0.10>
CSeq: 4 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.0.head-svn-17782
Accept: application/sdp
Accept-Encoding:
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER,
NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, presence, dialog, line-seize, call-info,
sla, include-s
ession-description, presence.winfo, message-summary, refer
Content-Length: 0
'.
Here is the updated XML Scenario:
<?xml version="1.0" encoding="us-ascii"?>
<scenario name="New_Call">
<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:1...@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:1...@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: [cseq] 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" next="2" />
<label id="2" />
<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:1...@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:1...@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: [cseq+1] REGISTER
Contact: sip:1...@[local_ip]:[local_port];transport=UDP
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
[field1]
Content-Length: [len]
]]>
</send>
<recv response="200" crlf="true" />
<send retrans="500">
<![CDATA[
INVITE sip:6165551...@[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];transport=UDP
[field1]
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="false" />
<recv response="407" optional="false" next="3" />
<label id="3" />
<send>
<![CDATA[
ACK sip:6165551...@[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]>[peer_tag_param]
Call-ID: [call_id]
CSeq: [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: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]
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="false" />
<recv response="180" optional="false" />
<recv response="200" crlf="false" />
<send>
<![CDATA[
ACK 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]>[peer_tag_param]
Call-ID: [call_id]
CSeq: [cseq+1] 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 sip:6165551...@[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]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 BYE
Contact: sip:s...@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<label id="1" />
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200" />
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000" />
</scenario>
------------------------------------------------------------------------
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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