[Freeswitch-users] absolute_codec_string help

Don Hawkins hawkins at hawkinsegroup.com
Sat Jul 30 00:03:06 MSD 2016


In vars.xml do you have g729 as an available codec?  Maybe you need to add
it to "global_codec_prefs".

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,G711,PCMU,PCMA,VP8"/>
<X-PRE-PROCESS cmd="set"
data="outbound_codec_prefs=OPUS,G711,PCMU,PCMA,VP8"/>

On Fri, Jul 29, 2016 at 12:03 PM, Cj B <blackc2004 at gmail.com> wrote:

> Hi all,
>
> I have couple extensions where I want to force all incoming/outgoing calls
> to be g729 no matter what. I’ve added absolute_codec_string to the
> extension configuration. Here it is from memcache:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <document type="freeswitch/xml">
> <section name="directory">
> <domain name="mydomain.com" alias="true">
> <params>
> <param name="jsonrpc-allowed-methods" value="verto"/>
> <param name="jsonrpc-allowed-event-channels"
> value="demo,conference,presence"/>
> </params>
> <groups>
> <group name="default">
> <users>
> <user id="1001" type=>
> <params>
> <param name="password" value=“mypasswordfromextension"/>
> <param name="vm-enabled" value="true"/>
> <param name="vm-password" value=“voicemailpassword"/>
> <param name="vm-email-all-messages" value="true"/>
> <param name="vm-attach-file" value="true"/>
> <param name="vm-keep-local-after-email" value="true"/>
> <param name="vm-mailto" value="hthoene at gmail.com"/>
> <param name="dial-string" value="{sip_invite_domain=mydomain.com,
> presence_id=1001 at mydomain.com}${sofia_contact(1001 at mydomain.com)}"/>
> <param name="verto-context" value="mydomain.com"/>
> <param name="verto-dialplan" value="XML"/>
> <param name="jsonrpc-allowed-methods" value="verto"/>
> <param name="jsonrpc-allowed-event-channels"
> value="demo,conference,presence"/>
> </params>
> <variables>
> <variable name="domain_uuid" value="d85584d5-5816-4621-9fa5-08b0f1e7ff0a"/>
> <variable name="domain_name" value="mydomain.com"/>
> <variable name="extension_uuid"
> value="e3d2cab9-cfcd-4235-9ea8-142b3caf1b0e"/>
> <variable name="call_timeout" value="30"/>
> <variable name="caller_id_name" value="1001"/>
> <variable name="caller_id_number" value="1001"/>
> <variable name="call_screen_enabled" value="false"/>
> <variable name="hold_music" value="local_stream://default"/>
> <variable name="accountcode" value="mydomain.com"/>
> <variable name="user_context" value="mydomain.com"/>
> <variable name="directory-visible" value="true"/>
> <variable name="directory-exten-visible" value="true"/>
> <variable name="limit_max" value="5"/>
> <variable name="absolute_codec_string" value=“g729"/>
> <variable name="record_stereo" value="true"/>
> <variable name="transfer_fallback_extension" value="operator"/>
> <variable name="export_vars" value="domain_name"/>
> </variables>
> </user>
> </users>
> </group>
> </groups>
> </domain>
> </section>
> </document>
>
> But I’m still seeing calls from the phone in PCMU codec. The phone is an
> SPA2102. I’ve also made sure that g729 is enabled on the phone itself… any
> other suggestions on how to force all incoming and outgoing calls on this
> leg to be g729?
>
> Thanks,
> Cj B
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 
Sincerely,
Don Hawkins
CEO
Hawkins Enterprise Group LLC
http://hawkinsegroup.com
Zello PTT <http://zello.com>: push2don
P: 469-214-5044
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160729/a700f23e/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list