CRM Custom Values

I am unable to use %custom% as part of my URL. I have read http://adm.hamnett.org/node/6 and followed the instruction, and each time a call comes in, the section of the url that is supposed to be the %custom% value is "ERROR_CANT_GET_VAR_FROM_ASTERISK". I have confirmed that the variable "ADM" is present in the dialplan, and is set correctly, by using noop statements and viewing the correct value returned. I have tried setting the variable as ADM, and __ADM and GLOBAL(ADM), to no avail.

I can modify the CallerID stream, and used %name% successfully, but would rather not modify that as the CallerID data can be very useful.

Can anyone steer me in the right direction for using the %custom% variable?

Thanks.

version?

What version of Asterisk????

Defining variables with Set()

Set() is used to define a variable inside an extension
Syntax

Set( < variable1 > = < value1 > [ , < variable2 > = < value2 > ] [ , < option > ] )

Setting option g makes the variable global; without it, the variable is treated as a local channel variable.

Same problem with version

Same problem with version 1.4.18 and ADM 1.3 for Windows and Linux. We get the other fields but seldom the %custom%.

On asterisk we have the code:
Set(GLOBAL(ADM)="uniqueid=${URIENCODE(${STRPTIME(${CDR(start)}|GMT|%Y-%m-%d %H:%M:%S)})}&src=${URIENCODE(${originsrc})}&dst=${URIENCODE(${origindest})}")

On linux sometimes we get the value sometimes not, for the same test conditions. In windows we never get the content of the field.

Same Problem

I have the same problem. Asterisk version 1.4.23.1

I have the same problem.

I have the same problem. Asterisk version 1.6