Hi<br><br>My client had been using an old torrenta cards which game problems with pretty much everything :) After evangelizing the cause of Sangoma for more than 3 months (yes, they are dumb), they are finally making the transition so I am pretty excited. The choice of card is A108D which does a whole bunch of DSP in the hardware. <br>

<br>Now, the first hurdle that I have to make Sangoma jump across is getting incoming Fax over E1 right. We are using mod_spandsp, of course. So, here I will be needing a whole lot of help from the veterans of spandsp and Faxing :) I desperately need Sangoma to pass the Fax test or they will give me torrenta cards all over again!<br>

<br>The primary cause of failures are - (49) The call dropped prematurely and (48) Disconnected after permitted retries. <br><br>For example, in this case, can I conclude that the other end did not provide a Fax tone or is it something else?<br>
<br>2aeb5f7c-75b5-11e1-8f36-b3286880c45b EXECUTE FreeTDM/4:2/47615728 rxfax(/srv/fax/in/2aeb5f7c-75b5-11e1-8f36-b3286880c45b.tiff)<br>2aeb5f7c-75b5-11e1-8f36-b3286880c45b 2012-03-24 18:57:57.824906 [DEBUG] mod_spandsp_fax.c:1357 Raw read codec activation Success L16 20000<br>
2aeb5f7c-75b5-11e1-8f36-b3286880c45b 2012-03-24 18:57:57.824906 [DEBUG] switch_core_codec.c:216 FreeTDM/4:2/47615728 Push codec L16:70<br>2aeb5f7c-75b5-11e1-8f36-b3286880c45b 2012-03-24 18:57:57.824906 [DEBUG] mod_spandsp_fax.c:1373 Raw write codec activation Success L16<br>
2012-03-24 18:57:57.844876 [DEBUG] ftmod_wanpipe.c:965 [s4c2][4:2] First packet read stats: Rx queue len: 1, Rx queue size: 10<br>2012-03-24 18:57:57.904879 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 17<br>
2012-03-24 18:57:57.924878 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier down (-1) in state 17<br>2012-03-24 18:57:58.104877 [DEBUG] ftmod_wanpipe.c:901 [s4c2][4:2] First packet write stats: Tx queue len: 1, Tx queue size: 5, Tx idle: 30<br>
2012-03-24 18:57:58.444908 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 17<br>2012-03-24 18:57:58.644907 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier down (-1) in state 17<br>
2012-03-24 18:57:58.664878 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 1<br>2012-03-24 18:57:58.764879 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 17<br>
2012-03-24 18:57:58.764879 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier down (-1) in state 17<br>2012-03-24 18:57:58.784878 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 17<br>
2012-03-24 18:57:58.804879 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier down (-1) in state 17<br>2012-03-24 18:57:59.244886 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier up (-2) in state 17<br>
2012-03-24 18:57:59.464887 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 HDLC signal status is Carrier down (-1) in state 17<br>2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 T4 expired in phase T30_PHASE_B_RX, state 17<br>
2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Retry number 1<br>2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Changing from phase T30_PHASE_B_RX to T30_PHASE_B_TX<br>2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW FAX Set rx type 0<br>
2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW FAX Set tx type 4<br>2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Sending ident &#39;Sangoma Fax Ident&#39;<br>2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Tx:  CSI without final frame tag<br>
2012-03-24 18:57:59.564903 [DEBUG] mod_spandsp_fax.c:286 FLOW T.30 Tx:  ff 03 40 74 6e 65 64 49 20 78 61 46 20 61 6d 6f 67 6e 61 53 20 20 20<br>2012-03-24 18:58:00.524877 [DEBUG] ftmod_libpri.c:1065 -- Hangup REQ on channel 4:1<br>
2012-03-24 18:58:00.524877 [DEBUG] ftmod_libpri.c:1078 [s4c1][4:1] Changed state from UP to TERMINATING<br>2012-03-24 18:58:00.524877 [DEBUG] ftdm_state.c:511 [s4c1][4:1] Executing state processor for TERMINATING<br><br><br>
I will need some more hand-holding with logs later :)<br><br><br clear="all">regards,<br>Anita<br><br>