[asterisk-dev] Reverse Inheritance

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Nov 13 09:23:31 CST 2008

On Thursday 13 November 2008 03:19:11 Trevor Peirce wrote:
> Atis Lezdins wrote:
> > I'm not very much insisting, however as i recall - main argument for
> > introducing SHARED() function was that those variables could change at
> > any time, so users must take extra care when accessing their value.
> > With + or ^ it would be the same - you modify variable in child
> > channel with special prefix, but access in parent channel as regular
> > variable which shouldn't be used in loop statement etc directly, but
> > copied first.
> This certainly would be cleaner than using variable name prefixes. Using
> a function certainly has my vote now that you mention it!

The only issue with using the SHARED() dialplan variable is that you have to
know the name of the original channel before you can set its SHARED()


More information about the asterisk-dev mailing list