res_fax.so res_fax_spandsp.so are connected

sip.conf:

callevents=yes allowtransfer=yes disallow=all allow=g729 allow=alaw allow=ulaw bindaddr=0.0.0.0 bindport=5060 canreinvite=no defaultexpirey=120 dtmfmode=rfc2833 t38pt_udptl=yes,redundancy,maxdatagram=400 faxdetect=yes echocancel=yes 

extensions.conf

 exten => _0XXX.,1,NoOp(================outgoing fax ==============) exten => _0XXX.,n,Set(FAXOPT(ecm)=yes) exten => _0XXX.,n,Set(FAXOPT(minrate)=2400) exten => _0XXX.,n,Set(FAXFILE=/opt/fax/out/${UNIQUEID:0:10}_${CALLERID (num)}.tif) exten => _0XXX.,n,NoOp(Callerid:${CALLERID}=========EXTEN:${EXTEN}) exten => _0XXX.,n,RecieveFax(${FAXFILE},d) exten => _0XXX.,n,system(/bin/bash /opt/fax/make_fax.sh ${EXTEN:1} ${FAXFILE}) exten => _0XXX.,n,Hangup() 

Just because the fax is not sent (T.38 provider supports). I started inventing crutches (I still need to). The bottom line is that when we send someone a fax, dial the number after 0 and the fax receives an asterisk. On the line exten => fax, n, RecieveFax ($ {FAXFILE}, d), the asterisk starts receiving the fax, accepts it for a while, and then drops. The logs are empty (asterisk is clearly ending), there is no typh file.

The fax is physically connected to granstream gwx 4216, which is on the same network as the aster.

Where to dig?

  • Even in the system logs there is nothing? Try to see what is happening with the core set debug 9 enabled ( core set debug 9 in the asterisk console) - StuxForce

1 answer 1

Try to remove the g729 from the fax peer, since This codec does not allow to send / receive faxes because of the narrow band. It would also be nice to look at the sip set debug peer FAX_PEER at the time of the connection.

And the last. Spandsp does not always correctly receive / send faxes. They just do not pass. I would recommend using the iaxmodem + hylafax + avantfax bundle (optional). Subsequently, save yourself from the mass of problems with non-passing faxes.

  • Indeed, it was enough to create a separate peer with disallow = all, allow = alaw, it all worked right away. - Zerginwan