Ok I have figured this one out. The issue is the variable name must be
wrapped in the ${variablename} format.
The agi show commands topic get full variable docs do not show this
format requirement. How do we get them updated so others do not get
bit by this?
On Tue, 2 Sep 2014, Matthew Jordan wrote:
The documentation generated for the wiki is pulled from the XML
documentation in the Asterisk source. To update the documentation,
modify the XML documentation (in this case in res_agi.c) and provide a
patch with the proposed change. Open an issue in issues.asterisk.org,
and attach the patch to the issue.
Is there any use case for 'get full variable' that does not need the
passed variable 'wrapped' with '${}?'
The only times I've used it are like:
agi_get_full_variable("${CALLERID(num)}", cid);
agi_get_full_variable("${SIP_HEADER(P-Charge-Info)}", pci);
If not, does it make more sense to update the documentation to document
the inconsistency with 'get variable' or does it make more sense to change
'get full variable' to be consistent with 'get variable?'
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev