<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-2022-jp"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We have a freeswitch setup with an Sangoma A200 plus 1 remora card setup. The cards have 6 FXO ports that go to 5 POTS lines and 2 FXS ports. Our fax machine is plugged into the first FXS port (freetdm 1:1). Incoming faxes work fine but outgoing faxes do not. The fax line is the 3<sup>rd</sup> Pots line (freetdm 2:3).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The incoming faxes are bridged with this in the 00_inbound_did.xml:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><!– LINE3 328-6982–><br>< !– Always directed to the fax machine –><br>< extension name=”Line 3(6982)” continue=”true”><br>< condition field=”source” expression=”mod_freetdm”/><br>< condition field=”${channel_name}” expression=”^(FreeTDM/2:3/)$”><br>< action application=”set” data=”domain_name=$${domain}”/><br>< action application=”set” data=”transfer_ringback=$${us-ring}”/><br>< action application=”bridge” data=”freetdm/2/3|freetdm/1/1″/><br>< /condition><br>< /extension><br>< !– LINE3 DONE–><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Outgoing faxes are bridged with this in the dialplan/default.xml:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><extension name=”bridge-FXS-to-FXO” continue=”true”><br>< condition field=”destination_number” expression=”^7(.+)$”/><br>< condition field=”channel_name” expression=”FreeTDM/1:1/”><br>< action application=”bridge” data=”freetdm/1/1/${destination_number}|freetdm/2/3/${destination_number}”/> </condition><br>< /extension><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I figured out from the logs and research on the wikis is that when faxes are sent out, the freeswitch server does not get the entire number through DTMF and the call fails.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is a portion of the logs from the last outgoing fax that worked:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:23.494287 [DEBUG] ftmod_analog.c:830 [s1c1][1:7] <span style='background:yellow;mso-highlight:yellow'>Changed state from DIALTONE to COLLECT</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:23.494287 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:23.494287 [DEBUG] mod_freetdm.c:2488 got DTMF sig [7]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:23.514287 [DEBUG] ftmod_analog.c:640 [s1c1][1:7] Completed state change from DIALTONE to COLLECT in 20 ms<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:23.514287 [DEBUG] ftmod_analog.c:646 [s1c1][1:7] Executing state handler on 1:1 for COLLECT<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:24.074292 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 1 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:24.074292 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:24.074292 [DEBUG] mod_freetdm.c:2488 got DTMF sig [71]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.113819 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 7 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.113819 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.113819 [DEBUG] mod_freetdm.c:2488 got DTMF sig [717]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.554309 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 5 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.554309 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:25.554309 [DEBUG] mod_freetdm.c:2488 got DTMF sig [7175]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.134309 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 7 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.134309 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.134309 [DEBUG] mod_freetdm.c:2488 got DTMF sig [71757]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.634314 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 2 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.634314 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.634314 [DEBUG] mod_freetdm.c:2488 got DTMF sig [717572]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.834315 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 2 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.834315 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:26.834315 [DEBUG] mod_freetdm.c:2488 got DTMF sig [7175722]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:27.614322 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 9 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:27.614322 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:27.614322 [DEBUG] mod_freetdm.c:2488 got DTMF sig [71757229]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.373722 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 0 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.373722 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.373722 [DEBUG] mod_freetdm.c:2488 got DTMF sig [717572290]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.894333 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 6 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.894333 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:28.894333 [DEBUG] mod_freetdm.c:2488 got DTMF sig [7175722906]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:29.714340 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 3 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:29.714340 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:29.714340 [DEBUG] mod_freetdm.c:2488 got DTMF sig [71757229063]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:30.094343 [DEBUG] ftdm_io.c:3783 [s1c1][1:7] Queuing DTMF 4 (debug = 0)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:30.094343 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:30.094343 [DEBUG] mod_freetdm.c:2488 got DTMF sig [717572290634]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:32.114360 [DEBUG] ftmod_analog.c:851 [s1c1][1:7] <span style='background:aqua;mso-highlight:aqua'>Number obtained [717572290634]</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:32.114360 [DEBUG] ftmod_analog.c:852 [s1c1][1:7] <span style='background:yellow;mso-highlight:yellow'>Changed state from COLLECT to RING</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:32.134360 [DEBUG] ftmod_analog.c:640 [s1c1][1:7] Completed state change from COLLECT to RING in 19 ms<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt'>2013-04-04 11:18:32.134360 [DEBUG] ftmod_analog.c:646 [s1c1][1:7] Executing state handler on 1:1 for RING<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This is what happens now:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:20.616457 [DEBUG] ftmod_analog.c:830 [s1c1][1:7] <span style='background:yellow;mso-highlight:yellow'>Changed state from DIALTONE to COLLECT</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:20.616457 [DEBUG] mod_freetdm.c:2318 got FXS sig [COLLECTED_DIGIT]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:20.616457 [DEBUG] mod_freetdm.c:2488 got DTMF sig [7]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:20.635887 [DEBUG] ftmod_analog.c:640 [s1c1][1:7] Completed state change from DIALTONE to COLLECT in 20 ms<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:20.635887 [DEBUG] ftmod_analog.c:646 [s1c1][1:7] Executing state handler on 1:1 for COLLECT<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:22.636477 [DEBUG] ftmod_analog.c:851 [s1c1][1:7] <span style='background:aqua;mso-highlight:aqua'>Number obtained [7]</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:22.636477 [DEBUG] ftmod_analog.c:852 [s1c1][1:7] <span style='background:yellow;mso-highlight:yellow'>Changed state from COLLECT to RING</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt'>2013-04-09 14:54:22.656477 [DEBUG] ftmod_analog.c:640 [s1c1][1:7] Completed state change from COLLECT to RING in 20 ms<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Twice the Number obtained got more than one digit but it always dropped one at least one digit so that the fax number was not correct. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I tried using start_dtmf and start_dtmf_generate from the Freeswitch wiki and also looked in the mailing list for issues with dtmf and faxing but was not able to find any solutions.<o:p></o:p></p><p class=MsoNormal>I tried switching the FXS port to the 2<sup>nd</sup> one and swapped out the phone line but that did not have any other results. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Let me know if you need to know more about the configuration or logs. Hopefully it is something easy someone with more knowledge than me can figure out.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Grant<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>