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
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