Hi All Curious will this work Std. PSTN line ---x------ X100p | ------ Fax Machine Using a standard "home phone" pstn line with a splitter connecting a fax machine and X100 Asterisk Box Incoming Line: Can I have in the dial Plan [incoming] exten => s,1,Wait(1) exten => s,2,IfFax continue to ring, so that the Fax Machine gets it exten => s,3,Answer exten => s,4,Playback(Message) exten => s,5,Dial(SIP/1000&SIP/2000&SIP/3000) exten => s,6,Hangup() exten => fax,1,Wait(30) exten => fax,2,Wait(10) exten => fax,3,Hangup() I'm wanting the line to ring, If it is a fax coming in then Asterisk leaves the line alone and lets the fax machine handle the call. If it is a call then Asterisk answers, plays a greeting and rings the IP phones? Question is how does asterisk detect the call without answering? I'm not wanting Asterisk to handle the call if it is a fax if possible??? I look forward to your input, Thank You Barry
On Fri, 2007-02-09 at 18:35 -0500, Barry Fawthrop wrote:> Hi All > > Curious will this work > Std. PSTN line ---x------ X100p > | > ------ Fax Machine > Using a standard "home phone" pstn line with a splitter connecting a fax > machine and X100 Asterisk Box > Incoming Line: Can I have in the dial Plan > [incoming] > exten => s,1,Wait(1) > exten => s,2,IfFax continue to ring, so that the Fax Machine gets it > exten => s,3,Answer > exten => s,4,Playback(Message) > exten => s,5,Dial(SIP/1000&SIP/2000&SIP/3000) > exten => s,6,Hangup() > exten => fax,1,Wait(30) > exten => fax,2,Wait(10) > exten => fax,3,Hangup() > > I'm wanting the line to ring, > If it is a fax coming in then Asterisk leaves the line alone and lets > the fax machine handle the call. > If it is a call then Asterisk answers, plays a greeting and rings the IP > phones?First, the in s,3 you answered the line. If the fax machine doesn't answer on the first ring, it never will, because once asterisk picks up the line, there won't be any more ringing. Second, when s comes to an end, it will listen for a response, and be able to hear and respond to the fax tone. In this case, you hang up before that happens. So the fax extension can't be activated.> > Question is how does asterisk detect the call without answering? > I'm not wanting Asterisk to handle the call if it is a fax if possible??? > > I look forward to your input, > Thank You > > Barry > _______________________________________________ > --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
>From: Barry Fawthrop <barry@ttienterprises.org> >Date: Fri, 09 Feb 2007 18:35:43 -0500 > >Hi All > >Curious will this work >Std. PSTN line ---x------ X100p > | > ------ Fax Machine >Using a standard "home phone" pstn line with a splitter connecting a fax >machine and X100 Asterisk Box >Incoming Line: Can I have in the dial Plan >[incoming] >exten => s,1,Wait(1) >exten => s,2,IfFax continue to ring, so that the Fax Machine gets it >exten => s,3,Answer >exten => s,4,Playback(Message) >exten => s,5,Dial(SIP/1000&SIP/2000&SIP/3000) >exten => s,6,Hangup() >exten => fax,1,Wait(30) >exten => fax,2,Wait(10) >exten => fax,3,Hangup() > I'm wanting the line to ring, >If it is a fax coming in then Asterisk leaves the line alone and lets the >fax machine handle the call. If it is a call then Asterisk answers, plays a >greeting and rings the IP phones? > >Question is how does asterisk detect the call without answering? >I'm not wanting Asterisk to handle the call if it is a fax if possible???My impression is no (reliable) way. Asterisk doesn't do silent answer kind of stuff. However, if you can be flexible, many FAX machines have silent answer and includes a feature to ring the hand set if it determines the call is not for FAX. You may be able to find a model that allows ringing of an external phone set. Yuan Liu>I look forward to your input, >Thank You > >Barry
Thanks Guys I already have the fax machine a brother all-in-one Printer, scanner, fax. I realize the s,3, answers the line But How can I get s,2, to detect if it is a fax and take it from there without answering? Or can someone explain what make an incoming goto exten => s,.......... and what make it go to exten => fax,........ How does this logic work?? Thanks again Barry Barry Fawthrop wrote:> Hi All > > Curious will this work > Std. PSTN line ---x------ X100p > | > ------ Fax Machine > Using a standard "home phone" pstn line with a splitter connecting a > fax machine and X100 Asterisk Box > Incoming Line: Can I have in the dial Plan > [incoming] > exten => s,1,Wait(1) > exten => s,2,IfFax continue to ring, so that the Fax Machine gets it > exten => s,3,Answer > exten => s,4,Playback(Message) > exten => s,5,Dial(SIP/1000&SIP/2000&SIP/3000) > exten => s,6,Hangup() > exten => fax,1,Wait(30) > exten => fax,2,Wait(10) > exten => fax,3,Hangup() > I'm wanting the line to ring, > If it is a fax coming in then Asterisk leaves the line alone and lets > the fax machine handle the call. If it is a call then Asterisk > answers, plays a greeting and rings the IP phones? > > Question is how does asterisk detect the call without answering? > I'm not wanting Asterisk to handle the call if it is a fax if possible??? > > I look forward to your input, > Thank You > > Barry
On Fri, 9 Feb 2007, Barry Fawthrop wrote:> Hi All > > Curious will this work > Std. PSTN line ---x------ X100p > | > ------ Fax Machine> Question is how does asterisk detect the call without answering? > I'm not wanting Asterisk to handle the call if it is a fax if possible???As other replys have indicated, it's probably not possible, but have you considered using spandsp & rxfax and have asterisk take the fax and email it to you? Crude (but currently working) example here: FaxFile=/var/tmp/fax FaxDestinationEmail=kevin@somewhere.com,ken@womewhere.com office=Zap/4 ; Analogue phone on the TDM400 card. kevin=IAX2/kevin ; Kevins laptop ken=IAX2/ken&SIP/ken ; Kens laptop officePhones=${office}&${kevin}&${ken} [incoming] exten => s,1,Noop(PSTN CALL from ${CALLERIDNUM}) exten => s,n,Goto(internal,incoming,1) [internal] exten => incoming,1,Set(DB(100/lnd)=${CALLERIDNUM}) exten => incoming,n,Answer() exten => incoming,n,Wait(3) exten => incoming,n(enter),BackGround(if-u-know-ext-dial) exten => incoming,n,BackGround(or) exten => incoming,n,BackGround(pls-hold-while-try) exten => incoming,n,WaitExten(10) exten => incoming,n,Ringing() exten => incoming,n,Dial(${officePhones},15,on) exten => incoming,n,VoiceMail(100&101&102,us) exten => incoming,n,Hangup() exten => fax,1,Set(LOCALSTATIONID=My Fax Machine) exten => fax,n,RxFax(${FaxFile}.tif) exten => fax,n,System(/bin/echo ${REMOTESTATIONID} > ${FaxFile}.csid) exten => fax,n,System(/bin/echo ${CALLERIDNUM} > ${FaxFile}.cidn) exten => fax,n,System(/usr/bin/tiff2pdf ${FaxFile}.tif > ${FaxFile}.pdf) exten => fax,n,System(/usr/bin/mpack -s "FAX From [${REMOTESTATIONID}:${CALLERIDNUM}]" ${FaxFile}.pdf ${FaxDestinationEmail}) exten => fax,n,Hangup() exten => i,1,Wait(1) exten => i,n,Playback(pbx-invalid) exten => i,n,Goto(internal,incoming,enter) exten => t,1,Hangup() -- Gordon
Hi Gordon Following you dial plan How does Asterisk know to move from s,2, to either incoming,1, or fax,1, The only jump I recognize it Goto(internal,incoming,1) which should take all calls to incoming,1, and not fax,1, OT: is spandsp & rxfax handled by astlinux ? Thanks again Barry Gordon Henderson wrote:> > [incoming] > > exten => s,1,Noop(PSTN CALL from ${CALLERIDNUM}) > exten => s,n,Goto(internal,incoming,1) > > [internal] > > exten => incoming,1,Set(DB(100/lnd)=${CALLERIDNUM}) > exten => incoming,n,Answer() > exten => incoming,n,Wait(3) > exten => incoming,n(enter),BackGround(if-u-know-ext-dial) > exten => incoming,n,BackGround(or) > exten => incoming,n,BackGround(pls-hold-while-try) > exten => incoming,n,WaitExten(10) > exten => incoming,n,Ringing() > exten => incoming,n,Dial(${officePhones},15,on) > exten => incoming,n,VoiceMail(100&101&102,us) > exten => incoming,n,Hangup() > > exten => fax,1,Set(LOCALSTATIONID=My Fax Machine) > exten => fax,n,RxFax(${FaxFile}.tif) > exten => fax,n,System(/bin/echo ${REMOTESTATIONID} > ${FaxFile}.csid) > exten => fax,n,System(/bin/echo ${CALLERIDNUM} > ${FaxFile}.cidn) > exten => fax,n,System(/usr/bin/tiff2pdf ${FaxFile}.tif > ${FaxFile}.pdf) > exten => fax,n,System(/usr/bin/mpack -s "FAX From > [${REMOTESTATIONID}:${CALLERIDNUM}]" ${FaxFile}.pdf > ${FaxDestinationEmail}) > exten => fax,n,Hangup() > > exten => i,1,Wait(1) > exten => i,n,Playback(pbx-invalid) > exten => i,n,Goto(internal,incoming,enter) > > exten => t,1,Hangup()
Thanks all for your input. Based on the comments given I guess I could replace the X100p for a TDM22B and then connect the Fax machine to the TDM22B and in the dial plan hae exten => fax,1,Dial(SIP/40) (being the TDM port) and then it will ring the fax machine and pass the call in from the PSTN line through the TDM card to the fax machine? Right, this is possible also or use an ATA if not a TDM card ?/ Thanks All Barry Barry Fawthrop wrote:> Hi All > > Curious will this work > Std. PSTN line ---x------ X100p > | > ------ Fax Machine > Using a standard "home phone" pstn line with a splitter connecting a > fax machine and X100 Asterisk Box > Incoming Line: Can I have in the dial Plan > [incoming] > exten => s,1,Wait(1) > exten => s,2,IfFax continue to ring, so that the Fax Machine gets it > exten => s,3,Answer > exten => s,4,Playback(Message) > exten => s,5,Dial(SIP/1000&SIP/2000&SIP/3000) > exten => s,6,Hangup() > exten => fax,1,Wait(30) > exten => fax,2,Wait(10) > exten => fax,3,Hangup() > I'm wanting the line to ring, > If it is a fax coming in then Asterisk leaves the line alone and lets > the fax machine handle the call. If it is a call then Asterisk > answers, plays a greeting and rings the IP phones? > > Question is how does asterisk detect the call without answering? > I'm not wanting Asterisk to handle the call if it is a fax if possible??? > > I look forward to your input, > Thank You > > Barry > _______________________________________________ > --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 >--
On Mon, 12 Feb 2007, Barry Fawthrop wrote:> Thanks all for your input. > Based on the comments given I guess I could > replace the X100p for a TDM22B and then connect the Fax machine to the TDM22B > and in the dial plan hae > exten => fax,1,Dial(SIP/40) (being the TDM port) and then it will ring the > fax machine > and pass the call in from the PSTN line through the TDM card to the fax > machine?It might work better if you use Dial(Zap/4) where 4 is the port on the TDM card... Also make sure the fax machine answers immediately and goes into fax reception mode immediately.> Right, this is possible also or use an ATA if not a TDM card ?/Possibly. However faxing is very intolerant of packet loss, jitter, phase of the moon and so on. Remember you are carrying an encoded analogue signal in digital form, so make sure you do not use a "lossy" codec (ie. G711 only) and while you or I may be quite tolerant of the odd click, and packet drop, an analogue modem signal (Which is what a fax communication is) is not tolerant at all. Gordon