<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ll expand on Brian’s comment.  Proxy media should NEVER be used.  There is one exception to this rule, and that is when you are trying to pass codecs that freeswitch does not know about, and even that case has a better workaround than to use proxy media.  If you are using proxy media you should stop, if you are not sure how to do so you should discuss on the mailing list.  Proxy media mode is NOT the way to avoid transcoding, that can be done properly without this setting and this setting should never be used.<div class=""><br class=""></div><div class="">Mike<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 12, 2018, at 5:07 PM, Brian West <<a href="mailto:brian@freeswitch.com" class="">brian@freeswitch.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Could you elaborate on why you're using Proxy Media for?<div class="">/b</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Oct 12, 2018 at 5:37 PM Marc Quore <<a href="mailto:marquore@gmail.com" class="">marquore@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class="">Hi, All</div><div class=""><br class=""></div><div class="">I've got FreeSwitch 1.8.2 running in media proxy mode:</div><div class=""><br class=""></div><div class=""></div><div class=""><div class=""><span style="font-family:monospace,monospace" class=""><param name="inbound-proxy-media" value="true"/><br class=""><param name="inbound-late-negotiation" value="true"/></span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class=""></span></div>

</div><div class="">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 class=""></div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class="">[NOTICE] sofia.c:7304 Pre-Answer sofia/external/<a href="mailto:2222@2.2.2.2" target="_blank" class="">2222@2.2.2.2</a>!<br class="">[INFO] switch_ivr_originate.c:3747 Sending early media<br class="">[DEBUG] switch_core_media.c:3781 Set Codec sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a> <span style="background-color:rgb(244,204,204)" class="">PCMU/0 0 ms 960 samples 384000 bits 1 channels</span><br class="">[DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a> Original read codec set to PCMU:0<br class="">[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a>] 1.1.1.1:18792-><a href="http://1.1.1.1:18792/" target="_blank" class="">1.1.1.1:18792</a> codec: 0 ms: 20<br class=""><span style="color:rgb(204,0,0)" class=""><span style="background-color:rgb(255,255,255)" class="">[ERR] switch_core_media.c:9510 AUDIO RTP REPORTS ERROR: <b class="">[Missing local host]</b></span></span><br class="">[NOTICE] switch_core_media.c:9511 Hangup sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a> [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]</span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class="">Here's a dump for this call:<br class=""></span></div><div class=""></div><div class=""><br class=""></div><div class=""><div class=""><span id="cid:ii_jmqiio3p0"><image.png></span></div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Healthy call on the same machine:</font><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class="">[DEBUG] switch_core_media.c:3781 Set Codec sofia/vpn/<a href="mailto:2222@2.2.2.2" target="_blank" class="">2222@2.2.2.2</a> <span style="background-color:rgb(217,234,211)" class="">PROXY/0 0 ms 160 samples 0 bits 1 channels</span><br class="">[DEBUG] switch_core_codec.c:111 sofia/internal/<a href="mailto:2222@2.2.2.2" target="_blank" class="">2222@2.2.2.2</a> Original read codec set to PROXY:0<br class="">[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/internal/<a href="mailto:2222@2.2.2.2" target="_blank" class="">2222@2.2.2.2</a>] 2.2.2.2:60818-><a href="http://2.2.2.2:60818/" target="_blank" class="">2.2.2.2:60818</a> codec: 0 ms: 20<br class=""><br class="">[DEBUG] switch_core_media.c:3781 Set Codec sofia/internal/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a> <span style="background-color:rgb(217,234,211)" class="">PROXY/0 0 ms 160 samples 0 bits 1 channels</span><br class="">[DEBUG] switch_core_codec.c:111 sofia/external/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a> Original read codec set to PROXY:0<br class="">[DEBUG] switch_core_media.c:8577 PROXY AUDIO RTP [sofia/external/<a href="mailto:1111@1.1.1.1" target="_blank" class="">1111@1.1.1.1</a>] 1.1.1.1:31412-><a href="http://1.1.1.1:31412/" target="_blank" class="">1.1.1.1:31412</a> codec: 0 ms: 20</span><br class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class="">FreeSWITCH Version 1.8.2+git~20180926T175525Z~a98a958ac3~64bit (git a98a958 2018-09-26 17:55:25Z 64bit)</span></div><div class=""><span style="font-family:monospace,monospace" class="">CentOS Linux release 7.5.1804 (Core)</span><br class=""></div><div class=""><br class=""></div><div class="">Best,</div><div class="">Marc<br class=""></div></div></div></div></div></div></div></div>
_________________________________________________________________________<br class="">
Professional FreeSWITCH Services<br class="">
<a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
<a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div style="font-size:12.8px" class=""><font class=""><img src="https://hipchat.freeswitch.org/files/1/9111/w0eGOzyOVyZQdMg/email_logo.png" width="200" height="66" class=""><br class=""></font></div><div style="font-size:12.8px" class=""><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Brian West | Co-founder and Developer</font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a> </font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank" class="">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><font class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><a href="mailto:brian@freeswitch.com" target="_blank" class="">brian@freeswitch.com</a></span></font></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font class="">Mobile: 918-424-9378</font></span></div><div style="font-size: 12.8px; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class=""><font class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank" class=""><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">https://www.FreeSWITCH.com</span></a></font></div><div style="font-size: 12.8px; line-height: 1.2; margin-top: 0pt; margin-bottom: 0pt;" class=""><span style="background-color: transparent; font-size: 9pt; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;" class=""><a href="https://www.facebook.com/freeswitch" target="_blank" class=""><img alt="https://www.facebook.com/signalwireinc?src=email " src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border:none" class=""></a> </span><span style="background-color: transparent; font-size: 9pt; font-family: Tahoma; vertical-align: baseline; white-space: pre-wrap;" class=""><a href="https://twitter.com/freeswitch" target="_blank" class=""><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border:none" class=""></a></span><br class=""></div></div></div></div></div></div></div></div></div></div></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></div></body></html>