Accessing Global Variables from CLI or Manager Interface?

I need to read the value of a Global Asterisk Variable from an external PHP application that connects to Astrisk via Manager Interface.

It appears to me that there is no way to do this without patching Asterisk, or am I missing something?

Pollyx
voip-manager.net

Well I don’t think you can read global vars with GetVar() but you can use a workaround by duplicating the global var to a channel var in your dialplan. I know it is overhead but it is a workaround. I thought that GetVarFull was suppose to be able to read global vars but I couldn’t get it to work.

Set(CHANNELVAR=${GLOBALVAR})

and then just read the channel var.