Use RFC2833, and only call start_dtmf on gateways that don't support RFC2833.
From dialplan you could test the SDP variables to see whether the endpoint has negotiated RFC2833 and only call start_dtmf if it hasn't, or test a variable that you set in the user directory / sofia gateway config.
On 4 December 2012 11:41, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
If I set to dtmf-type=none in profile, only inband works because of start_dtmf, If set dtmf-type=rfc2833, in band starts false positive catches. I may be doing something practically wrong here, so just wanted to know what options do we have to set it up correctly?
Thanks, -- Muhammad Naseer Bhatti
On Dec 4, 2012, at 2:48 AM, Michael Collins <msc@freeswitch.org> wrote:
How does it "break the rest of DTMF"? -MC
On Mon, Dec 3, 2012 at 2:14 PM, Muhammad Naseer Bhatti <nbhatti@gmail.com>wrote:
Is there a way to set different dtmf type for different gateways in same profile? I am originating from esl, call is bridged with audio file. (Dialer setup). Some of the providers send dtmf inband and others rfc2833. I am currently checking in my lua script for a custom param, if present then execute start_dtmf to listen for inband dtmf. While this breaks the rest of dtmf. Is there a better way to deal with this or do I have to end up with different profiles each with different dtmf-type.
-- Sent via a mobile device.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org <http://www.freeswitch.org/> http://www.ClueCon.com <http://www.cluecon.com/> http://www.OSTAG.org <http://www.ostag.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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