[Freeswitch-users] Trapping dtmf on bridged call

Pete Mueller pete at privateconnect.com
Mon Dec 7 19:16:47 PST 2009


I had this featured requested of me a few months ago.  

 

Bind_meta_app does work, but requires two tones, the "*" plus an additional
digit.  I needed to perform a task on the "*".  I re-wrote the bind_meta_app
handler so that if you attached a instruction to what would be "**" hitting
a single "*" would active it.  Kind of a hack, but if no one comes up with a
more elegant way, I could provide a .patch file that did the necessary
changes.

 

I'd love an all-LUA method, or something that could use an existing
InputCallback routine, but this worked for my immediate need.

-pete

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Nik
Middleton
Sent: Monday, December 07, 2009 4:32 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Trapping dtmf on bridged call

 

Yes I did, is it possible mod_vmd is interering?  It's stopped before I call
the start_dtmf function

 

 

session:setHangupHook("myHangupHook", "blah")

session:setInputCallback("onInput");

session:execute("vmd","start");

 

 

if (session:ready() == false) then

            freeswitch.consoleLog("info", " : Call Failed!!!\n");

end

 

session:answer();

 

  _____  

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 23:21
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Trapping dtmf on bridged call

 

did you set the inputcallback too?

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

Can this be done in an lua script?

 

Regards,

 

  _____  

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Collins
Sent: 07 December 2009 22:18


To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Trapping dtmf on bridged call

 

 

On Mon, Dec 7, 2009 at 2: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

Perhaps you could use bind-meta-app to bind a key combo like *1 to whatever
you want to have happen. Check it out:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_meta_app

The Local_Extension in the default.xml dialplan file has a few examples of
using this tool.
-MC

 


_______________________________________________
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/5a732875/attachment-0002.html 


More information about the FreeSWITCH-users mailing list