[Freeswitch-users] V8 IVR code

Rick Jarvis rick at magicmail.mooo.com
Fri Oct 20 14:52:17 UTC 2017

Using the code at https://freeswitch.org/confluence/display/FREESWITCH/Simple+IVR+in+JavaScript <https://freeswitch.org/confluence/display/FREESWITCH/Simple+IVR+in+JavaScript>

I’m trying to get it not to wait if 1, 2 or 3 is pressed, and put the call straight through. But still wait, if it’s another key (as it might be an extension number). I’ve tried testing the digits variable in the on_dtmf function but just can’t get it to play ball. Anyone else done this, or any pointers?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171020/82144690/attachment.html>

More information about the FreeSWITCH-users mailing list