<div dir="ltr"><div><div><div>actually, my FS needs to be in proxy_media mode, since it always deal with codecs it doesn&#39;t know about, g729.<br></div>real case: my caller(asterisk) always compose INVITE with `G729,PCMA,PCMU,GSM` to FS, some of my callee only accept G729, while others accept G729,PCMA, and so on ...<br></div>I want to limit codecs choice for each callee accordingly, instead of fully pass `G729,PCMA,PCMU,GSM` to every callee, so that they don&#39;t know my full supported codec.<br><br></div>rgds<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : 84.1224.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Nov 24, 2016 at 12:33 AM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I’m not totally sure what you are trying to accomplish but proxy_media is completely unnecessary and undesired for what you are doing.  It should ONLY be used in the case where you are trying to pass codecs we don’t know about at all.  Take a look at the codec negotiation page on <a href="http://freeswitch.org/confluence" target="_blank">freeswitch.org/confluence</a>  and I think you will find your answers.  I don’t think you need a custom mod looking for events with what you have described so far.<div><div class="h5"><div><br><div><blockquote type="cite"><div>On Nov 23, 2016, at 5:37 AM, Lợi Đặng &lt;<a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a>&gt; wrote:</div><br class="m_8184133397040917596Apple-interchange-newline"><div><div dir="ltr"><div><div><div>In FS document of media proxy mode:  <br> &gt; FreeSWITCH has no control or even understanding of other SDP parameters.<br></div>Look like I have to find another way, like writing a custom module listening on specific event.<br></div>Any suggest?<br><br></div><div>Thanks to all of you.<br></div><div>rgds,<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_8184133397040917596gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Loi Dang Thanh<br></div>Phone : 841224.735.448<br></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><br></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Nov 23, 2016 at 10:28 AM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div class="m_8184133397040917596m_9071376374511305464WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">If you are limiting the calls to specific codecs and avoiding transcoding, proxy media doesn’t really reduce the overhead anymore… that changed a few years ago but the notion its better still hangs on today<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists<wbr>.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounc<wbr>es@lists.freeswitch.org</a>] <b>On Behalf Of </b>L?i Ð?ng<br><b>Sent:</b> Tuesday, November 22, 2016 9:07 PM<br><b>To:</b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freesw<wbr>itch.org</a>&gt;<br><b>Subject:</b> Re: [Freeswitch-users] absolute_codec_string not working<u></u><u></u></span></p><div><div class="m_8184133397040917596h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi @Michael, you were right, I&#39;m intentionally using media_proxy for FS, since I want to reduce CPU usage on FS machine.<u></u><u></u></p></div><div><p class="MsoNormal">In this case, I just want to limit the codecs used for each endpoint, and codec negotiation will be handled by them.<u></u><u></u></p></div><p class="MsoNormal">e.g: caller use PCMA, PCMU, GSM by its own in INVITE, I want to limit the callee to only use PCMA,GSM.<br><br>Look like `absolute_codec_string` is not what I&#39;m looking for right? Any way out?<u></u><u></u></p><div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><div><div><div><div><div><div><p class="MsoNormal">Loi Dang Thanh<u></u><u></u></p></div><p class="MsoNormal">Phone : 01224.735.448<u></u><u></u></p></div><p class="MsoNormal">Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><u></u><u></u></p></div></div></div></div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Nov 22, 2016 at 9:57 PM, Michael Jerris &lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt; wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">using proxy_media is my best guess but can’t tell with this little info.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt"><div><div><div><p class="MsoNormal">On Nov 22, 2016, at 5:27 AM, Lợi Đặng &lt;<a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a>&gt; wrote:<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><div><div><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Hi List, I got some trouble with using `absolute_codec_string` param.<u></u><u></u></p></div><p class="MsoNormal">My call scenario is pretty simple: caller &lt;--&gt; FS &lt;--&gt; callee.<u></u><u></u></p></div><p class="MsoNormal">My caller compose `m=audio 7078 RTP/AVP 8 0 101` in its INVITE, and I&#39;m doing `&lt;action application=&quot;bridge&quot; data=&quot;{absolute_codec_string=P<wbr>CMU,GSM}sofia/gateway/callee/$<wbr>1&quot;/&gt;` in the dialplan.<u></u><u></u></p><div><p class="MsoNormal">But FS still use `m=audio 22952 RTP/AVP 8 0 101` in the INVITE to the callee.<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">not sure what I&#39;m missing, helps would be appreciated.<u></u><u></u></p></div><div><p class="MsoNormal">Note that when I&#39;m using `originate` application in fs_cli, things are good.<u></u><u></u></p></div><div><div><div><div><p class="MsoNormal">`originate {absolute_codec_string=PCMU}so<wbr>fia/gateway/caller/100 &amp;bridge({absolute_codec_string<wbr>=PCMA}sofia/gateway/callee/<wbr>100`. <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">I have FS with proper behavior in transcoding, caller has `m=audio 31184 RTP/AVP 0 101` received, and callee has `m=audio 21922 RTP/AVP 8 101` received.<u></u><u></u></p></div><div><p class="MsoNormal">rgds,<br clear="all"><u></u><u></u></p></div><div><div><div><div><div><div><div><div><p class="MsoNormal">Loi Dang Thanh<u></u><u></u></p></div><p class="MsoNormal">Phone : 84.1224.735.448<u></u><u></u></p></div><p class="MsoNormal">Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank">loi.dangthanh@gmail.com</a><u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal">______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal"><br>______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></blockquote></div><br></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>