[Freeswitch-users] IVR and TTS

Vinuth Madinur vinuth.madinur at gmail.com
Fri Jan 8 04:16:20 PST 2010


Hi,

"DTMF" event will be raised in ESL, when "A" presses a key. It'll be raised
for each key pressed.

Alternatively you can use play_and_get_digits.

To continue FS execution after you fetch the address, you just need to
invoke the "speak" command on that socket.

Since FS is handling inbound calls, you can use the outbound event socket,
where a new connection will be opened per call from FS to your java program.

One way to know what events are raised in ESL, you can telnet to 8021 port,
authenticate and send "events plain all" command. Configure FS dialplan for
an extension which will just answer a call when it comes in. Then call this
extension from a softphone, press a key and you'll see the corresponding
event in the telnet console.


Thanks,
Vinuth.



On Fri, Jan 8, 2010 at 2:12 PM, Jingwei Yang <jingwei.yang at gmail.com> wrote:

> Hi Guys,
>
> I need to implement a function using IVR and TTS. Here's the scenario.
>
> 1. User A calls in
> 2. FS plays a welcome message and directs A to press '1' to continue
> 3. FS detects A's number and finds A's address from the database and plays
> another piece of voice message including the address info just found
>
> I understand this logic can be implemented using javascript. However, in
> this scenario, the database is a remote one and the local js has no access
> to it. What I'm planning to do is write a Java program, talking to FS via
> ESL. Could someone please tell me what event FS will trigger after user A
> selects a certain option and how to inform the FS to continue the rest of
> IVR menu after finding the address?
>
> Thanks,
> -Jingwei
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100108/887ca02d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list