Hi, How do I display/log the results of variables from extenstions.conf? I've several macros, where I'd like to use ${CONTEXT} to help in GotoIf's, but I'm not convinced what value CONTEXT is being set to. I tried using NoOp(${CONTEXT}) and then set debug on for messages, but all I see is: Dec 7 16:09:25 VERBOSE[815] logger.c: -- Executing NoOp("IAX2/x.x.x.x:4569-2", "macro-call-mobile-adrian") in new stack Dec 7 16:09:25 DEBUG[815] pbx.c: Expression result is '0' Is the "'0'" the actual result? Or is the IAX2 string the actual CONTEXT name being given ? I get "0" even get this if I use ${CALLERIDNUM} to test Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061210/e9f67ced/attachment.htm
On Sun, Dec 10, 2006 at 09:10:44PM -0000, Adrian Marsh wrote:> Hi, > > > > How do I display/log the results of variables from extenstions.conf? > > > > I've several macros, where I'd like to use ${CONTEXT} to help in > GotoIf's, but I'm not convinced what value CONTEXT is being set to. > > I tried using NoOp(${CONTEXT}) and then set debug on for messages, but > all I see is: > > > > Dec 7 16:09:25 VERBOSE[815] logger.c: -- Executing > NoOp("IAX2/x.x.x.x:4569-2", "macro-call-mobile-adrian") in new stack > > Dec 7 16:09:25 DEBUG[815] pbx.c: Expression result is '0'What do you see on: show dialplan macro-call-mobile-adrian (from the Asterisk CLI) -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Ignore the DEBUG message. In the case below CONTEXT is "macro-call-mobile-adrian" Adrian Marsh wrote:> How do I display/log the results of variables from extenstions.conf? > > I've several macros, where I'd like to use ${CONTEXT} to help in > GotoIf's, but I'm not convinced what value CONTEXT is being set to. > > I tried using NoOp(${CONTEXT}) and then set debug on for messages, but > all I see is: > > Dec 7 16:09:25 VERBOSE[815] logger.c: -- Executing > NoOp("IAX2/x.x.x.x:4569-2", "macro-call-mobile-adrian") in new stack > > Dec 7 16:09:25 DEBUG[815] pbx.c: Expression result is '0' > > > > Is the "'0'" the actual result? Or is the IAX2 string the actual > CONTEXT name being given ?