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

Alberto Escudero aep.lists at it46.se
Fri Jan 1 10:03:28 PST 2010


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.

-aep

-- 
Stopping junk mailers is good for the environment







More information about the FreeSWITCH-users mailing list