How to detect/divert to FAX from incoming route

Joined
Jun 15, 2008
Messages
5
Points
0
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


Code:
From extension-additional.conf (automatically generated)

[macro-from-zaptel-1]
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.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,987
Messages
131,100
Members
17,716
Latest member
Orbit114
Top