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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jul 10 22:32:13 MST 2006


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

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list