<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello, <br>
<br>
My freeswitch's INVITE sdp offers two m=audio lines. (RTP/SAVP and
RTP/AVP). <br>
That's OK, because I want it so ;)<br>
<br>
But both use the same audio port number. <b></b><br>
Is that possible to change this behavior ? To use different audio
port numbers for each m=audio line ...<br>
Please check my example below. In SDP from my freeswitch, both
m-lines have <b>m=audio </b><b>22284</b>.<br>
<br>
The reason, why I want to change this is WebRTC and RTPengine.
RTPengine changes this INVITEs to RTP/SAVPF.<br>
And the changed RTP/SAVPF is then not acceptable for chrome
browsers. Firefox works well (so far).<br>
I already reported this to the RTPengine but they say the problem is
with INVITE from freeswitch because the m-audio lines use the same
port.<br>
<br>
My example :<br>
incoming calls -> Media Server (freeswitch) -> Kamailio (sip
and websocket proxy) -> WebRTP and SIP clients <br>
<br>
I have found a feature <b>media_webrtc=true</b> so I could avoid
using rtpengine for webrtc clients (that would be really awesome),
but then classic sip clients are offered only with RTP/SAVPF and
most sip phones do not know RTP/SAVPF so the calls are rejected :(<br>
<br>
<br>
INVITE SDP from freeswitch: <br>
<br>
v=0.<br>
o=SBC 1464589775 1464589776 IN IP4 <freeswitch-public-ip>.<br>
s=SBC.<br>
c=IN IP4 <freeswitch-public-ip>.<br>
t=0 0.<br>
<b>m=audio 22284 RTP/SAVP 8 0 9 3 18.</b><br>
a=rtpmap:8 PCMA/8000.<br>
a=rtpmap:0 PCMU/8000.<br>
a=rtpmap:9 G722/8000.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:18 G729/8000.<br>
a=rtcp:22285 IN IP4 <freeswitch-public-ip>.<br>
a=crypto:1 AEAD_AES_256_GCM_8
inline:Q/O+iUzZ9AZLcrADA7w/XcpkmuW6yArr1vsaWc0coTyWUIRLX2qfCA7XDAs.<br>
a=crypto:2 AEAD_AES_128_GCM_8
inline:mBb/SmBuSQNSm8lC5giUfZMCv0ZYINvsQiX2sw.<br>
a=crypto:3 AES_CM_256_HMAC_SHA1_80
inline:ahOTNSsdmHLIOBqvUyGyNjd+gDfAE/+jA6w7XwzGWxBMjtzf5akXNvM/OGy0jQ.<br>
a=crypto:4 AES_CM_192_HMAC_SHA1_80
inline:k7002pXV/SUT7JHhZTYaMV5keUTp1EP57M4rcNZnAoZZzsceTXA.<br>
a=crypto:5 AES_CM_128_HMAC_SHA1_80
inline:bHcV4E/OnzMkNeaFplPWt4RELILYZeGlifnJNlRV.<br>
a=crypto:6 AES_CM_256_HMAC_SHA1_32
inline:zJkowU1tc5rQR5BPpg2m3eE97ZqXLFFJc1Agh89XuZynPFMrXhO266+eMZCd2A.<br>
a=crypto:7 AES_CM_192_HMAC_SHA1_32
inline:2DwGI3UAPsLFBS5sJBsc+pzEsITQwDHCvB0u7pK/XEE3G8swsrw.<br>
a=crypto:8 AES_CM_128_HMAC_SHA1_32
inline:Jen6Gm56Z+4RTRmfpXTpSpoG5bduyythl1j21a15.<br>
a=crypto:9 AES_CM_128_NULL_AUTH
inline:Nn83liGQY7eY8LGs9qz/7EoPiHOpRgwY8H7Ts/b5.<br>
a=ptime:20.<br>
<b>m=audio 22284 RTP/AVP 8 0 9 3 18.</b><br>
a=rtpmap:8 PCMA/8000.<br>
a=rtpmap:0 PCMU/8000.<br>
a=rtpmap:9 G722/8000.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:18 G729/8000.<br>
a=rtcp:22285 IN IP4 <freeswitch-public-ip>.<br>
a=ptime:20.<br>
<br>
<br>
<br>
<br>
INVITE SDP from RTPengine :<br>
<br>
v=0<br>
o=SBC 1464589775 1464589776 IN IP4 212.232.17.66<br>
s=SBC<br>
c=IN IP4 <rtpengine-public-ip><br>
t=0 0<br>
<b>m=audio 31836 RTP/SAVPF 8 0 9 3 18</b><br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:3 GSM/8000<br>
a=rtpmap:18 G729/8000<br>
a=ptime:20<br>
a=sendrecv<br>
a=rtcp:31837<br>
a=setup:actpass<br>
a=fingerprint:sha-1
11:76:2D:2A:F7:0D:5A:23:9D:F6:0C:E7:4C:DF:1E:CB:BF:5D:76:4F<br>
a=ice-ufrag:NauDcjVU<br>
a=ice-pwd:AiHk6LF4tE0GElyFMWtLeod1wH<br>
a=candidate:cE0FGbXWIfwj6OGD 1 UDP 2130706431
<rtpengine-public-ip> 31836 typ host<br>
a=candidate:cE0FGbXWIfwj6OGD 2 UDP 2130706430
<rtpengine-public-ip> 31837 typ host<br>
<b>m=audio 31866 RTP/SAVPF 8 0 9 3 18</b><br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:9 G722/8000<br>
a=rtpmap:3 GSM/8000<br>
a=rtpmap:18 G729/8000<br>
a=ptime:20<br>
a=sendrecv<br>
a=rtcp:31867<br>
a=setup:actpass<br>
a=fingerprint:sha-1
11:76:2D:2A:F7:0D:5A:23:9D:F6:0C:E7:4C:DF:1E:CB:BF:5D:76:4F<br>
a=ice-ufrag:YxCyPhQV<br>
a=ice-pwd:2vYt8YaMhIp2DSLPeYOKDqqBX0<br>
a=candidate:cE0FGbXWIfwj6OGD 1 UDP 2130706431
<rtpengine-public-ip> 31866 typ host<br>
a=candidate:cE0FGbXWIfwj6OGD 2 UDP 2130706430
<rtpengine-public-ip> 31867 typ host<br>
<br>
<br>
</body>
</html>