Fax Macro errors

Hello everyone. I am using fax macro from voip-info.org/wiki/view/Aste … x+to+email to receive faxes in asterisk and i am getting two erros in the CLI:

Connected to Asterisk 1.6.1.6 currently running on localhost (pid = 3520)
[Nov 9 17:05:30] WARNING[3558]: pbx.c:3170 pbx_extension_helper: No application ‘DBGet’ for extension (macro-faxreceive, s, 2)
[Nov 9 17:05:30] WARNING[3558]: app_system.c:88 system_exec_helper: Unable to execute ‘/var/lib/asterisk/scripts/mailfax “” “” “” “” “/var/spool/asterisk/fax//1257797130.1” “”’

The macro i am using is the following:

[macro-faxreceive]
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID})
exten => s,2,DBGet(EXTEMAIL=${MACRO_EXTEN}/xEmail)
exten => s,3,NoOP()
exten => s,4,DBGet(EXTNAME=${MACRO_EXTEN}/xName)
exten => s,5,NoOP()
exten => s,6,DBGet(EXTCOMPANY=${MACRO_EXTEN}/xCompany)
exten => s,7,rxfax(${FAXFILE}.tif)
exten => s,103,SetVar(EXTMAIL=fax@company.com)
exten => s,104,Goto(7)
exten => s,105,SetVar(EXTNAME=Unknown)
exten => s,106,Goto(7)
exten => s,107,SetVar(EXTCOMPANY=Company)
exten => s,108,Goto(7)

[fax]
exten => 123456789,1,Macro(faxreceive)

exten => h,1,System(/var/lib/asterisk/scripts/mailfax “${CALLERIDNUM}” “${CALLEDFAX}” “${EXTNAME}” “${EXTEMAIL}” “${FAXFILE}” “${EXTCOMPANY}”)

[default]

exten => 123456789,1,SetVar(CALLEDFAX=${EXTEN})
exten => 123456789,2,Answer
exten => 123456789,3,Goto(fax,${EXTEN},1)

Any ideas? sorry for the long post, thanks in advance
Herlit11

For DBGet, you should be using the ${DB(…)} function. DBGet is not in TFOT, so was presumably deprecated in 1.4.

You need to check whether the script exists and whether it has read and execute permission for the user under which Asterisk runs.

Thanks. I replaced Dbget and the scripts seems to work and creates a file in my /var/spool/asterisk/fax/.

On the other hand i am still having trouble with the script, i am getting two messages:

[Nov 10 09:59:35] WARNING[3528]: pbx.c:3170 pbx_extension_helper: No application ‘rxfax’ for extension (macro-faxreceive, s, 7)
[Nov 10 09:59:35] WARNING[3528]: app_system.c:88 system_exec_helper: Unable to execute ‘/var/lib/asterisk/scripts/mailfax “” “” “9299/xName” “9299/xEmail” “/var/spool/asterisk/fax//1257857975.1” “9299/xCompany”’

rxfax is deprecated, do you know what the replacement is in 1.6.1.6?

Regarding the second message i think it´s a problem with the variables that the script creates. If you look you will find
the empty quotes after mailfax. It seems the variables used in the macro(that are passed as arguments to the script) are not being filled with data.

Any ideas? Thanks
Herlit11

Hi, i forgot to say. I checked the permissions for the mailfax script and it belongs to the owner of the asterisk process and
it´s executable.
Thanks,regards
Herlit11