[Freeswitch-users] Collecting DTMF digits with mod_httapi

Rafal Gwizdala rafal.gwizdala at gmail.com
Sat Jun 22 23:37:23 MSD 2013


nevermind, my input binding was incorrect
this binding will match any digits followed by #:
<bind strip="#">~\d+#</bind>



On Sat, Jun 22, 2013 at 9:27 PM, Rafal Gwizdala <rafal.gwizdala at gmail.com>wrote:

> Hi, could you give me some example of what's necessary to collect DTMF
> digits during audio file playback and how to return collected data to my
> web application? I'm sorry but even after reading FS 1.2 book I don't know
> how to do that.
> Here's my application's httapi script:
>
> <document type="text/freeswitch-httapi">
>     <work>
> <pause milliseconds="2000" />
>         <playback file="http://wypas2/simver/audio/test2.wav"
> name="digits"
>             digit-timeout="5" input-timeout="15" loops="3"
> terminators="#">
>             <bind strip="#">~\\d{3}</bind >
>         </playback>
>
>     </work>
> </document>
>
> but i don't see the collected digits anywhere in request parameters coming
> from FS.
>
> Thanks
> RG
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130622/812c6162/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list