[Asterisk-Users] Zap card, PRI, Fax detection, and 1.0 stable

Steven Critchfield critch at basesys.com
Wed Nov 17 13:54:40 MST 2004


On Wed, 2004-11-17 at 14:44 -0600, Matthew Boehm wrote:
> Anyone have success with fax detection and zap cards and 1.0?
> 
>  exten => 5124512424,1,Answer()
>  exten => 5124512424,2,Wait(1)

I doubt 1 second is long enough to detect the CNG tones.

>  exten => 5124512424,3,Dial(SIP/3044,20,t)
>  exten => 5124512424,4,Hangup()
> 
>  exten => fax,1,SetVar(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
>  exten => fax,2,rxfax(${FAXFILE})
>  exten => fax,3,system(/usr/sbin/mailfax ${FAXFILE} mboehm at cytelcom.com
> ${CALLERIDNUM})
> 
> zapata.conf
> ---------------
> faxdetect=both
> 
> That isn't working. All calls are going straight to 3044.
> 
> I looked in dsp.c and it says:
> 
> /* Define if you want the fax detector -- NOT RECOMMENDED IN -STABLE */
> #define FAX_DETECT
> 
> I'm running 1.0.  Can I enable this safely? I'm using a PRI in ESF/B8ZS mode
> with a T100P.
> 
> Or, what is the correct way to enable fax detection?

-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list