Hi im trying to send receive fax on my asterisk but everty time when a send fax from another provider to my asterisk, the asterisk is responding with time out. THe code is in:
sip.conf
[out-trunk]
disallow=all
allow=g729
allow=ulaw
nat=no
type=peer
context=incoming
fromdomain=ip
fromuser=did number
host=ip
insecure=port,invite
defaultuser=did number
secret=pass
sendrpid=yes
trustrpid=no
extensions.conf
;------------------------FaX---------------------
exten => fax,1,NoOp(Incoming fax )
same => n,Set(tempfax=/tmp/fax_${STRFTIME(,%C%y%m%d%H%M)}.tif)
same => n,ReceiveFax(${tempfax},f)
same => n,NoOp(Fax receipt completed with status: ${FAXSTATUS})
same=> n,NoOp(RX: FAXERROR is ${FAXERROR})
same => n,NoOp(RX: REMOTESTATIONID is ${REMOTESTATIONID})
same=> n,NoOp(RX: FAXPAGES is ${FAXPAGES})
same=> n,NoOp(RX: FAXRESOLUTION is ${FAXRESOLUTION})
same=> n,NoOp(RX: FAXBITRATE is ${FAXBITRATE})
same =>n,NoOp(RX: PHASEESTATUS is ${PHASEESTATUS})
same=> n,NoOp(RX: PHASESTRING is ${PHASEESTRING})
; *** This line should not have any line breaks
same => n,System(sudo /root/filerun.sh faxme ${tempfax})
Can somebody help me?