Hi, does anyone have any recommended (read tried and tested) way of making asterisk be able to handle incoming faxes. I've a PC running asterisk with a digium E1 card in and simply want to be able to route a call to some application which will take a fax call and save the fax as an image. I guess the bits I'm unsure of are how to terminate a fax call without a modem (if this is possible?) and the easiest way to integrate with asterisk.. TIA Steve
On Wed, 2004-01-07 at 07:59, Stephen J. Wilcox wrote:> Hi, > does anyone have any recommended (read tried and tested) way of making asterisk > be able to handle incoming faxes. > > I've a PC running asterisk with a digium E1 card in and simply want to be able > to route a call to some application which will take a fax call and save the fax > as an image. > > I guess the bits I'm unsure of are how to terminate a fax call without a > modem (if this is possible?) and the easiest way to integrate with asterisk..You must have a modem of some sort for faxes. Steve Underwood has been working on a softfax app for asterisk. Some of us have had luck with it, while others haven't. I think the general idea so far is that receiving faxes is hit or miss at the moment while sending faxes is usually a hit. You can find the fax stuff at opencall.org -- Steven Critchfield <critch@basesys.com>
Greetings... I am trying to get Asterisk working with a Voicetronix OpenLine4 card. Searching through the archives it seems that some have managed this before - although I get the impression it's not a widely used card and its use is not highly documented. My vpb drivers were compiled correctly, and are loaded with the system on startup. Running 'dmesg' will show: vpb: major = 254 s[3] = V 0x56 s[2] = 4 0x34 check_region ret = 0 vpb: Manufactured 00/00/0000 vpb: Card version 00.00 vpb: Serial number 00000000 1 V4PCI's detected on PCI bus I have tried the test programs bundled with the voicetronix drivers and these managed to address the card without any problems (such as recording the BUSY and DIAL tones). What's strange is that when I run the programs 'vpbconf' and 'vpbscan' I get the following output: VPBCONF: --------------- Cards detected:1 BOARD 1 vpb_pconf[0][0] = 0 vpb_pconf[0][1] = 0 vpb_pconf[0][2] = 0 vpb_pconf[0][3] = 0 vpb_pconf[0][4] = 0 vpb_pconf[0][5] = 0 vpb_pconf[0][6] = 0 vpb_pconf[0][7] = 0 vpb_pconf[0][8] = 0 vpb_pconf[0][9] = 0 vpb_pconf[0][10] = 0 vpb_pconf[0][11] = 0 MODEL : VPB4 DATE : 00/00/0000 REVISION : 00.00 SERIAL NUMBER : 00000000 STATIONS[1]: TRUNKS[1]: 0 1 2 3 4 5 6 7 8 9 10 11 VPBSCAN: --------------- CARD1:UNKNOWN:irq=22 sub=56345654 BOARDS:1 - is this normal? It seems to me that everything about my card is unknown. The serial number, revision number, and date are all not available. Surely this should not be the case? Do I have a firmware that is too old? When actually running asterisk, it almost seems to me as if it is just not interfacing the hardware - when I attempt to make a dial to a PSTN number, I get: Executing Dial("SIP/TerenceParker-26d0", "vpb/1/1/26058133") in new stack -- 1 requested, got: [None] NOTICE[245776]: File app_dial.c, Line 499 (dial_exec): Unable to create channel of type 'vpb' == Everyone is busy at this time -- Executing Congestion("SIP/TerenceParker-26d0", "") in new stack == Spawn extension (sip, 926058133, 2) exited non-zero on 'SIP/TerenceParker-26d0' 1 requested, but got none? Does this mean it's not even finding my hardware? However, note that when I change vpb.conf to something ridiculous (such as port 5 on a 4 port card) then asterisk will complain on startup - so evidently it notices something! My vpb.conf file currently reads: [interfaces] echocancel = on board = 1 context = sip ; Note that V6PCI channel numbers start at 7! mode = fxo channel = 1 In extensions.sip, I am using the following within the [sip] context: exten => _9.,1,Dial(vpb/1/1/${EXTEN:1}) exten => _9.,2,Congestion Also worth noting that is strange, is that if I pick up an analogue phone while asterisk is running (an analogue phone that is connected to the same phone line, but not to the voicetronix card directly), the OpenLine card for some reason picks this up - and then when you input DTMF asterisk crashes. Surely this shouldn't happen? For our phones, we're using SIP. If any one can think of any suggestions to address any of these problems, please let me know - I appreciate any comments received. Thanks! Terence Parker
> In extensions.sip, I am using the following within the [sip] context: > > exten => _9.,1,Dial(vpb/1/1/${EXTEN:1}) > exten => _9.,2,Congestion > > If any one can think of any suggestions to address any of these > problems, please let me know - I appreciate any comments received. > > Thanks! > > Terence Parker >Try: exten => _9.,1,Dial(vpb/1-1/${EXTEN:1}) exten => _9.,2,Congestion Jorge
Steve, If your E1 card has another port, you might consider investing in a fax software package that can drive a digital fax board, like a Brooktrout TR1034 of an Eicon Diva server. Then you're ISDN-PRI end-to-end. These cards come in fractional E1 port densities, so you could wire only 8 bearer channels if you only expected a concurrency of 8. Most major fax server software packages will support these boards. HylaFAX is but one example ;-) -Darren -- Darren Nickerson Senior Sales & Support Engineer iFAX Solutions, Inc. www.ifax.com darren.nickerson@ifax.com +1.215.438.4638 ext 8106 office +1.215.243.8335 fax ----- Original Message ----- From: "Stephen J. Wilcox" <steve@telecomplete.co.uk> To: <asterisk-users@lists.digium.com> Sent: Wednesday, January 07, 2004 8:59 AM Subject: [Asterisk-Users] Asterisk + fax> Hi, > does anyone have any recommended (read tried and tested) way of makingasterisk> be able to handle incoming faxes. > > I've a PC running asterisk with a digium E1 card in and simply want to beable> to route a call to some application which will take a fax call and savethe fax> as an image. > > I guess the bits I'm unsure of are how to terminate a fax call without a > modem (if this is possible?) and the easiest way to integrate withasterisk..> > TIA > > Steve > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi all I need a help with asterisk+fax -> fax to email I am trying to setup fax to email with asterisk with no success. I have asterisk 1.2.9.1 running on CentOS i have created extension 300 which should receive faxes. extensions.conf ----------------------------- exten => 300,1,Goto(fax,s,1) exten => 300,2,Congestion exten => 300,3,Hangup exten => s,1,Macro(faxreceive) exten => h,1,system(/usr/bin/mail -s "Fax from ${CALLERIDNUM} ${CALLERIDNAME}" ${EMAILADDR} < ${FAXFILE}) [macro-faxreceive] exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,Set(EMAILADDR=${FAX_RX_EMAIL}) exten => s,3,rxfax(${FAXFILE}|debug) exten => s,103,Set(EMAILADDR=${FAX_RX_EMAIL}) exten => s,104,Goto(3) When i am trying to call 300 extension i am receiving broken fax noise. in addition on the CLI> i see the next line Executing RxFAX("SIP/5060-08d6f170", "/var/spool/asterisk/fax/1152714504.466.tif|debug") in new stack But the file never been created. In /var/log/asterisk/full i see these lines: Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up Any help with fax to email with Asterix will be appreciated. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060712/07985283/attachment.htm
On 7/12/06, al gav <alegator23@yahoo.com> wrote:> > Hi all > > I need a help with asterisk+fax -> fax to email > I am trying to setup fax to email with asterisk with no success. > > I have asterisk 1.2.9.1 running on CentOS > i have created extension 300 which should receive faxes. >Which version of spandsp did you build/install? What type of fax machine are you using to send with, and have you tried a different one? Steve
> Hi all > > I need a help with asterisk+fax -> fax to email > I am trying to setup fax to email with asterisk with no success. > > I have asterisk 1.2.9.1 running on CentOS > i have created extension 300 which should receive faxes. > > extensions.conf > ----------------------------- > exten => 300,1,Goto(fax,s,1) > exten => 300,2,Congestion > exten => 300,3,Hangup > > exten => s,1,Macro(faxreceive) > exten => h,1,system(/usr/bin/mail -s "Fax from ${CALLERIDNUM} > ${CALLERIDNAME}" ${EMAILADDR} < ${FAXFILE}) > > [macro-faxreceive] > exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) > exten => s,2,Set(EMAILADDR=${FAX_RX_EMAIL}) > exten => s,3,rxfax(${FAXFILE}|debug) > exten => s,103,Set(EMAILADDR=${FAX_RX_EMAIL}) > exten => s,104,Goto(3) > > > When i am trying to call 300 extension i am receiving broken fax noise. > in addition on the CLI> i see the next line > Executing RxFAX("SIP/5060-08d6f170", > "/var/spool/asterisk/fax/1152714504.466.tif|debug") in new stack > > But the file never been created. > > > In /var/log/asterisk/full i see these lines: > > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > > > Any help with fax to email with Asterix will be appreciated. > > > > --------------------------------- > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail > Beta._______________________________________________ > --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 >The echo cancellation on your line is causing this. I had the same issue with faxing. Garth
On 7/12/06, al gav <alegator23@yahoo.com> wrote:> > Hi all > > I need a help with asterisk+fax -> fax to email > I am trying to setup fax to email with asterisk with no success. > > I have asterisk 1.2.9.1 running on CentOS > i have created extension 300 which should receive faxes. > > extensions.conf > ----------------------------- > exten => 300,1,Goto(fax,s,1) > exten => 300,2,Congestion > exten => 300,3,Hangup > > exten => s,1,Macro(faxreceive) > exten => h,1,system(/usr/bin/mail -s "Fax from ${CALLERIDNUM} > ${CALLERIDNAME}" ${EMAILADDR} < ${FAXFILE}) > > [macro-faxreceive] > exten => > s,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) > exten => s,2,Set(EMAILADDR=${FAX_RX_EMAIL}) > exten => s,3,rxfax(${FAXFILE}|debug) > exten => s,103,Set(EMAILADDR=${FAX_RX_EMAIL}) > exten => s,104,Goto(3) > > > When i am trying to call 300 extension i am receiving broken fax noise. > in addition on the CLI> i see the next line > Executing RxFAX("SIP/5060-08d6f170", > "/var/spool/asterisk/fax/1152714504.466.tif|debug") in new > stack > > But the file never been created. > > > In /var/log/asterisk/full i see these lines: > > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier down > Jul 12 17:28:24 DEBUG[25029] app_rxfax.c: FLOW HDLC carrier up > > > Any help with fax to email with Asterix will be appreciated. > > > > ________________________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail Beta. > > > _______________________________________________ > --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 >Well, the fact that you are calling the extension and hear the fax signaling shows the that rxfax application is working, so far so good. Have you set faxdetect=incoming in /etc/asterisk/zapata.conf ? Also note that you need to have an extension named "fax" in your "default" context. Also look at http://www.voip-info.org/wiki-Asterisk+fax for helping info. -- Cheers, Maxim Vexler "Free as in Freedom" - Do u GNU ?