[Asterisk-Users] h extension in macro

Peer Oliver Schmidt posde at theinternet.de
Mon Dec 6 09:16:37 MST 2004


Maros RAJNOCH wrote:

> exten => h,1,system(/var/lib/asterisk/bin/mailfax ${FAXFILE} ${EMAILADDR} "${CALLERIDNUM} ${CALLERIDNAME}")
> 
> mailfax binary will be executed after any hang-up, also after calls, not
> only faxes. I know I can use some variable and if statement to run
> mailfax only if that variable will be true,
> 
> but is there any way to handle h-extension in macro?

I would put the fax extension into a seperate context and utilize that 
context for fax only.

rgds
pos



More information about the asterisk-users mailing list