<div dir="ltr">Are you sure you need proxy media?<div><br></div><div>FS has three media modes - the default, bypass, and proxy. In proxy mode you lose a lot of the FreeSWITCH functionality as you cannot interact with the media. It's generally only necessary if you need to support a codec FS does not support. </div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 12 Oct 2018 at 23:32, Marc Quore <<a href="mailto:marquore@gmail.com">marquore@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>Hi, All</div><div><br></div><div>I've got FreeSwitch 1.8.2 running in media proxy mode:</div><div><br></div><div></div><div><div><span style="font-family:monospace,monospace"><param name="inbound-proxy-media" value="true"/><br><param name="inbound-late-negotiation" value="true"/></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"></span></div>
</div><div>Dialplan is configured to bridge incoming calls to remote gateway and most of calls completing successfully, however some of them fail with
INCOMPATIBLE_DESTINATION cause. For failed calls everything goes normally until bridged connection gets early media from callee:<br></div><div><br></div><div><span style="font-family:monospace,monospace">[NOTICE] sofia.c:7304 Pre-Answer sofia/external/<a href="mailto:2222@2.2.2.2" target="_blank">2222@2.2.2.2</a>!<br>[INFO] switch_ivr_originate.c:3747 Sending early media<br>[DEBUG] switch_core_media.c:3781 Set Codec sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a> <span style="background-color:rgb(244,204,204)">PCMU/0 0 ms 960 samples 384000 bits 1 channels</span><br>[DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a> Original read codec set to PCMU:0<br>[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a>] 1.1.1.1:18792-><a href="http://1.1.1.1:18792" target="_blank">1.1.1.1:18792</a> codec: 0 ms: 20<br><span style="color:rgb(204,0,0)"><span style="background-color:rgb(255,255,255)">[ERR] switch_core_media.c:9510 AUDIO RTP REPORTS ERROR: <b>[Missing local host]</b></span></span><br>[NOTICE] switch_core_media.c:9511 Hangup sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a> [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">Here's a dump for this call:<br></span></div><div></div><div><br></div><div><div><img src="cid:ii_jmqiio3p0" alt="image.png" width="403" height="138"></div><div><br></div><div><span style="font-family:monospace,monospace"><font face="arial,helvetica,sans-serif">Healthy call on the same machine:</font><br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">[DEBUG] switch_core_media.c:3781 Set Codec sofia/vpn/<a href="mailto:2222@2.2.2.2" target="_blank">2222@2.2.2.2</a> <span style="background-color:rgb(217,234,211)">PROXY/0 0 ms 160 samples 0 bits 1 channels</span><br>[DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:2222@2.2.2.2" target="_blank">2222@2.2.2.2</a> Original read codec set to PROXY:0<br>[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/internal/<a href="mailto:2222@2.2.2.2" target="_blank">2222@2.2.2.2</a>] 2.2.2.2:60818-><a href="http://2.2.2.2:60818" target="_blank">2.2.2.2:60818</a> codec: 0 ms: 20<br><br>[DEBUG] switch_core_media.c:3781 Set Codec sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a> <span style="background-color:rgb(217,234,211)">PROXY/0 0 ms 160 samples 0 bits 1 channels</span><br>[DEBUG] switch_core_codec.c:111 sofia/external/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a> Original read codec set to PROXY:0<br>[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/external/<a href="mailto:1111@1.1.1.1" target="_blank">1111@1.1.1.1</a>] 1.1.1.1:31412-><a href="http://1.1.1.1:31412" target="_blank">1.1.1.1:31412</a> codec: 0 ms: 20</span><br><br></div><div>So it looks like proxified media connection cannot be established for some calls. It shouldn't be a codec problem as call parties are configured with common codecs, FS is bond to local interface which is running with no errors. But I have no idea what "local host is missing" in my case so I'll be appreciated for any hint.</div><div><br></div><div><span style="font-family:monospace,monospace">FreeSWITCH Version 1.8.2+git~20180926T175525Z~a98a958ac3~64bit (git a98a958 2018-09-26 17:55:25Z 64bit)</span></div><div><span style="font-family:monospace,monospace">CentOS Linux release 7.5.1804 (Core)</span><br></div><div><br></div><div>Best,</div><div>Marc<br></div></div></div></div></div></div></div></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>