Hi,<div><br></div><div>"DTMF" event will be raised in ESL, when "A" presses a key. It'll be raised for each key pressed. </div><div><br></div><div>Alternatively you can use play_and_get_digits.</div>
<div><br></div><div>To continue FS execution after you fetch the address, you just need to invoke the "speak" command on that socket.</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div><br></div><div>Thanks,</div><div>Vinuth.</div><div><br></div><div><br><br><div class="gmail_quote">On Fri, Jan 8, 2010 at 2:12 PM, Jingwei Yang <span dir="ltr"><<a href="mailto:jingwei.yang@gmail.com" target="_blank">jingwei.yang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Hi Guys,<br><br>I need to implement a function using IVR and TTS. Here's the scenario.<br><br>1. User A calls in<br>2. FS plays a welcome message and directs A to press '1' to continue<br>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<br>
<br>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?<br>
<br>Thanks,<br><font color="#888888">-Jingwei<br></font><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br></blockquote></div></div>