try \d instead of \\d in your regex<br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 1:02 AM, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com">diego.viola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Anthony,<br><br>I just tried to print the variable with the log app, with read it prints, with play_and_get_digits doesn't.<br><br>I'm using latest SVN rev:<br><br>FreeSWITCH Version 1.0.trunk (13012M)<br><br>Thanks,<br>
<font color="#888888">
<br>Diego</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 1:53 AM, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I remember playAndGetDigits had a bug like this too.<br><br>Anthony, please help me.<div><div></div><div><br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It works if I use "read" and do this:<div><br><br><extension name="outbound2"><br>
<condition field="destination_number" expression="^(1888)$"><br></div> <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/><br>
<action application="transfer" data="${res} XML default"/><br> <!--<action application="log" data="CRIT ${foobar}"/>--><br> <!--<action application="socket" data="<a href="http://127.0.0.1:8084" target="_blank">127.0.0.1:8084</a> async full"/>--><br>
</condition><br></extension><br><br>But I need play_and_get_digits to work like that too, please.<br><font color="#888888"><br>Diego</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com" target="_blank">diego.viola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi everyone,<br><br>I have a question... I have this on my dialplan:<br><br><extension name="outbound2"><br>
<condition field="destination_number" expression="^(1888)$"><br> <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/><br>
<action application="transfer" data="${foobar} XML default"/><br> </condition><br></extension><br><br>What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.<br>
<br>I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.<br>
<br>Any ideas?<br><br>Thanks,<br><font color="#888888"><br>Diego<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</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">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="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>