[asterisk-users] Asterisk + fax

al gav alegator23 at yahoo.com
Sun Jul 16 02:02:22 MST 2006



Maxim Vexler <hq4ever at gmail.com> wrote:    On 7/12/06, al gav 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 ?
   
  --------------------------------------
  Yes
  --------------------------------------
  
Also note that you need to have an extension named "fax" in your
"default" context.
  ------------------------------------------------
  In order to check the fax i put directly extension in the default context
  [default]
  exten => 300,1,Macro(faxreceive)
  ------------------------------------------------
    
Also look at http://www.voip-info.org/wiki-Asterisk+fax for helping info.

   
  ------------------------------------------------
  It's sounds like the difference between the speeds of the faxes on both sides, but i am not sure about that.
   
  Again the goal is to receive fax on asterisk and mail them to different mails.
   
  Thank you Maxim.
  
-- 
Cheers,
Maxim Vexler

"Free as in Freedom" - Do u GNU ?
_______________________________________________
--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



 		
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060716/fcdb0d53/attachment.htm


More information about the asterisk-users mailing list