Sawan Vithlani
2011-Jun-23 14:12 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
Hello all, I am using call files to dial out to a set of PSTN numbers. The calls are going out fine and being handled correctly by the dial plan. The problem occurs when I accidentally call a fax machine. I would expect the dial plan to pick this up and jump to the "fax" extension in the current context. This is not happening. In the call file I send the call out via Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial plan context: [SendCall] exten => start,1,Answer() same => n, Wait(5) same => n, ..... ;; do some more stuff exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() ;;;; I do get a message on the CLI telling me "Channel 63 detected a CED tone from the network" but still no jumping to the fax extension. This is while dialplan is in the Wait(5). CLI> core show version Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a x86_64 running Linux on 2011-05-23 22:05:17 UTC ISDN lines connected via Digium TE412P card. I have "faxdetect = both" in chan_dahdi.conf in the general section as well as specifically for the configured spans. Would appreciate any help. Thanks Sawan
Eric Wieling
2011-Jun-23 14:15 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Sawan Vithlani > Sent: Thursday, June 23, 2011 10:12 AM > To: asterisk-users at lists.digium.com > Subject: [asterisk-users] Problem with detecting fax on > PRI/DAHDI channels > > Hello all, > > I am using call files to dial out to a set of PSTN numbers. > The calls are going out fine and being handled correctly by > the dial plan. > > The problem occurs when I accidentally call a fax machine. I > would expect the dial plan to pick this up and jump to the > "fax" extension in the current context. This is not happening. > > In the call file I send the call out via > Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial plan context: > > [SendCall] > exten => start,1,Answer() > same => n, Wait(5) > same => n, ..... ;; do some more stuff > > exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() > > ;;;; > > I do get a message on the CLI telling me "Channel 63 > detected a CED tone from the network" but still no jumping to > the fax extension. > This is while dialplan is in the Wait(5). > > CLI> core show version > Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a > x86_64 running Linux on 2011-05-23 22:05:17 UTC > > ISDN lines connected via Digium TE412P card. > > I have "faxdetect = both" in chan_dahdi.conf in the general > section as well as specifically for the configured spans.Show us your chan_dahdi.conf
Kevin P. Fleming
2011-Jun-23 15:41 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
On 06/23/2011 09:12 AM, Sawan Vithlani wrote:> Hello all, > > I am using call files to dial out to a set of PSTN numbers. The calls > are going out fine and being handled correctly by the dial plan. > > The problem occurs when I accidentally call a fax machine. I would > expect the dial plan to pick this up and jump to the "fax" extension > in the current context. This is not happening. > > In the call file I send the call out via Dial(DAHDI/g0/XXXXXXXX) and > then it goes to my dial plan context: > > [SendCall] > exten => start,1,Answer() > same => n, Wait(5) > same => n, ..... ;; do some more stuff > > exten => fax,1,Verbose(got a Fax on ${EXTEN}) > same =>n, Hangup() > > ;;;; > > I do get a message on the CLI telling me "Channel 63 detected a CED > tone from the network" but still no jumping to the fax extension. > This is while dialplan is in the Wait(5). > > CLI> core show version > Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a > x86_64 running Linux on 2011-05-23 22:05:17 UTC > > ISDN lines connected via Digium TE412P card. > > I have "faxdetect = both" in chan_dahdi.conf in the general section as > well as specifically for the configured spans.'faxdetect' is for detecting *calling* FAX machines, not *called* FAX machines. It listens for the CNG tone generated by a (non-V.34) calling FAX terminal. If you are wanting to detect that a number you have dialed is being answered by a FAX machine, there are applications available (but not included with Asterisk) to do that. I believe NVFaxDetect can do it, and most of the add-on answering machine detection applications can do it as well. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org
Sawan Vithlani
2011-Jun-23 23:56 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
[trunkgroups] [channels] switchtype=qsig context = from-pstn group = 0 signalling = pri_cpe channel = 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124 usecallingpres=yes sendcalleridafter = 2 callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes rxgain = 0.0 txgain = 0.0 group=1 callgroup=1 pickupgroup=1 faxdetect=both #include /etc/asterisk/dahdi-channels.conf Sawan On Fri, Jun 24, 2011 at 12:15 AM, Eric Wieling <EWieling at nyigc.com> wrote:> >> -----Original Message----- >> From: asterisk-users-bounces at lists.digium.com >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of >> Sawan Vithlani >> Sent: Thursday, June 23, 2011 10:12 AM >> To: asterisk-users at lists.digium.com >> Subject: [asterisk-users] Problem with detecting fax on >> PRI/DAHDI channels >> >> Hello all, >> >> I am using ?call files to dial out to a set of PSTN numbers. >> The calls are going out fine and being handled correctly by >> the dial plan. >> >> The problem occurs when I accidentally call a fax machine. I >> would expect the dial plan to pick this up and jump to the >> "fax" extension in the current context. This is not happening. >> >> In the call file I send the call out via >> Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial plan context: >> >> [SendCall] >> exten => start,1,Answer() >> ? ?same => n, Wait(5) >> ? ?same => n, ..... ;; do some more stuff >> >> exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() >> >> ;;;; >> >> ?I do get a message on the CLI telling me "Channel 63 >> detected a CED tone from the network" but still no jumping to >> the fax extension. >> This is while dialplan is in the Wait(5). >> >> CLI> core show version >> Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a >> x86_64 running Linux on 2011-05-23 22:05:17 UTC >> >> ISDN lines connected via Digium TE412P card. >> >> I have "faxdetect = both" in chan_dahdi.conf in the general >> section as well as specifically for the configured spans. > > Show us your chan_dahdi.conf > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >
Richard Mudgett
2011-Jun-24 00:38 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
> [trunkgroups] > > [channels] > switchtype=qsig > context = from-pstn > group = 0 > signalling = pri_cpe > channel = 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124Everything after the channel line above will have no effect on the channels created by the above line. Thus the faxdetect=both below will not have any effect.> > usecallingpres=yes > sendcalleridafter = 2 > callwaitingcallerid=yes > threewaycalling=yes > transfer=yes > canpark=yes > cancallforward=yes > callreturn=yes > echocancel=yes > echocancelwhenbridged=yes > rxgain = 0.0 > txgain = 0.0 > group=1 > callgroup=1 > pickupgroup=1 > faxdetect=both > > #include /etc/asterisk/dahdi-channels.confPlease note that the include is part of the chan_dahdi.conf config file.> > Sawan > > On Fri, Jun 24, 2011 at 12:15 AM, Eric Wieling <EWieling at nyigc.com> > wrote: > > > >> -----Original Message----- > >> From: asterisk-users-bounces at lists.digium.com > >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > >> Sawan Vithlani > >> Sent: Thursday, June 23, 2011 10:12 AM > >> To: asterisk-users at lists.digium.com > >> Subject: [asterisk-users] Problem with detecting fax on > >> PRI/DAHDI channels > >> > >> Hello all, > >> > >> I am using call files to dial out to a set of PSTN numbers. > >> The calls are going out fine and being handled correctly by > >> the dial plan. > >> > >> The problem occurs when I accidentally call a fax machine. I > >> would expect the dial plan to pick this up and jump to the > >> "fax" extension in the current context. This is not happening. > >> > >> In the call file I send the call out via > >> Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial plan context: > >> > >> [SendCall] > >> exten => start,1,Answer() > >> ? ?same => n, Wait(5) > >> ? ?same => n, ..... ;; do some more stuff > >> > >> exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() > >> > >> ;;;; > >> > >> ?I do get a message on the CLI telling me "Channel 63 > >> detected a CED tone from the network" but still no jumping to > >> the fax extension. > >> This is while dialplan is in the Wait(5). > >> > >> CLI> core show version > >> Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a > >> x86_64 running Linux on 2011-05-23 22:05:17 UTC > >> > >> ISDN lines connected via Digium TE412P card. > >> > >> I have "faxdetect = both" in chan_dahdi.conf in the general > >> section as well as specifically for the configured spans. > > > > Show us your chan_dahdi.confRichard
Sawan Vithlani
2011-Jun-24 03:45 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
hi, I am also setting faxdetect=both in the individual channels in dahdi-channels.conf. ===snip==group=0,12 context=from-pstn switchtype = euroisdn signalling = pri_cpe channel => 1-15,17-31 context = default group = 63 faxdetect = both ======== Sawan On Fri, Jun 24, 2011 at 10:38 AM, Richard Mudgett <rmudgett at digium.com> wrote:>> [trunkgroups] >> >> [channels] >> switchtype=qsig >> context = from-pstn >> group = 0 >> signalling = pri_cpe >> channel = 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124 > > Everything after the channel line above will have no effect on the > channels created by the above line. ?Thus the faxdetect=both below > will not have any effect. > >> >> usecallingpres=yes >> sendcalleridafter = 2 >> callwaitingcallerid=yes >> threewaycalling=yes >> transfer=yes >> canpark=yes >> cancallforward=yes >> callreturn=yes >> echocancel=yes >> echocancelwhenbridged=yes >> rxgain = 0.0 >> txgain = 0.0 >> group=1 >> callgroup=1 >> pickupgroup=1 >> faxdetect=both >> >> #include /etc/asterisk/dahdi-channels.conf > > Please note that the include is part of the chan_dahdi.conf > config file. > >> >> Sawan >> >> On Fri, Jun 24, 2011 at 12:15 AM, Eric Wieling <EWieling at nyigc.com> >> wrote: >> > >> >> -----Original Message----- >> >> From: asterisk-users-bounces at lists.digium.com >> >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of >> >> Sawan Vithlani >> >> Sent: Thursday, June 23, 2011 10:12 AM >> >> To: asterisk-users at lists.digium.com >> >> Subject: [asterisk-users] Problem with detecting fax on >> >> PRI/DAHDI channels >> >> >> >> Hello all, >> >> >> >> I am using call files to dial out to a set of PSTN numbers. >> >> The calls are going out fine and being handled correctly by >> >> the dial plan. >> >> >> >> The problem occurs when I accidentally call a fax machine. I >> >> would expect the dial plan to pick this up and jump to the >> >> "fax" extension in the current context. This is not happening. >> >> >> >> In the call file I send the call out via >> >> Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial plan context: >> >> >> >> [SendCall] >> >> exten => start,1,Answer() >> >> ? ?same => n, Wait(5) >> >> ? ?same => n, ..... ;; do some more stuff >> >> >> >> exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() >> >> >> >> ;;;; >> >> >> >> ?I do get a message on the CLI telling me "Channel 63 >> >> detected a CED tone from the network" but still no jumping to >> >> the fax extension. >> >> This is while dialplan is in the Wait(5). >> >> >> >> CLI> core show version >> >> Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ nighthawk on a >> >> x86_64 running Linux on 2011-05-23 22:05:17 UTC >> >> >> >> ISDN lines connected via Digium TE412P card. >> >> >> >> I have "faxdetect = both" in chan_dahdi.conf in the general >> >> section as well as specifically for the configured spans. >> > >> > Show us your chan_dahdi.conf > > Richard > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users
Eric Wieling
2011-Jun-24 14:12 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
Same problem, you have these settings AFTER the channel => line, not before. Move the settings to BEFORE the channel => lines.> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Sawan Vithlani > Sent: Thursday, June 23, 2011 11:45 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Problem with detecting fax on > PRI/DAHDI channels > > hi, > > I am also setting faxdetect=both in the individual channels > in dahdi-channels.conf. > > ===snip==> group=0,12 > context=from-pstn > switchtype = euroisdn > signalling = pri_cpe > channel => 1-15,17-31 > context = default > group = 63 > faxdetect = both > > ========> > Sawan > On Fri, Jun 24, 2011 at 10:38 AM, Richard Mudgett > <rmudgett at digium.com> wrote: > >> [trunkgroups] > >> > >> [channels] > >> switchtype=qsig > >> context = from-pstn > >> group = 0 > >> signalling = pri_cpe > >> channel = 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124 > > > > Everything after the channel line above will have no effect on the > > channels created by the above line. Thus the faxdetect=both below > > will not have any effect. > > > >> > >> usecallingpres=yes > >> sendcalleridafter = 2 > >> callwaitingcallerid=yes > >> threewaycalling=yes > >> transfer=yes > >> canpark=yes > >> cancallforward=yes > >> callreturn=yes > >> echocancel=yes > >> echocancelwhenbridged=yes > >> rxgain = 0.0 > >> txgain = 0.0 > >> group=1 > >> callgroup=1 > >> pickupgroup=1 > >> faxdetect=both > >> > >> #include /etc/asterisk/dahdi-channels.conf > > > > Please note that the include is part of the chan_dahdi.conf config > > file. > > > >> > >> Sawan > >> > >> On Fri, Jun 24, 2011 at 12:15 AM, Eric Wieling <EWieling at nyigc.com> > >> wrote: > >> > > >> >> -----Original Message----- > >> >> From: asterisk-users-bounces at lists.digium.com > >> >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > >> >> Sawan Vithlani > >> >> Sent: Thursday, June 23, 2011 10:12 AM > >> >> To: asterisk-users at lists.digium.com > >> >> Subject: [asterisk-users] Problem with detecting fax on > PRI/DAHDI > >> >> channels > >> >> > >> >> Hello all, > >> >> > >> >> I am using call files to dial out to a set of PSTN numbers. > >> >> The calls are going out fine and being handled correctly by the > >> >> dial plan. > >> >> > >> >> The problem occurs when I accidentally call a fax > machine. I would > >> >> expect the dial plan to pick this up and jump to the "fax" > >> >> extension in the current context. This is not happening. > >> >> > >> >> In the call file I send the call out via > >> >> Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial > plan context: > >> >> > >> >> [SendCall] > >> >> exten => start,1,Answer() > >> >> same => n, Wait(5) > >> >> same => n, ..... ;; do some more stuff > >> >> > >> >> exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() > >> >> > >> >> ;;;; > >> >> > >> >> I do get a message on the CLI telling me "Channel 63 > detected a > >> >> CED tone from the network" but still no jumping to the fax > >> >> extension. > >> >> This is while dialplan is in the Wait(5). > >> >> > >> >> CLI> core show version > >> >> Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ > nighthawk on a > >> >> x86_64 running Linux on 2011-05-23 22:05:17 UTC > >> >> > >> >> ISDN lines connected via Digium TE412P card. > >> >> > >> >> I have "faxdetect = both" in chan_dahdi.conf in the general > >> >> section as well as specifically for the configured spans. > >> > > >> > Show us your chan_dahdi.conf > > > > Richard > > > > -- > > > _____________________________________________________________________ > > -- Bandwidth and Colocation Provided by > http://www.api-digital.com -- > > New to Asterisk? Join us for a live introductory webinar > every Thurs: > > http://www.asterisk.org/hello > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by > http://www.api-digital.com -- New to Asterisk? Join us for a > live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Sawan Vithlani
2011-Jul-01 12:02 UTC
[asterisk-users] Problem with detecting fax on PRI/DAHDI channels
Update on this: Solved by using the AMD app... Outbound calls to faxes detected reliably. On Saturday, June 25, 2011, Eric Wieling <EWieling at nyigc.com> wrote:> > Same problem, you have these settings AFTER the channel => line, not before. ?Move the settings to BEFORE the channel => lines. > >> -----Original Message----- >> From: asterisk-users-bounces at lists.digium.com >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of >> Sawan Vithlani >> Sent: Thursday, June 23, 2011 11:45 PM >> To: Asterisk Users Mailing List - Non-Commercial Discussion >> Subject: Re: [asterisk-users] Problem with detecting fax on >> PRI/DAHDI channels >> >> hi, >> >> I am also setting faxdetect=both in the individual channels >> in dahdi-channels.conf. >> >> ===snip==>> group=0,12 >> context=from-pstn >> switchtype = euroisdn >> signalling = pri_cpe >> channel => 1-15,17-31 >> context = default >> group = 63 >> faxdetect = both >> >> ========>> >> Sawan >> On Fri, Jun 24, 2011 at 10:38 AM, Richard Mudgett >> <rmudgett at digium.com> wrote: >> >> [trunkgroups] >> >> >> >> [channels] >> >> switchtype=qsig >> >> context = from-pstn >> >> group = 0 >> >> signalling = pri_cpe >> >> channel = 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124 >> > >> > Everything after the channel line above will have no effect on the >> > channels created by the above line. ?Thus the faxdetect=both below >> > will not have any effect. >> > >> >> >> >> usecallingpres=yes >> >> sendcalleridafter = 2 >> >> callwaitingcallerid=yes >> >> threewaycalling=yes >> >> transfer=yes >> >> canpark=yes >> >> cancallforward=yes >> >> callreturn=yes >> >> echocancel=yes >> >> echocancelwhenbridged=yes >> >> rxgain = 0.0 >> >> txgain = 0.0 >> >> group=1 >> >> callgroup=1 >> >> pickupgroup=1 >> >> faxdetect=both >> >> >> >> #include /etc/asterisk/dahdi-channels.conf >> > >> > Please note that the include is part of the chan_dahdi.conf config >> > file. >> > >> >> >> >> Sawan >> >> >> >> On Fri, Jun 24, 2011 at 12:15 AM, Eric Wieling <EWieling at nyigc.com> >> >> wrote: >> >> > >> >> >> -----Original Message----- >> >> >> From: asterisk-users-bounces at lists.digium.com >> >> >> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of >> >> >> Sawan Vithlani >> >> >> Sent: Thursday, June 23, 2011 10:12 AM >> >> >> To: asterisk-users at lists.digium.com >> >> >> Subject: [asterisk-users] Problem with detecting fax on >> PRI/DAHDI >> >> >> channels >> >> >> >> >> >> Hello all, >> >> >> >> >> >> I am using call files to dial out to a set of PSTN numbers. >> >> >> The calls are going out fine and being handled correctly by the >> >> >> dial plan. >> >> >> >> >> >> The problem occurs when I accidentally call a fax >> machine. I would >> >> >> expect the dial plan to pick this up and jump to the "fax" >> >> >> extension in the current context. This is not happening. >> >> >> >> >> >> In the call file I send the call out via >> >> >> Dial(DAHDI/g0/XXXXXXXX) and then it goes to my dial >> plan context: >> >> >> >> >> >> [SendCall] >> >> >> exten => start,1,Answer() >> >> >> ? ?same => n, Wait(5) >> >> >> ? ?same => n, ..... ;; do some more stuff >> >> >> >> >> >> exten => fax,1,Verbose(got a Fax on ${EXTEN}) same =>n, Hangup() >> >> >> >> >> >> ;;;; >> >> >> >> >> >> ?I do get a message on the CLI telling me "Channel 63 >> detected a >> >> >> CED tone from the network" but still no jumping to the fax >> >> >> extension. >> >> >> This is while dialplan is in the Wait(5). >> >> >> >> >> >> CLI> core show version >> >> >> Asterisk 1.8.4.1-1digium1~natty built by pbuilder @ >> nighthawk on a >> >> >> x86_64 running Linux on 2011-05-23 22:05:17 UTC >