[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Display variables in logs

From: Adrian Marsh <Adrian.Marsh_at_ubiquisys.com>
Date: 2006-12-08 10:39:08 CET

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 message the actual
CONTEXT name being given ?

 

But I even get this if I use ${CALLERIDNUM}... so I think somethings
wrong...

 

Adrian
Received on Fri Dec 8 10:39:50 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.