[Asterisk-Users] Question about Macros
Joe S
printingfoot at hotmail.com
Tue Apr 12 19:39:31 MST 2005
Hello,
I am trying to build a macro + menu together. Here is the idea:
Dial 1000 to get to conference, menu comes, press 1 to login as admin or
press 2 to login as user.
Here is my code in extensions.conf:
exten => 1000,1,Macro(conf2me,1000)
[macro-conf2me]
exten=>s,1,Wait,1
exten=>s,2,Answer
exten=>s,3,DigitTimeout,5
exten=>s,4,ResponseTimeout,10
exten=>s,5,Background,welcome-instructions
exten=>i,1,Playback,pbx-invalid
exten=>i,2,Goto,s|5
exten=>t,1,Hangup
exten=>1,1,MeetMe(${ARG1}|ipda)
exten=>2,1,MeetMe(${ARG1}|ipd)
It doesn't work, it is giving the error that '1' is not defined in the
default context, probably it exited the menu (macro).
Thanks,
Joe
More information about the asterisk-users
mailing list