How to call a macro from inbound?


i would like to call a macro for fax-receiving I found on the net:

normally on pure asteris I use it like that:

exten => 26306749,1,Wait(3)
exten => 26306749,n,Macro(custom-faxempfang)

exten => s,1,Set(SCRIPTFILE=/var/lib/asterisk/scripts/fax2mail)
exten => s,n,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID})
exten => s,n,Set([email protected])
exten => s,n,rxfax(${FAXFILE})
exten => s,n,system("${SCRIPTFILE}" “${CALLERIDNUM}” “${MAILADDR}” “${UNIQUEID}”)

But how do I call it from inbound route in freepbx ?
With Custom-App i treid several syntaxes but it did not work.

Thnaks for your help and best regards

Niels Przybilla

FreePBX already contains a macro to receive faxes. Check out extensions.conf.


but I dod not find out, where to set the DID that receives the faxes …
I can see that system can take axes, but on which inbound-route ?

Best regards


Just add an Inbound Route, and configure the Fax settings for that DID.