[asterisk-users] Text priority labels not working for me

Eric "ManxPower" Wieling eric at fnords.org
Mon Jul 10 23:59:12 MST 2006


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
> 
> The last log line suggests I can't use labels, but according to
> http://www.voip-info.org/wiki/index.php?page=Asterisk+priorities it
> shouldn't be a problem.
> 
> Am I doing something wrong?

Don't put spaces around the ?


-- 
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.



More information about the asterisk-users mailing list