[Freeswitch-users] XML IVR and Javascript menu-exec-app

Michael Collins msc at freeswitch.org
Tue Jan 5 13:02:37 PST 2010


On Fri, Jan 1, 2010 at 10:03 AM, Alberto Escudero <aep.lists at it46.se> wrote:

> Hi,
>
> I am writing several IVRs using Freeswitch XML
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_ivr
>
> One of the nodes of the IVR is a Javascript application that records a
> message.
> e.g.:
> <entry action="menu-exec-app" digits="3" param="javascript foo.js"/>
>
> The Javascript application starts by issuing a
> session.answer()
>
> [records the voice message]
>
> exit();
>
> Once the Javascript exits, the channel is dropped and hence the IVR
> terminates.
> Is it possible to write a Javascript application that once is completed,
> the channel returns back to the top menu of the IVR? I want to emulate the
> same behavior that "menu-play-sound", that once the file is played, the
> IVR logic returns to the top menu.
>
> Just transfer the call to an extension in the dialplan that in turn sends
the call to the IVR in question...
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100105/ae0d1365/attachment-0002.html 


More information about the FreeSWITCH-users mailing list