Inband DTMF set in Event Socket
Hello, How to set the DTMF type as inband when I dial through event socket using api originate command? Thanks, Rex -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
I think you want to turn on this in the originate string? http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf_generate -Avi On Fri, Jul 1, 2011 at 3:41 PM, rex.alex <rajesh.npnr@yahoo.com> wrote:
Hello,
How to set the DTMF type as inband when I dial through event socket using api originate command?
Thanks, Rex
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
I am able to see "<action application="start_dtmf_generate" data="true"/>" which is to enable inband DTMF when I dial through dialplan. But how to enable the same when I dial through api commands like api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno) How to prefix start_dtmf_generate=true in originate command? Thanks, Rex -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
... the same way you set the origination_caller_id_name or the accountcode - they are both setting channel variables. -Avi On Fri, Jul 1, 2011 at 5:46 PM, rex.alex <rajesh.npnr@yahoo.com> wrote:
I am able to see "<action application="start_dtmf_generate" data="true"/>" which is to enable inband DTMF when I dial through dialplan. But how to enable the same when I dial through api commands like
api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno)
How to prefix start_dtmf_generate=true in originate command?
Thanks, Rex
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
similar way I tried both api originate {origination_caller_id_name='XXX', start_dtmf_generate=true}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno) and api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX', start_dtmf_generate=true}sofia/gateway/gw_name/phno) it's not working, but the inband type is working when i use it in dialplan. Please assist. Thanks, Rex -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
/me shakes his head.... start_dtmf_generate is an application not a variable :P use it with execute_on_answer usually... /b On Jul 1, 2011, at 11:48 AM, rex.alex wrote:
similar way I tried both
api originate {origination_caller_id_name='XXX', start_dtmf_generate=true}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno)
and
api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX', start_dtmf_generate=true}sofia/gateway/gw_name/phno)
it's not working, but the inband type is working when i use it in dialplan.
Please assist.
Thanks, Rex
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Inband-DTMF-set-in-Event-Socke... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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
On Fri, Jul 1, 2011 at 8:48 AM, rex.alex <rajesh.npnr@yahoo.com> wrote:
similar way I tried both
api originate {origination_caller_id_name='XXX', start_dtmf_generate=true}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno)
and
api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX', start_dtmf_generate=true}sofia/gateway/gw_name/phno)
it's not working, but the inband type is working when i use it in dialplan.
Please assist.
Which leg needs to have inband DTMF - the calling or the called?
You can use these variables to do a pre-execute on either leg: http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_app http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_data http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_app http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_data start_dtmf_generate is a dialplan app, not a chan var, so it needs to be executed, not "set". -MC
Oh woops. I saw: <action application="start_dtmf_generate" data="true"/> The "true" and my mind just jumped to variable. So I presume you don't need the data=true, and that should be removed from the wiki<http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf_generate> ? -Avi On Fri, Jul 1, 2011 at 7:07 PM, Michael Collins <msc@freeswitch.org> wrote:
On Fri, Jul 1, 2011 at 8:48 AM, rex.alex <rajesh.npnr@yahoo.com> wrote:
similar way I tried both
api originate {origination_caller_id_name='XXX', start_dtmf_generate=true}user/1000 &bridge({accountcode='XXX'}sofia/gateway/gw_name/phno)
and
api originate {origination_caller_id_name='XXX'}user/1000 &bridge({accountcode='XXX', start_dtmf_generate=true}sofia/gateway/gw_name/phno)
it's not working, but the inband type is working when i use it in dialplan.
Please assist.
Which leg needs to have inband DTMF - the calling or the called?
You can use these variables to do a pre-execute on either leg: http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_app http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_aleg_data http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_app http://wiki.freeswitch.org/wiki/Variable_bridge_pre_execute_bleg_data
start_dtmf_generate is a dialplan app, not a chan var, so it needs to be executed, not "set".
-MC
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
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 (4)
-
Avi Marcus
-
Brian West
-
Michael Collins
-
rex.alex