Re: [Freeswitch-users] Trouble with transfer and voicemail password
go ahead and get a debug log of a call coming in, being answered, and the recipient dialing *0#xxx# to send the call elsewhere. Drop it into pastebin.freeswitch.org and use "FreeSWITCH Log" as the syntax highlighting.
I am not sure how much the log will help. It doesn't show me pushing anything after the transfer code (*01 as I was experimenting and forgot to change it back to *0# as I had it set before). If I dial any thing 1000, 1000#, 1001, 1001# it all fails and plays the invalid_extension.wav. I have changed the code a little bit. It now reads: <extension name="setup bind_digit_action_transfer"> <condition field="destination_number" expression="^SETUP_TRANSFER$"> <action application="log" data="INFO Configuring bind_digit_action to do recording on this session..."/> <action application="bind_digit_action" data="do_transfer,*01,exec:execute_extension,DO_TRANSFER XML Incoming-FXO"/> <action application="digit_action_set_realm" data="do_transfer"/> </condition> </extension> <extension name="setup transfer" continue="true"> <condition field="chan_name" expression="^FreeTDM/3:1/"> <action application="set" data="bridge_pre_execute_bleg_app=execute_extension"/> <action application="set" data="bridge_pre_execute_bleg_data=SETUP_TRANSFER XML Incoming-FXO"/> </condition> </extension> <extension name="bind_digit_action Do Transfer"> <condition field="destination_number" expression="^DO_TRANSFER$"> <action application="log" data="INFO Transferring external call to another internal location..."/> <action application="play_and_get_digits" data="1 10 1 1000 # misc/silence.wav misc/invalid_extension.wav target_extension ^(\d+)$"/> <action application="log" data="INFO Transferring external call to internal ${target_extension} ${1}..."/> <action application="transfer" data="-bleg ${target_extension} XML Internal-FXS"/> </condition> </extension> It seems that I had a problem with play and get digits not working when I was working on my call screener (I stopped work do to bug openzap-137). I seemed to have gotten around it by rewriting the entire thing in lua. I may be remembering incorrectly as this was months ago. Thank you for any help, Trever -- "Selfishness is really self-destruction in slow motion." -— Elder Neal A. Maxwell - Ensign, May 1999, 23
If it's anything like the Linksys phones, you might have to change the dialplan on the phone itself in order to dial certain digits and make sure all if it is sent to the switch instead of holding some of the dialed digits back. Double check this to make sure you aren't being sent on a wild goose chase. -BDF On Mar 27, 2012 6:11 AM, "Trever L. Adams" <trever.adams@gmail.com> wrote:
go ahead and get a debug log of a call coming in, being answered, and the recipient dialing *0#xxx# to send the call elsewhere. Drop it into pastebin.freeswitch.org and use "FreeSWITCH Log" as the syntax highlighting.
I am not sure how much the log will help. It doesn't show me pushing anything after the transfer code (*01 as I was experimenting and forgot to change it back to *0# as I had it set before).
If I dial any thing 1000, 1000#, 1001, 1001# it all fails and plays the invalid_extension.wav. I have changed the code a little bit. It now reads:
<extension name="setup bind_digit_action_transfer"> <condition field="destination_number" expression="^SETUP_TRANSFER$"> <action application="log" data="INFO Configuring bind_digit_action to do recording on this session..."/> <action application="bind_digit_action" data="do_transfer,*01,exec:execute_extension,DO_TRANSFER XML Incoming-FXO"/> <action application="digit_action_set_realm" data="do_transfer"/> </condition> </extension>
<extension name="setup transfer" continue="true"> <condition field="chan_name" expression="^FreeTDM/3:1/"> <action application="set" data="bridge_pre_execute_bleg_app=execute_extension"/> <action application="set" data="bridge_pre_execute_bleg_data=SETUP_TRANSFER XML Incoming-FXO"/> </condition> </extension>
<extension name="bind_digit_action Do Transfer"> <condition field="destination_number" expression="^DO_TRANSFER$"> <action application="log" data="INFO Transferring external call to another internal location..."/> <action application="play_and_get_digits" data="1 10 1 1000 # misc/silence.wav misc/invalid_extension.wav target_extension ^(\d+)$"/> <action application="log" data="INFO Transferring external call to internal ${target_extension} ${1}..."/> <action application="transfer" data="-bleg ${target_extension} XML Internal-FXS"/> </condition> </extension>
It seems that I had a problem with play and get digits not working when I was working on my call screener (I stopped work do to bug openzap-137). I seemed to have gotten around it by rewriting the entire thing in lua. I may be remembering incorrectly as this was months ago.
Thank you for any help, Trever -- "Selfishness is really self-destruction in slow motion." -— Elder Neal A. Maxwell - Ensign, May 1999, 23
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 03/27/2012 04:58 AM, Brian Foster wrote:
If it's anything like the Linksys phones, you might have to change the dialplan on the phone itself in order to dial certain digits and make sure all if it is sent to the switch instead of holding some of the dialed digits back. Double check this to make sure you aren't being sent on a wild goose chase.
-BDF
BDF, Thank you, but this are actual POTS phones on FXS ports. Thank you for the suggestion. Trever -- "The world is full of people who have never, since childhood, met an open doorway with an open mind." -- E.B. White
Hi Trevor, Sounds like the same issue I have. I posted around 3 weeks ago but didn't get a reply. I was doing attended transfer on a POT. Basically the dialplan detected the attended transfer DTMF sequence and entered the correct dialplan extension but any digits pressed after that didn't seem to reach that dialplan extension. I am not sure if it is a FreeTDM issue or a dialplan issue. I could see no evidence in any logs that the digits were being delivered. I am about to get back to debugging the problem soon. My last thought was that I still have a default.xml in my dialplan and maybe it is doing things I am not aware of in some way. Sorry I can't offer any real help as I am fairly new to FS - but if it is the same problem then at least you know you aren't going mad, comfort in numbers etc :-) Cheers Shane On Wed, Mar 28, 2012 at 12:04 AM, Trever L. Adams <trever.adams@gmail.com>wrote:
On 03/27/2012 04:58 AM, Brian Foster wrote:
If it's anything like the Linksys phones, you might have to change the dialplan on the phone itself in order to dial certain digits and make sure all if it is sent to the switch instead of holding some of the dialed digits back. Double check this to make sure you aren't being sent on a wild goose chase.
-BDF
BDF,
Thank you, but this are actual POTS phones on FXS ports. Thank you for the suggestion.
Trever -- "The world is full of people who have never, since childhood, met an open doorway with an open mind." -- E.B. White
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Paragon Electronic Design Ltd L6 Crest House 92 Queens Drive P0 Box 30449 Lower Hutt 5040 +64 4 5703870 Extn 875 +64 21 608919 (mobile) "Solving your problems with the right technology"
Trever, I think there is a better way to do this. Look at this example: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action#Catch... 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. -MC On Tue, Mar 27, 2012 at 3:11 AM, Trever L. Adams <trever.adams@gmail.com>wrote:
go ahead and get a debug log of a call coming in, being answered, and the recipient dialing *0#xxx# to send the call elsewhere. Drop it into pastebin.freeswitch.org and use "FreeSWITCH Log" as the syntax highlighting.
I am not sure how much the log will help. It doesn't show me pushing anything after the transfer code (*01 as I was experimenting and forgot to change it back to *0# as I had it set before).
If I dial any thing 1000, 1000#, 1001, 1001# it all fails and plays the invalid_extension.wav. I have changed the code a little bit. It now reads:
<extension name="setup bind_digit_action_transfer"> <condition field="destination_number" expression="^SETUP_TRANSFER$"> <action application="log" data="INFO Configuring bind_digit_action to do recording on this session..."/> <action application="bind_digit_action" data="do_transfer,*01,exec:execute_extension,DO_TRANSFER XML Incoming-FXO"/> <action application="digit_action_set_realm" data="do_transfer"/> </condition> </extension>
<extension name="setup transfer" continue="true"> <condition field="chan_name" expression="^FreeTDM/3:1/"> <action application="set" data="bridge_pre_execute_bleg_app=execute_extension"/> <action application="set" data="bridge_pre_execute_bleg_data=SETUP_TRANSFER XML Incoming-FXO"/> </condition> </extension>
<extension name="bind_digit_action Do Transfer"> <condition field="destination_number" expression="^DO_TRANSFER$"> <action application="log" data="INFO Transferring external call to another internal location..."/> <action application="play_and_get_digits" data="1 10 1 1000 # misc/silence.wav misc/invalid_extension.wav target_extension ^(\d+)$"/> <action application="log" data="INFO Transferring external call to internal ${target_extension} ${1}..."/> <action application="transfer" data="-bleg ${target_extension} XML Internal-FXS"/> </condition> </extension>
It seems that I had a problem with play and get digits not working when I was working on my call screener (I stopped work do to bug openzap-137). I seemed to have gotten around it by rewriting the entire thing in lua. I may be remembering incorrectly as this was months ago.
Thank you for any help, Trever -- "Selfishness is really self-destruction in slow motion." -— Elder Neal A. Maxwell - Ensign, May 1999, 23
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 03/27/2012 10:09 AM, Michael Collins wrote:
Trever,
I think there is a better way to do this. Look at this example: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action#Catch...
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.
-MC
Michael, Thank you for the response. The problem with your suggestion is that what I am trying to do is in the documentation, slightly different situation, at http://wiki.freeswitch.org/wiki/Conference_Add_Call_Example Additionally, since this is a POTS setup, your suggestion puts more tones in the callers ear. One final problem is that is that I am not sure how to strip off the *0# from the extension. I know the regex would be ^*0#(\d{4})$. I am just not sure how to match that against last_matching_digits and save it or use $1 elsewhere. Thank you, Trever
participants (4)
-
Brian Foster
-
Michael Collins
-
Shane Harrison
-
Trever L. Adams