[asterisk-users] Text priority labels not working for me
Aaron Daniel
amdtech at shsu.edu
Mon Jul 10 22:41:38 MST 2006
The problem is in the space. You've got it as " ? scid)"... In order
for the label to work, you need to get rid of the space. Make it
"?scid)" and it should work fine.
The error's in the details:
pbx_extension_helper: No such label >>' scid'<< in extension 's' in
context 'macro-dosomething'
On Tue, 2006-07-11 at 08:32 +0300, Tzafrir Cohen wrote:
> On Mon, Jul 10, 2006 at 08:54:37PM -0700, Wes Santee wrote:
> > Greetings all,
> >
> > I'm on 1.2.9.1, and I'm trying to get a dialplan working that uses text
> > labels, but it's not working. For instance, take the following macro
> > snippet:
> >
> > [macro-dosomething]
> > exten => s,1,GotoIf($["${MACRO_EXTEN:1:1}" != "1"] ? scid)
> > exten => s,n,Set(MACRO_EXTEN=1${MACRO_EXTEN})
> > exten => s,n(scid),SetCallerId(${MY_CID})
> > exten => s,n,Dial(...)
> >
> > When I call this macro, I get the following:
> >
> > -- Executing Macro("SIP/1000-66b0", "dosomething") in new stack
> > -- Executing GotoIf("SIP/1000-66b0", "1 ? scid") in new stack
> > Jul 10 20:05:52 NOTICE[99803]: pbx.c:1753 pbx_extension_helper: No such
> > label ' scid' in extension 's' in context 'macro-dosomething'
> > Jul 10 20:05:52 WARNING[99803]: pbx.c:6514 ast_parseable_goto: Priority
> > ' scid' must be a number > 0, or valid label
>
> For starters, ask asterisk if there is.
>
> In the CLI: show dialplan macro-dosomething
>
More information about the asterisk-users
mailing list