SHARED(variablenname
[,channel
])
| | | | | 1.6 |————————
-= Info about function 'SHARED' =-
[Syntax]
SHARED(<varname>[,<channel>])
[Synopsis]
Gets or sets the shared variable specified
[Description]
Implements a shared variable area, in which you may share variables between
channels. If channel is unspecified, defaults to the current channel. Note
that the channel name may be the complete name (i.e. SIP/12-abcd1234) or the
prefix only (i.e. SIP/12).
The variables used in this space are separate from the general namespace of
the channel and thus ${SHARED(foo)} and ${foo} represent two completely
different variables, despite sharing the same name.
Finally, realize that there is an inherent race between channels operating
at the same time, fiddling with each others' internal variables, which is why
this special variable namespace exists; it is to remind you that variables in
the SHARED namespace may change at any time, without warning. You should
therefore take special care to ensure that when using the SHARED namespace,
you retrieve the variable and store it in a regular channel variable before
using it in a set of calculations (or you might be surprised by the result).
AGC()
AGENT()
ARRAY()
AST_CONFIG()
BASE64_DECODE()
BASE64_ENCODE()
BLACKLIST()
CALLERID()
CALLERPRES()
CDR()
CHANNEL()
CHANNELS()
CHECK_MD5()
CHECKSIPDOMAIN()
CURL()
CUT()
DB()
DB_DELETE()
DB_EXISTS()
DENOISE()
DEVICE_STATE()
DIALGROUP()
DIALPLAN_EXISTS()
DUNDILOOKUP()
DUNDIQUERY()
DUNDIRESULT()
ENUMLOOKUP()
ENUMQUERY()
ENUMRESULT()
ENV()
EVAL()
EXCEPTION()
EXISTS()
EXTENSION_STATE()
FIELDQTY()
FILE()
FILTER()
GLOBAL()
GROUP()
GROUP_COUNT()
GROUP_LIST()
GROUP_MATCH_COUNT()
HASH()
HASHKEYS()
HINT()
IAXPEER()
IAXVAR()
ICONV()
IF()
IFMODULE()
IFTIME()
IMPORT()
ISNULL()
JABBER_STATUS()
KEYPADHASH()
LANGUAGE()
LEN()
LOCAL()
LOCK()
MAILBOX_EXISTS()
MATH()
MD5()
MEETME_INFO()
MINIVMACCOUNT()
MINIVMCOUNTER()
MUSICCLASS()
ODBC_ANTIGF()
ODBC_FETCH()
ODBC_funktionsname
()
ODBC_PRESENCE()
ODBC_SQL()
QUEUE_MEMBER()
QUEUE_MEMBER_COUNT()
QUEUE_MEMBER_LIST()
QUEUE_MEMBER_PENALTY()
QUEUE_VARIABLES()
QUEUE_WAITING_COUNT()
QUEUEAGENTCOUNT()
QUOTE()
RAND()
REALTIME()
REALTIME_DESTROY()
REALTIME_STORE()
REGEX()
SET()
SHA1()
SHARED()
SHELL()
SIP_HEADER()
SIPCHANINFO()
SIPPEER()
SMDI_MSG()
SMDI_MSG_RETRIEVE()
SORT()
SPRINTF()
SQL_ESC()
STAT()
STRFTIME()
STRPTIME()
SYSINFO()
TIMEOUT()
TOLOWER()
TOUPPER()
TRYLOCK()
TXTCIDNAME()
UNLOCK()
URIDECODE()
URIENCODE()
VALID_EXTEN()
VERSION()
VMCOUNT()
VOLUME()