And what exactly im trying to do is i have 4 fxo with my zaptel configured ... when the fax call comes in the promt will say please enter the ticket number for the ticket you are faxing. when the 6 DTMF digits are pressed. Send the incoming fax to the iaxmodem with the 6 DTMF digits going to that file in mailfax and using that macro below
Im am trying to connect this macro to one of the IAxmodem dev
and i do a iax2 show peers which is binded to 127.0.0.1 port 40000
elastix*CLI> iax2 show peers
Name/Username Host Mask Port Status
7004 127.0.0.1 (D) 255.255.255.255 40003 OK (1 ms)
7003 127.0.0.1 (D) 255.255.255.255 40002 OK (3 ms)
7002 127.0.0.1 (D) 255.255.255.255 40001 OK (3 ms)
7001 127.0.0.1 (D) 255.255.255.255 40000 OK (3 ms)
which im trying to put in this macro script thanks to GRBLADES made for me Below
[macro-recfax]
; ARG1 = ticket number
exten => s,1,Set(FAXFILE=${ARG1}-${
UNIQUEID}.
tif)
exten => s,n,rxfax(/var/spool/aster
isk-fax/${
FAXFILE})
exten => s,n,system(/usr/local/bin/
mailfax ${UNIQUEID} ${FAXFILE} destination@youraddress.co
m "${CALLERIDNUM} ${CALLERIDNAME}")
exten => s,n,Hangup
[faxmenu]
exten => s,1,Wait(2)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n,SetMusicOnHold(default
)
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=
10)
exten => s,n(menu),Background(custo
m/ticket-n
um) ; enter ticket number for the ticket you are faxing
exten => XXXXX,1,Macro(recfax,${MAC
RO_EXTEN})
exten => t,1,Wait(1)
exten => t,n,Goto(s,menu)
exten => i,1,Playback(custom/invali
doption)
exten => i,n,Wait(1)
exten => i,n,Goto(s,menu)
which also goes to a file name but in my
/etc/iaxmodem Directory for every iax modem configured there is a .cfg file which contains.
device /dev/ttyIAX1
owner uucp:uucp
mode 660
port 40000
refresh 300
server 127.0.0.1
peername 7001
secret 7001
cidname 7001
cidnumber 7001
codec slinear
and the file name is iaxmodem-cfg.ttyIAX1
and i have 4 devs IAX1 - 4
Thanks ;)
Start Free Trial