On Thursday 23 July 2009 02:05:38 DHAVAL INDRODIYA
wrote:> Dear All,
>
> i need help on Shared channel variable
>
> can any body have example of SHARED function which implemented in 1.6
> version
It's actually fairly simple. On each channel, there is a space accessible
for
other channels to write:
Set(SHARED(foo,SIP/123)=456)
or retrieve:
${SHARED(foo,SIP/123)}
The primary reason for having this space is writing out to another channel,
since you can already import variables (and functions) from another channel,
with the IMPORT function:
${IMPORT(SIP/123,CALLERID(name))}
Just remember that this is a _special_ variable space and not the main
variable space, so that other channels cannot mess with your execution
except when you explicitly want them to be able to do so.
--
Tilghman & Teryl
with Peter, Cottontail, Midnight, Thumper, & Johnny (bunnies)
and Harry, BB, & George (dogs)