[Freeswitch-users] IVR returning info via event socket

Earl Pinkerton earlpinkerton at gmail.com
Tue Jan 19 00:33:04 PST 2010


Hi All,

I am trying to call an IVR remotely over the event socket port.  I am
testing using telnet.  I call originate (similar to the following):

api originate
{origination_caller_id_number=8885551111,ignore_early_media=true}sofia/gateway/teliax/18885552222
&ivr(demo_ivr)

This works fine (places the call, runs the IVR, accepts DTMF tones to move
between menus).

My problem is that I would like the remote app to send a PIN as part of the
originate call, then have the callie enter the PIN via DTMF and indicate
whether there was a match or not back to the calling app (which is a remote
web program).  We are trying to keep it simple and have the remote app just
call the IVR and get the result, without having to control the IVR through
asynchronous events.

Is there any way for the IVR to check for a match, then somehow send info
back over the port to the calling app?

By the way, I tried using menu-exec-api inside ivr.conf.xml (to see if I
might be able to use the echo api call or something similar), but I got the
following error:

  2010-01-19 01:22:55.796658 [WARNING] switch_ivr_menu.c:704 Invalid Action
[menu-exec-api]

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100119/aee2d56d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list