[Asterisk-Users] macro-faxreceive

Ronald Wiplinger ronald at elmit.com
Sun Jan 22 19:56:25 MST 2006


How should be the macro rewritten?


[macro-faxreceive]
exten => s,1,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
exten => s,2,DBGet(EMAILADDR=extensionemail/${MACRO_EXTEN})
exten => s,3,rxfax(${FAXFILE})
exten => s,103,Set(EMAILADDR=ronald at elmit.com)
exten => s,104,Goto(3)



...
[Jan 23 10:43:38]     -- Executing Macro("Zap/3-1", "faxreceive") in new 
stack
[Jan 23 10:43:38]     -- Executing Set("Zap/3-1", 
"FAXFILE=/var/spool/asterisk-fax/1137984210.35.tif") in new stack
[Jan 23 10:43:38] WARNING[25524]: pbx.c:1555 pbx_extension_helper: No 
application 'DBGet' for extension (macro-faxreceive, s, 2)
[Jan 23 10:43:38]   == Spawn extension (macro-faxreceive, s, 2) exited 
non-zero on 'Zap/3-1' in macro 'faxreceive'
[Jan 23 10:43:38]   == Spawn extension (fax, 2201, 1) exited non-zero on 
'Zap/3-1'
[Jan 23 10:43:38]     -- Executing System("Zap/3-1", 
"/usr/local/sbin/mailfax /var/spool/asterisk-fax/1137984210.35.tif  " 
"") in new stack
[Jan 23 10:43:38]     -- Hungup 'Zap/3-1'




More information about the asterisk-users mailing list