I notice that there are DTMF events that come over the event socket. Is it best practice to use the play_and_get_digits dialplan app to collect digits or is collecting the digits using the DTMF events a better way?<br><br>
<div class="gmail_quote">On Wed, Feb 23, 2011 at 8:26 AM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
my $e;<br>
my $foobar;<br>
<br>
$e = $con-&gt;api(&quot;uuid_getvar&quot;, &quot;$uuid foobar&quot;);<br>
<br>
if ($e) {<br>
    $foobar = $e-&gt;getBody();<br>
<div><div></div><div class="h5">}<br>
<br>
<br>
On Wed, Feb 23, 2011 at 1:39 AM, Herman Griffin<br>
&lt;<a href="mailto:herman.griffin@gmail.com">herman.griffin@gmail.com</a>&gt; wrote:<br>
&gt; Unless I&#39;m complicating things, it seems like a drop to write outbound event<br>
&gt; sockets apps versus writing embedded language apps. However, I&#39;m interested<br>
&gt; in writing event sockets apps because I can see an advantage in being able<br>
&gt; to load balance the app by running you app behind a load balancer. One<br>
&gt; simple thing that I am trying to accomplish is collecting digits and doing<br>
&gt; something useful with string of digits that have been collected.<br>
&gt;<br>
&gt; My first attempt at this is to use the play_and_get_digits dptool, but I<br>
&gt; don&#39;t now how to pull data from stored variable so that I can use in the<br>
&gt; script. I slightly modified the freeswitch.git/libs/esl/perl/<a href="http://server2.pl" target="_blank">server2.pl</a><br>
&gt; script by adding this line:<br>
&gt;<br>
&gt; $con-&gt;execute(&#39;play_and_get_digits&#39;, &#39;2 5 3 7000 #<br>
&gt; ${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav /invalid.wav<br>
&gt; foobar \d+&#39; );<br>
&gt;<br>
&gt; The next thing that I&#39;d like to do is grab the value in foobar is use it in<br>
&gt; the perl logic.<br>
&gt;<br>
&gt; Can someone lead me to the next step?<br>
&gt; Does anyone with experience with event socket apps and embedded language<br>
&gt; apps have some useful information about their preferred path?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Herman<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
</blockquote></div><br>