i’m having some trouble with sending fax. would like to show the dialplan. guess it is related with the above.
[sip-fax]
; receiving from the fax machine
exten => _9.,1,Answer()
exten => _9.,2,Set(FAXFILE=/tmp/fax.tif)
exten => _9.,3,rxfax(${FAXFILE})
; send it out
exten =>_9.,4,Macro(faxkuldes,${EXTEN:1},${FAXFILE})
;exten => _9.,6,Dial(misdn/1/${EXTEN:1},10,G(7))
;exten => _9.,7,txfax(${FAXFILE}|caller)
[macro-faxkuldes]
;exten => s,1,Set(FAXFILE=/tmp/fax.tif)
exten => s,1,Set(LOCALHEADERINFO=${FAXHEADER})
exten => s,2,Dial(misdn/1/${ARG1},10,G(4))
exten => s,3,txfax(${ARG2}|caller)
; isdn incoming
[misdn]
exten => 0614568011,5,NoOp(FAX!!!)
exten => s,1,WaitForDigits(1000,2,false,15)
; fax
exten => 1,1,Set(FAXFILE=/var/spool/asterisk/fax/${TIMESTAMP}.tif)
exten => 1,2,Answer()
exten => 1,3,rxfax(${FAXFILE})
exten => 1,4,System(’${SFAX} ${FAXFILE} >> ~/sfaxout’)
if i’m sending a fax to our fax number(0614568011)
the and the misdn exten picks it up, the control goes to extension 0614568011. Meanwhile, other incoming faxes, dont go trough that extension.
why is that? some wrong option?