Descrição: Implements a shared variable area, in which you may share variables between canais.
The variables used in this space are separate from the general namespace of the canal 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 canais 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 canal variable before using it in a set of calculations (or you might be surprised by the result).
SHARED(varname,canal)
varname - Variable name canal - If not specified will default to current canal. It is the complete canal name: 'SIP/12-abcd1234' or the prefix only 'SIP/12'.
This documentation was generated from Asterisk branch 21 using version GIT
Sintaxe:
SHARED(varname,channel)
Fonte: Asterisk Wiki
POR QUE A LOJAMUNDI É CONFIÁVEL?
ENTRE EM CONTATO COM A LOJAMUNDI.
Assine nossa Newsletter! É gratuito!
Cadastre seu nome e email para receber novidades e materiais gratuitos da Lojamundi.