<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="">FreeSWITCH knows about g729 just fine. you shouldn’t be using proxy. Check out the page i referenced below for information on how to accomplish it, Proxy media mode is not the way you want to use for sure.<div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 23, 2016, at 11:35 PM, 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="">actually, my FS needs to be in proxy_media mode, since it always deal with codecs it doesn't know about, g729.<br class=""></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 class=""></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't know my full supported codec.<br class=""><br class=""></div>rgds<br class=""><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 : 84.1224.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 Thu, Nov 24, 2016 at 12:33 AM, Michael Jerris <span dir="ltr" class=""><<a href="mailto:mike@jerris.com" target="_blank" class="">mike@jerris.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" 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" target="_blank" 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=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 23, 2016, at 5:37 AM, Lợi Đặng <<a href="mailto:loi.dangthanh@gmail.com" target="_blank" class="">loi.dangthanh@gmail.com</a>> wrote:</div><br class="m_8184133397040917596Apple-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="m_8184133397040917596gmail_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_8184133397040917596m_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@lists<wbr class="">.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" class="">freeswitch-users-bounc<wbr class="">es@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.freesw<wbr class="">itch.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="m_8184133397040917596h5"><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=P<wbr class="">CMU,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}so<wbr class="">fia/gateway/caller/100 &bridge({absolute_codec_string<wbr class="">=PCMA}sofia/gateway/callee/<wbr class="">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></div></blockquote></div></div></div></blockquote></div></div></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""></div></div></body></html>