How-to verify value of variable via asterisk cmdline?

A search on the internet did not provide the solution but maybe it is possible…

Can I check the value of CALENDAR via the commandline (or via another method)?

exten => s,1,Set(CALENDAR=${CALENDAR_BUSY(Open)})

Would like to check if this is 1 or 0 because a bit further in the dailplan this is being used

GotoIf($[“${CALENDAR}” = “1”]?

Thanks in advance

If you are hooking custom dialplan into some of your calls you can just output the variable in the call logs.

exten => s,n,Noop(${CALENDAR})

I’ll give that a try. Thanks for this help.

core show channel NAME OR UNIQUEID OF CHANNEL

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.