I still haven't been able to get fax detection going, but I came across something: when I execute "zap show channel 47" one of the parameters shown is "Fax Handled: no". I assume that's a reflection of something in zapata.conf, but I don't find anything there. Should it read "...yes" in order for Asterisk to detect the fax tones? If so, what's the syntax for setting it to yes? __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com
Fax handled will be set to yes when zaptel detects the fax CNG tones on the line. At that point it will try to switch the call to the fax extension James On Wed, 12 Mar 2003, Darrell Eldridge wrote:> I still haven't been able to get fax detection going, > but I came across something: when I execute "zap show > channel 47" one of the parameters shown is "Fax > Handled: no". I assume that's a reflection of > something in zapata.conf, but I don't find anything > there. Should it read "...yes" in order for Asterisk > to detect the fax tones? If so, what's the syntax for > setting it to yes? > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
It's dynamically changed to "Yes" when the fax gets detected on this channel. regards Martin On Wed, 12 Mar 2003, Darrell Eldridge wrote:> I still haven't been able to get fax detection going, > but I came across something: when I execute "zap show > channel 47" one of the parameters shown is "Fax > Handled: no". I assume that's a reflection of > something in zapata.conf, but I don't find anything > there. Should it read "...yes" in order for Asterisk > to detect the fax tones? If so, what's the syntax for > setting it to yes? > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
>I still haven't been able to get fax detection going, >but I came across something: when I execute "zap show >channel 47" one of the parameters shown is "Fax >Handled: no". I assume that's a reflection of >something in zapata.conf, but I don't find anything >there. Should it read "...yes" in order for Asterisk >to detect the fax tones? If so, what's the syntax for >setting it to yes?I know this is working for me as of cvs march 9, 03 as long as the fax machine calling you is sending a REAL CNG tone at 1100 Hz can you show us the relevant context section in the extension.conf ie the exten -> s entries & your fax extension entry
>Tim - can you show us your config as an example ?[inBound] exten => s,1,Answer exten => s,2,setmusiconhold,default exten => s,3,DigitTimeout,5 exten => s,4,responsetimeout,20 exten => s,5,BackGround,officemenu ;/var/lib/asterisk/sounds ;... other exts ;Fax Test exten => fax,1,Dial,Zap/6 ------ If you are not getting a fax re-route when using this set up then you prolly need to check & see if the logic in dsp.d->dtmf_detect lines 510-540 are seeing a CNG tone based on the fax_energy var look for this test if (!hit && (fax_energy >= FAX_THRESHOLD) && (fax_energy > s->energy * 21.0)) and add some debugging to see what fax_energy & s-energy look like sumfin like ast_log(LOG_DEBUG, "fax_energy %f ratio %f \n", fax_energy, fax_energy/s-energy ); Also when playing with this last week & googling around it looks like the ITU allows 4 standards for a fax handshake, only one of which is for the sending fax device to start the hand shake with a CNG tone. I beleive to have discovered that my telephone/fax for example is one of these devices that will call a fax device then wait for the called fax device to send a CED tone (2100hz) then start the fax transmisison only after the called device sends the CED.. in this case * will fail to detect the remote fax bcus * does not send the CED tone, during the ans sequence
>And I know that the fax works okay; it's a production >unit that gets used every day. > >As for the conf's, I've tried several things. Here's >my best guess so far: > >from zapata.conf: > > context => incomingfax > channel => 47 > >and from extensions.conf: > > [incomingfax] > exten => s,1,Answer > exten => s,2,Wait,18 > exten => s,3,Goto,incomingmain|s|1 ; roll to main > exten => fax,Dial,Zap/3 > >Fax calls are answered, then * waits 18 seconds (while >the fax machine is beeping) then * rolls the call to >incomingmain|s|1. > >Ideas?try removing the wait & use a non-blocking background next I wonder why you need fax detect logic at all looks like you have a dedicated fax machine on a dedicated channel why don't you just send all [incomingFax] straight to Zap/3 [incomingfax] exten => s,1,Answer exten => s,2,Dial,Zap/3 and in zapata.conf context => incomingfax immediate=yes ;ans w/o waiting 2 rings then use ans in ext context Need usecallerid=no usecallerid=no channel => 47