[macro-dial] context missing?

I’m attempting to setup an IVR menu on FreePBX and I’m having trouble when attempting to branch to a ring group. The IVR works otherwise, but this one feature returns a perplexing error in the CLI. Anyone run into this before? If so, HELP!

[Sep 7 21:54:46] VERBOSE[19981] pbx.c: – Executing [[email protected]:15] Macro(“SIP/1xxxxxxxxxx-00000000”, “dial,20,1001-1002-1003-1004”) in new stack
[Sep 7 21:54:46] WARNING[19981] app_macro.c: No such context ‘macro-dial’ for macro ‘dial’

I have tried to find [macro-dial] in every conf file without any luck. It seems to me that this macro just doesn’t exist or is built into the code, so I have no clue how to resolve the problem. :frowning:

Here’s the relative snippet from extensions_additional.conf;

include => ivr-2-custom
include => from-did-direct-ivr
include => app-directory
exten => #,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => #,n,Set(__NODEST=)
exten => #,n,Goto(app-directory,#,1)
exten => h,1,Hangup
exten => s,1,Set(MSG=custom/BluebrickMainMenuDemo)
exten => s,n,Set(LOOPCOUNT=0)
exten => s,n,Set(__DIR-CONTEXT=default)
exten => s,n,Set(_IVR_CONTEXT=${CONTEXT})
exten => s,n,GotoIf($["${CDR(disposition)}" = “ANSWERED”]?begin)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Set(TIMEOUT(digit)=3)
exten => s,n,Set(TIMEOUT(response)=30)
exten => s,n,Set(__IVR_RETVM=)
exten => s,n,ExecIf($["${MSG}" != “”]?Background(${MSG}))
exten => s,n,WaitExten(,)
exten => hang,1,Playback(vm-goodbye)
exten => hang,n,Hangup
exten => 0,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 0,n,Set(__NODEST=)
exten => 0,n,Goto(ext-group,600,1)
exten => 1001,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 1001,n,Set(__NODEST=)
exten => 1001,n,Goto(from-did-direct,1001,1)
exten => 1002,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 1002,n,Set(__NODEST=)
exten => 1002,n,Goto(from-did-direct,1002,1)
exten => 1003,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 1003,n,Set(__NODEST=)
exten => 1003,n,Goto(from-did-direct,1003,1)
exten => 1004,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 1004,n,Set(__NODEST=)
exten => 1004,n,Goto(from-did-direct,1004,1)
exten => i,1,Playback(invalid)
exten => i,n,Goto(loop,1)
exten => t,1,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)
exten => loop,n,Goto(ivr-2,s,begin)
exten => return,1,Set(MSG=custom/BluebrickMainMenuDemo)
exten => return,n,Set(IVR_CONTEXT=${CONTEXT})
exten => return,n,Set(IVR_CONTEXT${CONTEXT}=${IVR_CONTEXT
exten => return,n,Goto(ivr-2,s,begin)

; end of [ivr-2]

include => ext-group-custom
exten => 600,1,Macro(user-callerid,)
exten => 600,n,GotoIf($[“foo${BLKVM_OVERRIDE}” = “foo”]?skipdb)
exten => 600,n,GotoIf($["${DB(${BLKVM_OVERRIDE})}" = “TRUE”]?skipov)
exten => 600,n(skipdb),Set(__NODEST=)
exten => 600,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 600,n,Set(__BLKVM_BASE=${EXTEN})
exten => 600,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 600,n(skipov),Set(RRNODEST=${NODEST})
exten => 600,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 600,n,GosubIf($[${DB_EXISTS(RINGGROUP/600/changecid)} = 1 & “${DB(RINGGROUP/600/changecid)}” != “default” & “${DB(RINGGROUP/600/changecid)}” != “”]?sub-rgsetcid,s,1)
exten => 600,n,Set(__ALERT_INFO=Ring All)
exten => 600,n,Set(RecordMethod=Group)
exten => 600,n,Macro(record-enable,1001-1002-1003-1004,${RecordMethod})
exten => 600,n,Set(RingGroupMethod=ringall)
exten => 600,n(DIALGRP),Macro(dial,20,${DIAL_OPTIONS},1001-1002-1003-1004)
exten => 600,n,Set(RingGroupMethod=)
exten => 600,n,GotoIf($[“foo${RRNODEST}” != “foo”]?nodest)
exten => 600,n,Set(__NODEST=)
exten => 600,n,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 600,n,Goto(ivr-2,s,1)
exten => 600,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})

; end of [ext-group]

Say what? There is no FreePBX, that look like an Asterisk version to me.

Is this a distro of some sort?

Sorry, got my version #'s intermingled…


Will correct in original post.


AsteriskNOW 1.7.0 …is that what you’re looking for? Sorry, kinda new to this stuff.

Check that the file /etc/asterisk/extensions.conf is symlinked to /var/www/html/admin/modules/core/etc/extensions.conf

If not, symlink it.

Sweet! You sir, are a scholar and a genius. That was the whole problem, and it would have taken a long time, if ever, for me to discover that on my own. THANK YOU!

As a matter of note, sip.conf was also missing the symbolic link, which I replaced. Any idea how that might have happened?

Also, this certainly does explain why I’ve been struggling all along getting stuff configured. I’ve had to go in and manually create contexts and script to make stuff work, when I thought the GUI should have handled it.

you may have wanted to take a look at the errors in the notification panel, they would have told you there was a problem with those files.

Keep an eye on those notices in the future, they are there to try and keep you from hours of pain and frustration :slight_smile: