Hi, Owe to the network bandwidth limitations (running on cellular phones ip link) we are using speex/8000 as our voice codec.
However, when both parties are using that codec the sound is not to be heard on the caller side. looking at the log dumps one can see that a) at the caller side, it supports speex/8000 in pt=102 and receives from the server speex/8000 in pt=102 b) at the callee side FreeSwitch supports support speex/8000 in pt=98 although it receives from the client speex/8000 in pt=102 When the voice starts caller sends RTP with pt=102 and expect to receive RTP with pt=102, while the callee sends RTP with pt=98 and expect to receive RTP with pt=102. The RTP packets that received in the caller side are with pt=98 instead of 102 and thusly the client drops them. Attached are the 2 files recorded from a call between 2 pjsip clients that support only speex/8000 codec. un_FSCallerSide-speexClient.TXT – is the caller side SIP messages. un_FSAnswerSide-speexClient.TXT – is the answer side of SIP messages. Is there anything can be done at the configuration level to avoid this? Thanks in advance for your help /tzury
--start msg (RX)-- INVITE sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 67.23.5.142;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]:5060> Call-ID: e56c2918-17ad-122d-de9e-40402384297d CSeq: 120120747 INVITE Contact: <sip:[email protected]:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 415 Remote-Party-ID: "Extension 1001" <sip:[email protected]>;screen=yes;privacy=off v=0 o=FreeSWITCH 4131815555116427886 953315150658749217 IN IP4 67.23.5.142 s=FreeSWITCH c=IN IP4 67.23.5.142 t=0 0 m=audio 26662 RTP/AVP 98 0 8 3 9 99 103 101 13 a=rtpmap:98 SPEEX/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:9 G722/8000 a=rtpmap:99 SPEEX/16000 a=rtpmap:103 SPEEX/32000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 --end msg-- --start msg (TX)-- SIP/2.0 100 Trying Via: SIP/2.0/UDP 67.23.5.142;rport=5060;received=67.23.5.142;branch=z9hG4bKgvD702De7e0Se Call-ID: e56c2918-17ad-122d-de9e-40402384297d From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]> CSeq: 120120747 INVITE Content-Length: 0 --end msg-- --start msg (TX)-- SIP/2.0 180 Ringing Via: SIP/2.0/UDP 67.23.5.142;rport=5060;received=67.23.5.142;branch=z9hG4bKgvD702De7e0Se Call-ID: e56c2918-17ad-122d-de9e-40402384297d From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]>;tag=e4f9fb648edef1c48dbc8b8b474409e6 CSeq: 120120747 INVITE Contact: <sip:95.35.241.89:5060> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Content-Length: 0 --end msg-- --start msg (RX)-- INVITE sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 67.23.5.142;rport;branch=z9hG4bKgvD702De7e0Se Max-Forwards: 69 From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]:5060> Call-ID: e56c2918-17ad-122d-de9e-40402384297d CSeq: 120120747 INVITE Contact: <sip:[email protected]:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 415 Remote-Party-ID: "Extension 1001" <sip:[email protected]>;screen=yes;privacy=off v=0 o=FreeSWITCH 4131815555116427886 953315150658749217 IN IP4 67.23.5.142 s=FreeSWITCH c=IN IP4 67.23.5.142 t=0 0 m=audio 26662 RTP/AVP 98 0 8 3 9 99 103 101 13 a=rtpmap:98 SPEEX/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:3 GSM/8000 a=rtpmap:9 G722/8000 a=rtpmap:99 SPEEX/16000 a=rtpmap:103 SPEEX/32000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 --end msg-- --start msg (TX)-- SIP/2.0 180 Ringing Via: SIP/2.0/UDP 67.23.5.142;rport=5060;received=67.23.5.142;branch=z9hG4bKgvD702De7e0Se Call-ID: e56c2918-17ad-122d-de9e-40402384297d From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]>;tag=e4f9fb648edef1c48dbc8b8b474409e6 CSeq: 120120747 INVITE Contact: <sip:95.35.241.89:5060> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Content-Length: 0 --end msg-- --start msg (TX)-- SIP/2.0 200 OK Via: SIP/2.0/UDP 67.23.5.142;rport=5060;received=67.23.5.142;branch=z9hG4bKgvD702De7e0Se Call-ID: e56c2918-17ad-122d-de9e-40402384297d From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]>;tag=e4f9fb648edef1c48dbc8b8b474409e6 CSeq: 120120747 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Contact: <sip:95.35.241.89:5060> Supported: replaces, 100rel, timer, norefersub Content-Type: application/sdp Content-Length: 256 v=0 o=- 3461503025 3461503026 IN IP4 95.35.241.89 s=pjmedia c=IN IP4 95.35.241.89 t=0 0 a=X-nat:5 m=audio 4000 RTP/AVP 102 101 a=rtcp:4001 IN IP4 95.35.241.89 a=rtpmap:102 speex/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- --start msg (RX)-- NOTIFY sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 67.23.5.142;rport;branch=z9hG4bKeaUNXcc7cXKmQ Max-Forwards: 70 From: <sip:[email protected]>;tag=S7D7Q4BB4ggep To: <sip:[email protected]> Call-ID: d74d73dc-17ad-122d-de9e-40402384297d CSeq: 120120735 NOTIFY Contact: <sip:[email protected]:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Event: message-summary Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: terminated;timeout Content-Type: application/simple-message-summary Content-Length: 97 Messages-Waiting: yes Message-Account: sip:[email protected] Voice-Message: 3/0 (0/0) --end msg-- --start msg (TX)-- SIP/2.0 200 OK Via: SIP/2.0/UDP 67.23.5.142;rport=5060;received=67.23.5.142;branch=z9hG4bKgvD702De7e0Se Call-ID: e56c2918-17ad-122d-de9e-40402384297d From: "Extension 1001" <sip:[email protected]>;tag=2rH67Q3aa1rpe To: <sip:[email protected]>;tag=e4f9fb648edef1c48dbc8b8b474409e6 CSeq: 120120747 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Contact: <sip:95.35.241.89:5060> Supported: replaces, 100rel, timer, norefersub Content-Type: application/sdp Content-Length: 256 v=0 o=- 3461503025 3461503026 IN IP4 95.35.241.89 s=pjmedia c=IN IP4 95.35.241.89 t=0 0 a=X-nat:5 m=audio 4000 RTP/AVP 102 101 a=rtcp:4001 IN IP4 95.35.241.89 a=rtpmap:102 speex/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg--
--start msg (TX)-- INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.118.11.112:64680;rport;branch=z9hG4bKPj3caad40720064a8f124c21cf99b8b1c1 Max-Forwards: 70 From: sip:[email protected];tag=6d6ef114e663e48226f2b1e598313a2e To: sip:[email protected] Contact: <sip:[email protected]:64680> Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23264 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 Content-Type: application/sdp Content-Length: 264 v=0 o=- 3461521040 3461521040 IN IP4 192.118.11.112 s=pjmedia c=IN IP4 192.118.11.112 t=0 0 a=X-nat:8 m=audio 64976 RTP/AVP 102 101 a=rtcp:64980 IN IP4 192.118.11.112 a=rtpmap:102 speex/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- --start msg (RX)-- SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPj3caad40720064a8f124c21cf99b8b1c1 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]> Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23264 INVITE User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Content-Length: 0 --end msg-- --start msg (RX)-- SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPj3caad40720064a8f124c21cf99b8b1c1 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]>;tag=ymc30B0vNXZBg Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23264 INVITE User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Accept: application/sdp Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Proxy-Authenticate: Digest realm="cheerfulsanity.net", nonce="0d21b0de-9d0b-11de-afe2-9bb840543c49", algorithm=MD5, qop="auth" Content-Length: 0 --end msg-- --start msg (TX)-- ACK sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.118.11.112:64680;rport;branch=z9hG4bKPj3caad40720064a8f124c21cf99b8b1c1 Max-Forwards: 70 From: sip:[email protected];tag=6d6ef114e663e48226f2b1e598313a2e To: sip:[email protected];tag=ymc30B0vNXZBg Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23264 ACK Content-Length: 0 --end msg-- --start msg (TX)-- INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/UDP 192.118.11.112:64680;rport;branch=z9hG4bKPje8deea3c8476457603fe0cc301731002 Max-Forwards: 70 From: sip:[email protected];tag=6d6ef114e663e48226f2b1e598313a2e To: sip:[email protected] Contact: <sip:[email protected]:64680> Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 Proxy-Authorization: Digest username="1001", realm="cheerfulsanity.net", nonce="0d21b0de-9d0b-11de-afe2-9bb840543c49", uri="sip:[email protected]", response="5eab15df8541648b8890866f976a23e1", algorithm=MD5, cnonce="03d7b5789aacc7b832d4d618ca295ba2", qop=auth, nc=00000001 Content-Type: application/sdp Content-Length: 264 v=0 o=- 3461521040 3461521040 IN IP4 192.118.11.112 s=pjmedia c=IN IP4 192.118.11.112 t=0 0 a=X-nat:8 m=audio 64976 RTP/AVP 102 101 a=rtcp:64980 IN IP4 192.118.11.112 a=rtpmap:102 speex/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- --start msg (RX)-- SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPje8deea3c8476457603fe0cc301731002 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]> Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 INVITE User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Content-Length: 0 --end msg-- --start msg (RX)-- NOTIFY sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 67.23.5.142;rport;branch=z9hG4bKFKmeZ7vaa696j Max-Forwards: 70 From: <sip:[email protected]>;tag=XBKaZgFSrm9rm To: <sip:[email protected]> Call-ID: e07248c2-17ad-122d-de9e-40402384297d CSeq: 120120743 NOTIFY Contact: <sip:[email protected]:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Event: message-summary Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: terminated;timeout Content-Type: application/simple-message-summary Content-Length: 70 Messages-Waiting: no Message-Account: sip:[email protected] --end msg-- --start msg (RX)-- SIP/2.0 183 Session Progress Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPje8deea3c8476457603fe0cc301731002 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]>;tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 INVITE Contact: <sip:[email protected]:5060;transport=udp> RSeq: 669378962 User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Accept: application/sdp Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Require: 100rel Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 268 v=0 o=FreeSWITCH 4446028933093139022 3405868075899860026 IN IP4 67.23.5.142 s=FreeSWITCH c=IN IP4 67.23.5.142 t=0 0 m=audio 26664 RTP/AVP 102 101 a=rtpmap:102 speex/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 --end msg-- --start msg (TX)-- PRACK sip:[email protected]:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 192.118.11.112:64680;rport;branch=z9hG4bKPj3163ba6def02fe4c795703c1d1bef593 Max-Forwards: 70 From: sip:[email protected];tag=6d6ef114e663e48226f2b1e598313a2e To: sip:[email protected];tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23266 PRACK RAck: 669378962 23265 INVITE Content-Length: 0 --end msg-- --start msg (RX)-- SIP/2.0 183 Session Progress Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPje8deea3c8476457603fe0cc301731002 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]>;tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 INVITE Contact: <sip:[email protected]:5060;transport=udp> RSeq: 669378962 User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Accept: application/sdp Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Require: 100rel Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 268 v=0 o=FreeSWITCH 4446028933093139022 3405868075899860026 IN IP4 67.23.5.142 s=FreeSWITCH c=IN IP4 67.23.5.142 t=0 0 m=audio 26664 RTP/AVP 102 101 a=rtpmap:102 speex/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 --end msg-- --start msg (RX)-- SIP/2.0 200 OK Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPj3163ba6def02fe4c795703c1d1bef593 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]>;tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23266 PRACK Contact: <sip:[email protected]:5060;transport=udp> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Accept: application/sdp Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Content-Length: 0 --end msg-- --start msg (RX)-- NOTIFY sip:[email protected]:5060 SIP/2.0 Via: SIP/2.0/UDP 67.23.5.142;rport;branch=z9hG4bKFKmeZ7vaa696j Max-Forwards: 70 From: <sip:[email protected]>;tag=XBKaZgFSrm9rm To: <sip:[email protected]> Call-ID: e07248c2-17ad-122d-de9e-40402384297d CSeq: 120120743 NOTIFY Contact: <sip:[email protected]:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: timer, precondition, path, replaces Event: message-summary Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Subscription-State: terminated;timeout Content-Type: application/simple-message-summary Content-Length: 70 Messages-Waiting: no Message-Account: sip:[email protected] --end msg-- --start msg (RX)-- SIP/2.0 200 OK Via: SIP/2.0/UDP 10.171.9.67:5060;rport=64680;branch=z9hG4bKPje8deea3c8476457603fe0cc301731002 From: <sip:[email protected]>;tag=6d6ef114e663e48226f2b1e598313a2e To: <sip:[email protected]>;tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 INVITE Contact: <sip:[email protected]:5060;transport=udp> User-Agent: FreeSWITCH-mod_sofia/1.0.3-exported Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Require: timer Supported: timer, precondition, path, replaces Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer Session-Expires: 1800;refresher=uac Min-SE: 120 Content-Type: application/sdp Content-Disposition: session Content-Length: 268 v=0 o=FreeSWITCH 4446028933093139022 3405868075899860026 IN IP4 67.23.5.142 s=FreeSWITCH c=IN IP4 67.23.5.142 t=0 0 m=audio 26664 RTP/AVP 102 101 a=rtpmap:102 speex/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 --end msg-- --start msg (TX)-- ACK sip:[email protected]:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 192.118.11.112:64680;rport;branch=z9hG4bKPj949393fcf5e36fe32bb24b420101cd20 Max-Forwards: 70 From: sip:[email protected];tag=6d6ef114e663e48226f2b1e598313a2e To: sip:[email protected];tag=06ym4113FFcHQ Call-ID: 1473e9e828658e3fb0370fabf2ce8986 CSeq: 23265 ACK Content-Length: 0 --end msg-- ---------------------------------------------- Start receiving RTP packets with PT=98 instead of 102
_______________________________________________ FreeSWITCH-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
