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
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Vinuth, Thanks a lot for your great response! Regards, -Jingwei On Fri, Jan 8, 2010 at 8:16 PM, Vinuth Madinur <vinuth.madinur@gmail.com>wrote:
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Jingwei Yang
-
Vinuth Madinur