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.<br>
<br>-MC<br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 11:53 AM, Benoit Raymond <span dir="ltr"><<a href="mailto:benoit.raymond@amiconcept.com" target="_blank">benoit.raymond@amiconcept.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="FR-CA"><div><p class="MsoNormal">Hello FS users,<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><span lang="EN-CA">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 *<b>72 / </b>*73 and get proper dialtone back from the phone company so he can activate or deactivate CFW.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">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:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA"> <extension name="CFW Handler"><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"> <condition field="destination_number" expression="^(\*72|\*73)$"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"> <action application="set" data="default_language=${default_language}"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"> <action application="bridge" data="freetdm/FXO/1/$1"/><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"> <action application="hangup"/><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"> </condition><u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-CA"> </extension><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">Is there a better way or a good way of doing this?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p><p class="MsoNormal">
<b><span>Benoit Raymond</span></b><span><u></u><u></u></span></p><p class="MsoNormal"><span>AMI Concept Inc.<u></u><u></u></span></p><p class="MsoNormal"><span>Solutions VoIP Affaire / Création Web<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA">Tel: <a href="tel:%28450%29%20553-1231" value="+14505531231" target="_blank">(450) 553-1231</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt" lang="EN-CA"><a href="http://www.amiconcept.com/" target="_blank">http://www.amiconcept.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p></div></div><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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>