Mayo Jordanov
2006-Dec-16 11:57 UTC
[asterisk-users] rxfax detection problems with multiple contexts
Hello, I have a rather odd problem with Asterisk detecting faxes. I have two POTS lines coming into the box (TDM400P). Line 1 is for voice, Line 2 is fof fax. When I set them up with channel => 1-2 in zapata.conf, all is fine, but as soon as I have two channel => definitions, Asterisk is unable to detect faxes. The fax line is not supposed to ring local phones, so the most obvious solution was to try and split the contexts. The configuration below is my current setup that works almost flawlessly. The bits that aren't working are pretty annoyances that result from using single context for both lines. With the setup the way I want it, last two lines of channel 1 configuration and whole channel 2 configuration in zapata.conf would be uncommented and there would be no fax detection in from-analog-zap context - as per the comments in the config. As it is now, from- analog-zap2 may not be giving enough time for fax detection, but I've tried variations. Generally, all it will do is keep on ringing and ringing and not detecting the fax tone. I've tried turning off echo cancelation and few other things with no luck. Is this possible bug in chan_zap or something related? Is there any way I can debug more? From just looking at the console it looks like a regular incoming call that keeps ringing and falling though. Any ideas or recommendations? Thanks, mayo The setup is as follows: zapata.conf: [channels] language=en switchtype=national signalling=fxs_ks usecallerid=yes hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancelwhenbridged=no echocancel=64 echotraining=800 callgroup=1 ; i do not use call groups, left it in as it's default pickupgroup=1 rxgain=0 txgain=0 group=1 immediate=no context=from-analog-zap1 faxdetect=both ; normally would be: none channel => 1-2 ; normaly would be: 1 ;channel 2 ; normally would be uncommented ;echocancelwhenbridged=no ;echocancel=64 ;echotraining=800 ;rxgain=0 ;txgain=0 ;context=from-analog-zap2 ;faxdetect=both ;immediate=no ;group=1 ;usecallerid=no ;signalling=fxs_ks ;channel => 2 Both channels are in group 1 on purpose, as both lines may be used for outgoing calls. extensions.conf: [from-analog-zap1] include => incoming ; normally this wouldn't be here if zapata.conf worked as intended. this bit would get handled by from-analog-zap2 exten => fax,1,GotoIf($["${CHANNEL}" != "Zap/2-1"]?4) exten => fax,2,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif) exten => fax,3,rxfax(${FAXFILE}) exten => fax,4,Hangup [from-analog-zap2] exten => s,1,Answer exten => s,n,LookupCIDName exten => s,n,NoOp(CallerID: ${CALLERID}) exten => s,n,Hangup exten => fax,1,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif) exten => fax,n,rxfax(${FAXFILE}) exten => fax,n,Hangup exten => i,1,Hangup exten => h,1,Hangup [incoming] include => parkedcalls exten => s,1,Answer exten => s,n(zapateller),Zapateller(nocallerid) exten => s,n,LookupCIDName exten => s,n,NoOp(CallerID: ${CALLERID}) exten => s,n(ring),Dial(SIP/2000&SIP/2001&SIP/2002,30) exten => s,n,Voicemail(u2999) exten => s,n,Hangup exten => s,n(ring)+101,Voicemail(b2999) exten => s,n,Hangup exten => i,1,Hangup exten => h,1,Hangup
Andrew Joakimsen
2006-Dec-16 20:06 UTC
[asterisk-users] rxfax detection problems with multiple contexts
If you are using one line for fax only then you do not need to do fax detect. Put it in its own context and make ths s extension be Rxfax. Everyone always tries to over-compliate stuff, and it seems to me the less you know about asterisk the more elaborate and overcomplicated schemes people can come up with. On 12/16/06, Mayo Jordanov <lists@oyam.ca> wrote:> > Hello, > > I have a rather odd problem with Asterisk detecting faxes. I have two > POTS lines coming into the box (TDM400P). Line 1 is for voice, Line 2 > is fof fax. When I set them up with channel => 1-2 in zapata.conf, > all is fine, but as soon as I have two channel => definitions, > Asterisk is unable to detect faxes. The fax line is not supposed to > ring local phones, so the most obvious solution was to try and split > the contexts. The configuration below is my current setup that works > almost flawlessly. The bits that aren't working are pretty annoyances > that result from using single context for both lines. > > With the setup the way I want it, last two lines of channel 1 > configuration and whole channel 2 configuration in zapata.conf would > be uncommented and there would be no fax detection in from-analog-zap > context - as per the comments in the config. As it is now, from- > analog-zap2 may not be giving enough time for fax detection, but I've > tried variations. Generally, all it will do is keep on ringing and > ringing and not detecting the fax tone. I've tried turning off echo > cancelation and few other things with no luck. > > Is this possible bug in chan_zap or something related? Is there any > way I can debug more? From just looking at the console it looks like > a regular incoming call that keeps ringing and falling though. Any > ideas or recommendations? > > Thanks, > mayo > > > > The setup is as follows: > > zapata.conf: > [channels] > language=en > switchtype=national > signalling=fxs_ks > usecallerid=yes > hidecallerid=no > callwaiting=yes > usecallingpres=yes > callwaitingcallerid=yes > threewaycalling=yes > transfer=yes > canpark=yes > cancallforward=yes > callreturn=yes > echocancelwhenbridged=no > echocancel=64 > echotraining=800 > callgroup=1 ; i do not use call groups, left it in as it's default > pickupgroup=1 > rxgain=0 > txgain=0 > group=1 > immediate=no > context=from-analog-zap1 > faxdetect=both ; normally would be: none > channel => 1-2 ; normaly would be: 1 > > ;channel 2 ; normally would be uncommented > ;echocancelwhenbridged=no > ;echocancel=64 > ;echotraining=800 > ;rxgain=0 > ;txgain=0 > ;context=from-analog-zap2 > ;faxdetect=both > ;immediate=no > ;group=1 > ;usecallerid=no > ;signalling=fxs_ks > ;channel => 2 > > Both channels are in group 1 on purpose, as both lines may be used > for outgoing calls. > > extensions.conf: > [from-analog-zap1] > include => incoming > > ; normally this wouldn't be here if zapata.conf worked as intended. > this bit would get handled by from-analog-zap2 > exten => fax,1,GotoIf($["${CHANNEL}" != "Zap/2-1"]?4) > exten => fax,2,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif) > exten => fax,3,rxfax(${FAXFILE}) > exten => fax,4,Hangup > > > [from-analog-zap2] > exten => s,1,Answer > exten => s,n,LookupCIDName > exten => s,n,NoOp(CallerID: ${CALLERID}) > exten => s,n,Hangup > > exten => fax,1,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif) > exten => fax,n,rxfax(${FAXFILE}) > exten => fax,n,Hangup > > exten => i,1,Hangup > exten => h,1,Hangup > > [incoming] > include => parkedcalls > > exten => s,1,Answer > exten => s,n(zapateller),Zapateller(nocallerid) > exten => s,n,LookupCIDName > exten => s,n,NoOp(CallerID: ${CALLERID}) > exten => s,n(ring),Dial(SIP/2000&SIP/2001&SIP/2002,30) > exten => s,n,Voicemail(u2999) > exten => s,n,Hangup > exten => s,n(ring)+101,Voicemail(b2999) > exten => s,n,Hangup > > exten => i,1,Hangup > exten => h,1,Hangup > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061216/dbee41da/attachment.htm