<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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" class="">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 class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 23, 2016, at 5:37 AM, Lợi Đặng <<a href="mailto:loi.dangthanh@gmail.com" class="">loi.dangthanh@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">In FS document of media proxy mode: <br class=""> > FreeSWITCH has no control or even understanding of other SDP parameters.<br class=""></div>Look like I have to find another way, like writing a custom module listening on specific event.<br class=""></div>Any suggest?<br class=""><br class=""></div><div class="">Thanks to all of you.<br class=""></div><div class="">rgds,<br class=""></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">Loi Dang Thanh<br class=""></div>Phone : 841224.735.448<br class=""></div>Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank" class="">loi.dangthanh@gmail.com</a><br class=""></div></div></div></div></div>
<br class=""><div class="gmail_quote">On Wed, Nov 23, 2016 at 10:28 AM, Ken Rice <span dir="ltr" class=""><<a href="mailto:krice@freeswitch.org" target="_blank" class="">krice@freeswitch.org</a>></span> wrote:<br class=""><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" class=""><div class="m_9071376374511305464WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="">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 class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><b class=""><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class=""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" class="">freeswitch-users-bounces@<wbr class="">lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" class="">freeswitch-users-<wbr class="">bounces@lists.freeswitch.org</a>] <b class="">On Behalf Of </b>L?i Ð?ng<br class=""><b class="">Sent:</b> Tuesday, November 22, 2016 9:07 PM<br class=""><b class="">To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" class="">freeswitch-users@lists.<wbr class="">freeswitch.org</a>><br class=""><b class="">Subject:</b> Re: [Freeswitch-users] absolute_codec_string not working<u class=""></u><u class=""></u></span></p><div class=""><div class="h5"><p class="MsoNormal"><u class=""></u> <u class=""></u></p><div class=""><div class=""><p class="MsoNormal" style="margin-bottom:12.0pt">Hi @Michael, you were right, I'm intentionally using media_proxy for FS, since I want to reduce CPU usage on FS machine.<u class=""></u><u class=""></u></p></div><div class=""><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 class=""></u><u class=""></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 class=""><br class="">Look like `absolute_codec_string` is not what I'm looking for right? Any way out?<u class=""></u><u class=""></u></p><div class=""><p class="MsoNormal"><br clear="all" class=""><u class=""></u><u class=""></u></p><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><p class="MsoNormal">Loi Dang Thanh<u class=""></u><u class=""></u></p></div><p class="MsoNormal">Phone : 01224.735.448<u class=""></u><u class=""></u></p></div><p class="MsoNormal">Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank" class="">loi.dangthanh@gmail.com</a><u class=""></u><u class=""></u></p></div></div></div></div></div><p class="MsoNormal"><u class=""></u> <u class=""></u></p><div class=""><p class="MsoNormal">On Tue, Nov 22, 2016 at 9:57 PM, Michael Jerris <<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>> wrote:<u class=""></u><u class=""></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" class=""><div class=""><p class="MsoNormal">using proxy_media is my best guess but can’t tell with this little info.<u class=""></u><u class=""></u></p><div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p><div class=""><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt" class=""><div class=""><div class=""><div class=""><p class="MsoNormal">On Nov 22, 2016, at 5:27 AM, Lợi Đặng <<a href="mailto:loi.dangthanh@gmail.com" target="_blank" class="">loi.dangthanh@gmail.com</a>> wrote:<u class=""></u><u class=""></u></p></div><p class="MsoNormal"><u class=""></u> <u class=""></u></p></div></div><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p></div><p class="MsoNormal">Hi List, I got some trouble with using `absolute_codec_string` param.<u class=""></u><u class=""></u></p></div><p class="MsoNormal">My call scenario is pretty simple: caller <--> FS <--> callee.<u class=""></u><u class=""></u></p></div><p class="MsoNormal">My caller compose `m=audio 7078 RTP/AVP 8 0 101` in its INVITE, and I'm doing `<action application="bridge" data="{absolute_codec_string=<wbr class="">PCMU,GSM}sofia/gateway/callee/<wbr class="">$1"/>` in the dialplan.<u class=""></u><u class=""></u></p><div class=""><p class="MsoNormal">But FS still use `m=audio 22952 RTP/AVP 8 0 101` in the INVITE to the callee.<u class=""></u><u class=""></u></p></div><div class=""><p class="MsoNormal" style="margin-bottom:12.0pt">not sure what I'm missing, helps would be appreciated.<u class=""></u><u class=""></u></p></div><div class=""><p class="MsoNormal">Note that when I'm using `originate` application in fs_cli, things are good.<u class=""></u><u class=""></u></p></div><div class=""><div class=""><div class=""><div class=""><p class="MsoNormal">`originate {absolute_codec_string=PCMU}<wbr class="">sofia/gateway/caller/100 &bridge({absolute_codec_<wbr class="">string=PCMA}sofia/gateway/<wbr class="">callee/100`. <u class=""></u><u class=""></u></p></div><div class=""><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 class=""></u><u class=""></u></p></div><div class=""><p class="MsoNormal">rgds,<br clear="all" class=""><u class=""></u><u class=""></u></p></div><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><p class="MsoNormal">Loi Dang Thanh<u class=""></u><u class=""></u></p></div><p class="MsoNormal">Phone : 84.1224.735.448<u class=""></u><u class=""></u></p></div><p class="MsoNormal">Email : <a href="mailto:loi.dangthanh@gmail.com" target="_blank" class="">loi.dangthanh@gmail.com</a><u class=""></u><u class=""></u></p></div></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.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.<wbr class="">freeswitch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><u class=""></u><u class=""></u></p></div></blockquote></div><p class="MsoNormal"><u class=""></u> <u class=""></u></p></div></div><p class="MsoNormal"><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">Professional FreeSWITCH Consulting Services:<br class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.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.<wbr class="">freeswitch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><u class=""></u><u class=""></u></p></blockquote></div><p class="MsoNormal"><u class=""></u> <u class=""></u></p></div></div></div></div></div></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.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="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>