Trever,<br><br>I think there is a better way to do this. Look at this example:<br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action#Catching_the_Digits_Dialed">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action#Catching_the_Digits_Dialed</a><br>
<br>I think if you use the last digits dialed you should be able to avoid the play_and_get_digits altogether. You&#39;ll need to strip off the leading and trailing digits but that shouldn&#39;t be too difficult.<br><br>-MC<br>
<br><div class="gmail_quote">On Tue, Mar 27, 2012 at 3:11 AM, Trever L. Adams <span dir="ltr">&lt;<a href="mailto:trever.adams@gmail.com">trever.adams@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; go ahead and get a debug log of a call coming in, being answered, and the<br>
&gt; recipient dialing *0#xxx# to send the call elsewhere. Drop it into<br>
&gt; <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a> and use &quot;FreeSWITCH Log&quot; as the syntax highlighting.<br>
&gt;<br>
&gt; -MC<br>
</div><a href="http://pastebin.freeswitch.org/18753" target="_blank">http://pastebin.freeswitch.org/18753</a><br>
<br>
I am not sure how much the log will help. It doesn&#39;t show me pushing<br>
anything after the transfer code (*01 as I was experimenting and forgot<br>
to change it back to *0# as I had it set before).<br>
<br>
If I dial any thing 1000, 1000#, 1001, 1001# it all fails and plays the<br>
invalid_extension.wav. I have changed the code a little bit. It now reads:<br>
<div class="im"><br>
                &lt;extension name=&quot;setup bind_digit_action_transfer&quot;&gt;<br>
                  &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^SETUP_TRANSFER$&quot;&gt;<br>
                     &lt;action application=&quot;log&quot; data=&quot;INFO Configuring<br>
bind_digit_action to do recording on this session...&quot;/&gt;<br>
                     &lt;action application=&quot;bind_digit_action&quot;<br>
</div>data=&quot;do_transfer,*01,exec:execute_extension,DO_TRANSFER XML Incoming-FXO&quot;/&gt;<br>
<div class="im">                     &lt;action application=&quot;digit_action_set_realm&quot;<br>
data=&quot;do_transfer&quot;/&gt;<br>
                  &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
<br>
              &lt;extension name=&quot;setup transfer&quot; continue=&quot;true&quot;&gt;<br>
                  &lt;condition field=&quot;chan_name&quot; expression=&quot;^FreeTDM/3:1/&quot;&gt;<br>
                     &lt;action application=&quot;set&quot;<br>
data=&quot;bridge_pre_execute_bleg_app=execute_extension&quot;/&gt;<br>
                     &lt;action application=&quot;set&quot;<br>
data=&quot;bridge_pre_execute_bleg_data=SETUP_TRANSFER XML Incoming-FXO&quot;/&gt;<br>
                  &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
<br>
                &lt;extension name=&quot;bind_digit_action Do Transfer&quot;&gt;<br>
                  &lt;condition field=&quot;destination_number&quot;<br>
expression=&quot;^DO_TRANSFER$&quot;&gt;<br>
                    &lt;action application=&quot;log&quot; data=&quot;INFO Transferring<br>
external call to another internal location...&quot;/&gt;<br>
</div>                    &lt;action application=&quot;play_and_get_digits&quot; data=&quot;1 10<br>
1 1000 # misc/silence.wav misc/invalid_extension.wav target_extension<br>
^(\d+)$&quot;/&gt;<br>
<div class="im">                    &lt;action application=&quot;log&quot; data=&quot;INFO Transferring<br>
</div>external call to internal ${target_extension} ${1}...&quot;/&gt;<br>
<div class="im">                    &lt;action application=&quot;transfer&quot; data=&quot;-bleg<br>
</div>${target_extension} XML Internal-FXS&quot;/&gt;<br>
                  &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
<br>
It seems that I had a problem with play and get digits not working when<br>
I was working on my call screener (I stopped work do to bug<br>
openzap-137). I seemed to have gotten around it by rewriting the entire<br>
thing in lua. I may be remembering incorrectly as this was months ago.<br>
<br>
Thank you for any help,<br>
Trever<br>
<span class="HOEnZb"><font color="#888888">--<br>
&quot;Selfishness is really self-destruction in slow motion.&quot; -— Elder Neal<br>
A. Maxwell - Ensign, May 1999, 23<br>
<br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a 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-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>