[Freeswitch-users] Trapping dtmf on bridged call

Nik Middleton nik.middleton at noblesolutions.co.uk
Mon Dec 7 14:56:16 PST 2009


Once the call is bridged, while I can see an inband DTMF event being
generated, it doesn't call my hook unfortuneately

 

function onInput(session, type, obj)

if type == "dtmf" and obj['digit'] == '*'  then

            session:hangup();

            return  true;

 end

 

 

session:execute("start_dtmf");

session:execute("bridge",bridgestring );

 

Am I missing something?  Before the bridge, the oninput function works
fine

 

Regards,

 

________________________________

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: 07 December 2009 22:15
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Trapping dtmf on bridged call

 

session:execute("start_dtmf");

this app captures inband audio tone dtmf and interprets them aka calls
your callback etc.



On Mon, Dec 7, 2009 at 4:02 PM, Nik Middleton
<nik.middleton at noblesolutions.co.uk> wrote:

Hi

 

Is it possible to trap on DTMF on a bridged call within an LUA script?
I've tried setting the gateway to use inband, but no joy.  It looks like
I could use start_dtmf, but I can't see how to launch this within LUA

 

Regards,


_______________________________________________
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




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
pstn:213-799-1400

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091207/0ce7a20d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list