Hello All, I am looking to get asterisk to receive faxes but I really don't know where to go from here, any help pointing me in the right direction would be great. What I would really like is for this second line to answer faxes, but if a user typing in an extension it goes to that extension but I need to get the fax working first. Error I get when I turn on Fax conf... pbx.c:1945 ast_pbx_run: Timeout, but no rule 't' in context 'from-Sipmedia2' Fax Conf in extensions.conf top [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,7,rxfax(${FAXFILE}) exten => s,103,SetVar(EMAILADDR=my@email.us) exten => s,104,Goto(7) [from-Sipmedia2] ;second line in or Fax line exten => s,1,Answer exten => fax,2,Goto(fax,2901,1) [fax] exten => 2901,1,Macro(faxreceive) exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}" "${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}") Thanks, Chris Tuska Network Engineer CCNA, CCSA In theory, theory and practice are the same. In practice, they aren't -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050321/24043189/attachment.htm
> [macro-faxreceive] > exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) > exten => s,7,rxfax(${FAXFILE})what happened to 2 through 6? -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
I removed everything but what I needed to get the fax and email it to myself. So this is all I have, Thanks.. [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,7,rxfax(${FAXFILE}) exten => s,103,SetVar(EMAILADDR=chris@myself.us) exten => s,104,Goto(7) Chris> Message: 1 > Date: Tue, 22 Mar 2005 11:12:33 +1200 > From: Matt Riddell <matt.riddell@sineapps.com> > Subject: Re: [Asterisk-Users] Fax receive issues and NVFaxDetect > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users@lists.digium.com> > Message-ID: <423F54E1.7020307@sineapps.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >> [macro-faxreceive] >> exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) >> exten => s,7,rxfax(${FAXFILE}) > > what happened to 2 through 6? > > -- > Cheers, >
> I removed everything but what I needed to get the fax and email it to > myself. So this is all I have, Thanks..Well, then you need to renumber the priorities! Below is a start. Your code does not do any emailing, by the way... what happens when you set the EMAILADDR variable? Nothing... you need to add a handler script to send the email. [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,rxfax(${FAXFILE}) exten => s,3,SetVar(EMAILADDR=chris@myself.us) exten => s,3,System(SOME EMAILING CODE HERE) exten => s,5,Goto(1) --Luki
> From: "Chris Tuska" <chris@tuska.us> > Subject: [Asterisk-Users] Fax receive issues and NVFaxDetect > > [macro-faxreceive] > exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) > exten => s,7,rxfax(${FAXFILE}) > exten => s,103,SetVar(EMAILADDR=my@email.us) > exten => s,104,Goto(7) > > [from-Sipmedia2] > ;second line in or Fax line > exten => s,1,Answer > exten => fax,2,Goto(fax,2901,1) > > [fax] > exten => 2901,1,Macro(faxreceive) > > exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}""${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}") I'm a little bit confused here. Assuming the "from-Sipmedia2" context is handling your SIP appliance, how about the following (just moved around a little of yours and added a line)?> [macro-faxreceive]exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,rxfax(${FAXFILE}) exten => s,3,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}" "${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}") [from-Sipmedia2] exten => s,1,Answer ; You need this line in here exten => s,2,NVFaxDetect exten => fax,1,Goto(fax,2901,1) [fax] exten => 2901,1,Macro(faxreceive) Jusitn Newman jnewman@newmantelecom.com
Justin Newman
2005-Mar-27 13:49 UTC
[Asterisk-Users] Re: Fax receive issues and NVFaxDetect
>> I removed everything but what I needed to get the fax and email it to >> myself. So this is all I have, Thanks.. >Well, then you need to renumber the priorities! Below is a start. Your >code does not do any emailing, by the way... what happens when you set >the EMAILADDR variable? Nothing... you need to add a handler script to >send the email. > >[macro-faxreceive] >exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) >exten => s,2,rxfax(${FAXFILE}) >exten => s,3,SetVar([EMAIL PROTECTED]) >exten => s,3,System(SOME EMAILING CODE HERE) >exten => s,5,Goto(1) > >--LukiOr you can use NVFaxEmail to eliminate the scripting, however it still requires SpanDSP and RxFax. Look on the wiki for more information. It's either NVFaxEmail or NVEmailFax - can't remember right now. [context] exten => s,1,NVFaxDetect exten => fax,1,NVFaxEmail(somebody@somewhere.com) Justin Newman Newman Telecom, Inc.
Eckhard Rothfuchs
2005-Aug-18 00:54 UTC
[Asterisk-Users] Fax receive issues and NVFaxDetect
Am Dienstag, 22. M?rz 2005 00:04 schrieb Chris Tuska:> Hello All, > > I am looking to get asterisk to receive faxes but I really don't know where > to go from here, any help pointing me in the right direction would be > great. What I would really like is for this second line to answer faxes, > but if a user typing in an extension it goes to that extension but I need > to get the fax working first. > > Error I get when I turn on Fax conf... > pbx.c:1945 ast_pbx_run: Timeout, but no rule 't' in context > 'from-Sipmedia2' > > Fax Conf in extensions.conf > top > [macro-faxreceive] > exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) > exten => s,7,rxfax(${FAXFILE}) > exten => s,103,SetVar(EMAILADDR=my@email.us) > exten => s,104,Goto(7) > > [from-Sipmedia2] > ;second line in or Fax line > exten => s,1,Answer > exten => fax,2,Goto(fax,2901,1) > > [fax] > exten => 2901,1,Macro(faxreceive) > > exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}" > "${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}") > > > Thanks, > > Chris Tuska > Network Engineer > CCNA, CCSA > > In theory, theory and practice are the same. In practice, they aren't-- ----------------------------------------------------- Dipl. Ing. Eckhard Rothfuchs Felix-Klein-Str. 1a 37083 G?ttingen Fon: +49.(0)551.37075860 Fax: +49.(0)551.37075861 mobil: +49.(0) 163.8760443 mail: er@erothfuchs.de