Rejected because extension not found

Hello everyone. I am new to asterisk, i have been trying to route a call to a fax app in asterisk from Openser and i am
getting the flollowing:

Call from ‘’ to extension ‘9299’ rejected because extension not found.

My sip.conf file config is:

[fax]
type=peer
context=fax
host=10.0.0.12
insecure=very

my extensions.conf is:

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

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

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

[default]

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

Any ideas why asterisk gives this message? Sorry for the long post.
Regards
Herlit11

Your faxreceive macro extension should be ‘s’, not 9299. See ‘core show application Macro’

Hi, thanks for your reply.
I changed the “s” and the error does not appear anymore.
The thing is that the macro is not working(it seems),because i dont see
any fax files being created or the faxlog either.

Do you know anyway to check if a macro is working correctly?

Thanks,regards
Herlit11

Hi

What version of asterisk are you using they dialplan looks like and Old 1.0 -1.2 dialplan.

Ian

Hi, i am using Asterisk 1.6.1.6

I just tried this dialplan from and old how-to. I am not good with asterisk macros.

Any ideas on how to make it work?

Thanks,regards
Herlit11

Hi. I have solved the “rejected because extension not found” problem. It was something wrong with the sip.conf file.
thanks,regards
Herlit11