How to detect/divert to FAX from incoming route

Discussion in 'General' started by infomate, Jun 19, 2008.

  1. infomate

    Jun 15, 2008
    Likes Received:
    I would like to find out if theres a way to automatically detect and divert incoming FAX if I make an incoming route based on Zaptel Channel and not on DID/CID?

    I made an incoming route that detects Zaptel Channel and configured FAX to virtual fax and direct to Local

    From extension-additional.conf (automatically generated)
    include => macro-from-zaptel-1-custom
    exten => fax,1,Goto(ext-fax,in_fax,1)
    exten => s,1,Noop(Entering macro-from-zaptel-1 with DID = ${DID})
    exten => s,n,Set(__FROM_DID=${EXTEN})
    exten => s,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
    exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
    exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
    exten => s,n,Set(FAX_RX=925)
    exten => s,n,Goto(from-did-direct,400,1)
    ; end of [macro-from-zaptel-1]
    The incoming FAX cannot be detected since the macro is being called with "s,1" therefore totally bypassing "exten => fax" line. I the incoming call is voice the macro performs perfectly.

Share This Page