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@gmail.com"/> <param name="dial-string" value="{sip_invite_domain=mydomain.com,presence_id=1001@mydomain.com}${sofia_contact(1001@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
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@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@gmail.com"/> <param name="dial-string" value="{sip_invite_domain=mydomain.com, presence_id=1001@mydomain.com}${sofia_contact(1001@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@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@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
Yes sir, I have it set in both places. Thanks, Cj B
On Jul 29, 2016, at 1:03 PM, Don Hawkins <hawkins@hawkinsegroup.com> wrote:
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@gmail.com <mailto:blackc2004@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 <http://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@gmail.com <mailto:hthoene@gmail.com>"/> <param name="dial-string" value="{sip_invite_domain=mydomain.com <http://mydomain.com/>,presence_id=1001@mydomain.com <mailto:presence_id=1001@mydomain.com>}${sofia_contact(1001@mydomain.com <mailto:1001@mydomain.com>)}"/> <param name="verto-context" value="mydomain.com <http://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 <http://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 <http://mydomain.com/>"/> <variable name="user_context" value="mydomain.com <http://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@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com <http://hawkinsegroup.com/> Zello PTT <http://zello.com/>: push2don P: 469-214-5044 <>_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Cj B
-
Don Hawkins