<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">why so complicated?<br>You can launch a Lua or Javascript script when the user is in the call, collect the needed digits, and then you can do all kinds of database lookup if needed. <br><br>If you really need to use the outbound socket, make sure you use the "full" mode -- then you can collect the digits from your event socket application. In this case, you would only need one port, and you would be able to execute the API call to collect the digits:<br>https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits<br><br><br><div><span><br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span
 style="font-weight:bold;">From:</span></b> Jamie McClelland &lt;jm@mayfirst.org&gt;<br> <b><span style="font-weight: bold;">To:</span></b> freeswitch-dev@lists.freeswitch.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, September 1, 2013 11:03 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-dev] accessing key presses with outbound event        socket<br> </font> </div> <div class="y_msg_container"><br>Hi all,<br><br>I'm still curious if it's possible to query a user in an outbound event<br>soekct, but in the meantime I came up with a work around.<br><br>I've configured the event socket application to listen on ports 50,001 -<br>50,999.<br><br>Then, I prompt for the conference number (between 1 and 999) in the<br>freeswitch configuration (which is trivial) *before* sending the user to<br>the event socket application. I add 50,000 to the number and then use<br>that port number when connecting to the event
 socket application.<br><br>The event socket app simply checks what the incoming port is being used,<br>subtracts 50,000 and set the conference number accordingly.<br><br>jamie<br><br><br>On Tue Aug 27, Jamie McClelland wrote:<br>&gt; Hi all,<br>&gt; <br>&gt; Thanks again for your help in completing our simulataneous<br>&gt; interpretation system using freeswitch[0].<br>&gt; <br>&gt; I'm now trying to add the ability for users to enter the conference<br>&gt; number they would like to join.<br>&gt; <br>&gt; I see lots of examples for doing this, but none that are using an<br>&gt; outbound event socket.<br>&gt; <br>&gt; With event socket, I can capture dtmf digit events *after* the user<br>&gt; enters the conference call. But I am having trouble first prompting the<br>&gt; user to enter the conference number and then capturing their output and<br>&gt; using it to determine which conference room to sent them to.<br>&gt; <br>&gt; I'm using fiorix's python
 event socket code [1]. So far I've been<br>&gt; experimenting with the read command[2].<br>&gt; <br>&gt; However, I'm not sure how to retrieve the digits pressed after calling<br>&gt; this command. Is their a command that can query freeswitch to get the<br>&gt; value of the variable I set with the read command? <br>&gt; <br>&gt; Any help would be greatly appreciated.<br>&gt; <br>&gt; jamie<br>&gt; <br>&gt; 0. <a href="http://lists.freeswitch.org/pipermail/freeswitch-dev/2013-February/006406.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-dev/2013-February/006406.html</a><br>&gt; 1. <a href="https://github.com/fiorix/eventsocket" target="_blank">https://github.com/fiorix/eventsocket</a><br>&gt; 2. <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read</a><br>&gt; <br>&gt; -- <br>&gt; May First/People Link<br>&gt; Growing networks to build a just
 world<br>&gt; <a href="http://www.mayfirst.org/" target="_blank">http://www.mayfirst.org</a><br>&gt; <a href="https://support.mayfirst.org/" target="_blank">https://support.mayfirst.org</a><br>&gt; <br>&gt; OpenPGP Key: <a href="http://current.workingdirectory.net/pages/identity/" target="_blank">http://current.workingdirectory.net/pages/identity/ </a><br><br><br><br>&gt; _________________________________________________________________________<br>&gt; Professional FreeSWITCH Consulting Services:<br>&gt; <a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>&gt; <br>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>&gt; <br>&gt; Official FreeSWITCH Sites<br>&gt; <a
 href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>&gt; <br>&gt; FreeSWITCH-dev mailing list<br>&gt; <a ymailto="mailto:FreeSWITCH-dev@lists.freeswitch.org" href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br>-- <br>-- <br>May First/People Link<br>Growing networks to build a just
 world<br><a href="http://www.mayfirst.org/" target="_blank">http://www.mayfirst.org</a><br><a href="https://support.mayfirst.org/" target="_blank">https://support.mayfirst.org</a><br><br>OpenPGP Key: <a href="http://current.workingdirectory.net/pages/identity/" target="_blank">http://current.workingdirectory.net/pages/identity/ </a><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a
 href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-dev mailing list<br><a ymailto="mailto:FreeSWITCH-dev@lists.freeswitch.org" href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br></div> </div> </div>  </div></body></html>