Was this page helpful?

fax2email

    內容表格
    沒有標頭

    fax2email - 這是一個 bash script,可用於各種傳真模組。

    必要的元件

    • sendEmail - 這是一個 perl script,用來寄送傳真的郵件,需要一個有效的 MTA 主機作郵件 relay。
    • libtiff-tools - 可從 apt-get 安裝,用來轉換 tiff 到 PDF。

     

    /var/lib/asterisk/bin/fax2mail.sh:如附檔

    /etc/asterisk/extensions_custom.conf:

    [my-fax-in]
    exten => s,1,Answer
    exten => s,n,Wait(2)
    exten => s,n,Set(FAXFILE=/var/spool/asterisk/fax/fax_${STRFTIME(,,%Y%m%d-%H%M)}_${RAND(1)}.tiff)
    exten => s,n,Noop(CALLERIDNUM = ${CALLERIDNUM})
    exten => s,n,Noop(CALLEDFAX = ${EXTEN})
    exten => s,n,ReceiveFAX(${FAXFILE})
    exten => s,n,Hangup
    exten => h,1,System(/var/lib/asterisk/bin/fax2mal.sh "unknown" "unknown" "Users" "[email protected]" "${FAXFILE}" "My Company")
    

     

    Was this page helpful?
    標籤 (Edit tags)
    • No tags

    文件 1

    文件大小日期附件上傳者 
     fax2mal.sh
    無描述
    3.16 KB17:25, 10 Nov 2011alang動作
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core