[Freeswitch-users] FreeSWITCH-users Digest, Vol 134, Issue 158

'Yemi Obembe fickledreams at yahoo.com
Thu Aug 31 08:59:11 UTC 2017


This, anyone?

On Wednesday, August 30, 2017, 4:36:56 PM GMT+1, <freeswitch-users-request at lists.freeswitch.org> wrote:

I am using HTTAPI and need to get user input sent to a URL. The idea is this: play audio, get user input and send it to a URL. Every attempt hasn't worked so far. fs_cli shows the input from the user. It's just not getting to the URL. Here are what I have tried:
This sends some details to the playback action URL but nothing about the user input is sent. 
<document type="text/freeswitch-httapi"> <work>  <playback file="https://server/path/to/file" digit-timeout="5000" name="user_input" terminators="#" action="https://requestb.in/1gzfx1g1">  <bind>~\d{3}#}</bind> </playback> </work></document>

Tried putting action in <bind>. Doesn't work too:
<document type="text/freeswitch-httapi"> <work>  <playback file="https://server/path/to/file" digit-timeout="5000" name="user_input" terminators="#">  <bind action="https://requestb.in/1gzfx1g1">~\d{3}#}</bind> </playback> </work></document>
Using execute/play_and_get_digits doesn't either:
<document type="text/freeswitch-httapi"><params></params><variables><digits>0</digits></variables><work> <execute action="https://requestb.in/1gzfx1g1" application="play_and_get_digits" data="2 5 3 8000 # https://server/path/to/file '' digits \d{3} " /></work>
</document>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170831/d387924e/attachment-0001.html>


More information about the FreeSWITCH-users mailing list