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'll need to strip off the leading and trailing digits but that shouldn'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"><<a href="mailto:trever.adams@gmail.com">trever.adams@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> go ahead and get a debug log of a call coming in, being answered, and the<br>
> recipient dialing *0#xxx# to send the call elsewhere. Drop it into<br>
> <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a> and use "FreeSWITCH Log" as the syntax highlighting.<br>
><br>
> -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'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>
<extension name="setup bind_digit_action_transfer"><br>
<condition field="destination_number"<br>
expression="^SETUP_TRANSFER$"><br>
<action application="log" data="INFO Configuring<br>
bind_digit_action to do recording on this session..."/><br>
<action application="bind_digit_action"<br>
</div>data="do_transfer,*01,exec:execute_extension,DO_TRANSFER XML Incoming-FXO"/><br>
<div class="im"> <action application="digit_action_set_realm"<br>
data="do_transfer"/><br>
</condition><br>
</extension><br>
<br>
<extension name="setup transfer" continue="true"><br>
<condition field="chan_name" expression="^FreeTDM/3:1/"><br>
<action application="set"<br>
data="bridge_pre_execute_bleg_app=execute_extension"/><br>
<action application="set"<br>
data="bridge_pre_execute_bleg_data=SETUP_TRANSFER XML Incoming-FXO"/><br>
</condition><br>
</extension><br>
<br>
<extension name="bind_digit_action Do Transfer"><br>
<condition field="destination_number"<br>
expression="^DO_TRANSFER$"><br>
<action application="log" data="INFO Transferring<br>
external call to another internal location..."/><br>
</div> <action application="play_and_get_digits" data="1 10<br>
1 1000 # misc/silence.wav misc/invalid_extension.wav target_extension<br>
^(\d+)$"/><br>
<div class="im"> <action application="log" data="INFO Transferring<br>
</div>external call to internal ${target_extension} ${1}..."/><br>
<div class="im"> <action application="transfer" data="-bleg<br>
</div>${target_extension} XML Internal-FXS"/><br>
</condition><br>
</extension><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>
"Selfishness is really self-destruction in slow motion." -— 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>