Handling call forward activate / deactivate through FreeTDM using Sangoma A200
Hello FS users, I have Freeswitch (1.3.13) using a Sangoma A200 card with 2 FXO. I am using FreeTDM and inbound/outbound calls are going through. One of the POTS line has call forwarding feature so my customer wants to have the ability to dial *72 / *73 and get proper dialtone back from the phone company so he can activate or deactivate CFW. While the call is marked as answer in the log, I dont hear the dialtone back so unsure if it works or not. This is the dialplan I used: <extension name="CFW Handler"> <condition field="destination_number" expression="^(\*72|\*73)$"> <action application="set" data="default_language=${default_language}"/> <action application="bridge" data="freetdm/FXO/1/$1"/> <action application="hangup"/> </condition> </extension> Is there a better way or a good way of doing this? Thanks, Benoit Raymond AMI Concept Inc. Solutions VoIP Affaire / Création Web Tel: (450) 553-1231 http://www.amiconcept.com <http://www.amiconcept.com/>
Are you sure that the telco sends back dial tone? One thing you can do is use the ftdm-trace command to capture the raw audio coming in on the port. Another thing you can do is just have *72 go to a play_and_get_digits app that plays dialtone to the user and collects digits. (Look in features.xml for an example of this, in the "dx" extension if memory serves.) From there just bridge to *72 + pause + dialed digits from PAGD. For *73 you can just bridge to *73 since you don't normally need to dial any digits. -MC On Tue, Jan 22, 2013 at 11:53 AM, Benoit Raymond < benoit.raymond@amiconcept.com> wrote:
Hello FS users,****
** **
I have Freeswitch (1.3.13) using a Sangoma A200 card with 2 FXO. I am using FreeTDM and inbound/outbound calls are going through. One of the POTS line has call forwarding feature so my customer wants to have the ability to dial **72 / **73 and get proper dialtone back from the phone company so he can activate or deactivate CFW.****
** **
While the call is marked as answer in the log, I don’t hear the dialtone back so unsure if it works or not. This is the dialplan I used:****
** **
<extension name="CFW Handler">****
<condition field="destination_number" expression="^(\*72|\*73)$">*** *
<action application="set" data="default_language=${default_language}"/>****
<action application="bridge" data="freetdm/FXO/1/$1"/>****
<action application="hangup"/>****
</condition>****
</extension>****
** **
Is there a better way or a good way of doing this?****
** **
Thanks,****
** **
*Benoit Raymond*****
AMI Concept Inc.****
Solutions VoIP Affaire / Création Web****
Tel: (450) 553-1231****
** **
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Hey Michael, Yes, telco returns the confirmation tone (two small tones) if we connect a standard phone directly on the line. Thats how my customer is currently activating / deactivating CFW. The solution you provide is nice but is more a workaround than a solution as it could lead to failures if the telco is, for some reason, not returning the confirmation tone. That would create confusion at my customer. Nevertheless, you brought a good idea as I could use mod_spandsp to detect those tones and then offer such tone back to my customer. Ill pursue this path once I get Sangoma to explain why it takes almost 10 seconds to connect the FXO port on the POTS line and sends the digits. Thanks, Benoit Raymond AMI Concept Inc. Business VoIP Solutions / Web Design Phone: (450) 553-1231 <http://www.amiconcept.com/> http://www.amiconcept.com De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Michael Collins Envoyé : 22 janvier 2013 17:32 À : FreeSWITCH Users Help Objet : Re: [Freeswitch-users] Handling call forward activate / deactivate through FreeTDM using Sangoma A200 Are you sure that the telco sends back dial tone? One thing you can do is use the ftdm-trace command to capture the raw audio coming in on the port. Another thing you can do is just have *72 go to a play_and_get_digits app that plays dialtone to the user and collects digits. (Look in features.xml for an example of this, in the "dx" extension if memory serves.) From there just bridge to *72 + pause + dialed digits from PAGD. For *73 you can just bridge to *73 since you don't normally need to dial any digits. -MC On Tue, Jan 22, 2013 at 11:53 AM, Benoit Raymond <benoit.raymond@amiconcept.com> wrote: Hello FS users, I have Freeswitch (1.3.13) using a Sangoma A200 card with 2 FXO. I am using FreeTDM and inbound/outbound calls are going through. One of the POTS line has call forwarding feature so my customer wants to have the ability to dial *72 / *73 and get proper dialtone back from the phone company so he can activate or deactivate CFW. While the call is marked as answer in the log, I dont hear the dialtone back so unsure if it works or not. This is the dialplan I used: <extension name="CFW Handler"> <condition field="destination_number" expression="^(\*72|\*73)$"> <action application="set" data="default_language=${default_language}"/> <action application="bridge" data="freetdm/FXO/1/$1"/> <action application="hangup"/> </condition> </extension> Is there a better way or a good way of doing this? Thanks, Benoit Raymond AMI Concept Inc. Solutions VoIP Affaire / Création Web Tel: (450) 553-1231 <tel:%28450%29%20553-1231> http://www.amiconcept.com <http://www.amiconcept.com/> _________________________________________________________________________ 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 -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (2)
-
Benoit Raymond
-
Michael Collins