how to call a macro from inbound ?

nprzybilla's picture

Hello,

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)

[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(MAILADDR=np@sf-design.net)
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


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

how to call a macro from inbound ?

Djelibeybi's picture

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


how to call a macro from inbound ?

nprzybilla's picture

Hi,

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

Niels


how to call a macro from inbound ?

Djelibeybi's picture

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