[Freeswitch-users] Codec enforcment from dialplan?
Dmitry Saratsky
freeswitch at simpot.com
Fri Jun 3 23:44:29 MSD 2011
Hi Michael,
Thanks you, but I have already read this several time. Probably I still not
understand how do I configure late-negotiation.
Please see:
http://lists.freeswitch.org/pipermail/freeswitch-users/2011-June/073246.html
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Collins
Sent: 03 Jun 2011 22:18
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Codec enforcment from dialplan?
FYI, I wrote some nice, gentle words about codec negotiation on the wiki:
http://wiki.freeswitch.org/wiki/Codec_negotiation#Introduction
Start there - it will help you understand codec negotiation in general,
which will give you the foundation you need to do what you're trying to do.
-MC
On Fri, Jun 3, 2011 at 10:49 AM, Dmitry Saratsky <freeswitch at simpot.com>
wrote:
Hi All,
I have some codec-prefs in my FS configured globally for all profiles (In my
case: "global_codec_prefs=G729,PCMU,PCMA,GSM"/>)
In addition, I need to provide for some specific incoming channels other
codec order (PCMU,PCMA) that destined to FS itself. I can identify those
channels by destination number of incoming call (fax service) in my
dialplan.
I can enforce needed codec from dialplan successfully for my outgoing
channels by using (absolute_codec_string='PCMU,PCMA'), but I'm failing to do
the same for incoming channels.
So now I'm enforcing all incoming calls from my provider to different from
global order (<param name="inbound-codec-prefs" value="PCMU,PCMA"/>),
instead of doing this for fax calls only.
Any ideas?
Relevant part of profile config:
<profile name="providers">
<gateways>
<X-PRE-PROCESS cmd="include" data="providers/*.xml"/>
</gateways>
<settings>
<param name="debug" value="0"/>
<param name="shutdown-on-fail" value="true"/>
<param name="auth-calls" value="false"/>
<param name="sip-trace" value="no"/>
<param name="disable-register" value="true"/>
<param name="rfc2833-pt" value="101"/>
<param name="dialplan" value="XML"/>
<param name="context" value="providers"/>
<param name="apply-inbound-acl" value="013SONUS-IPS"/>
<param name="hold-music" value="$${hold_music}"/>
<param name="stun-enabled" value="false"/>
<param name="stun-auto-disable" value="true"/>
<param name="manage-presence" value="false"/>
<param name="nonce-ttl" value="60"/>
<param name="dtmf-type" value="rfc2833"/>
<param name="dtmf-duration" value="2000"/>
<param name="rtp-timer-name" value="soft"/>
<param name="rtp-timeout-sec" value="50"/>
<param name="rtp-hold-timeout-sec" value="300"/>
<param name="sip-port" value="$${sip_port}"/>
<param name="rtp-ip" value="$${rtp_ip}"/>
<param name="sip-ip" value="$${ext_ip}"/>
<!-- <param name="codec-prefs" value="$${global_codec_prefs}"/>-->
<param name="inbound-codec-prefs" value="PCMU,PCMA,G729"/>
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/>
<param name="inbound-late-negotiation" value="false"/>
<param name="inbound-codec-negotiation" value="greedy"/>
<param name="disable-transcoding" value="false"/>
</settings>
</profile>
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110603/55295d9d/attachment-0001.html
More information about the FreeSWITCH-users
mailing list