[asterisk-dev] Variable Inheritance,
Setting Channel Variables outside of current context
Johansson Olle E
olle at voop.com
Thu May 18 11:33:00 MST 2006
18 maj 2006 kl. 18.06 skrev Rod Dorman:
> On Thursday, May 18, 2006, 11:24:41, Johansson Olle E wrote:
>> 18 maj 2006 kl. 16.41 skrev Peter Beckman:
>>> ...
>>> I understand inheritance better now; there are child and parent
>>> CHANNELS, and variables set in Channel A (parent) with a leading one
>>> or two underscores will be inherited by Channel B (child) when
>>> Channel A creates Channel B.
>>
>> Please don't use the phrase "parent" or "child" because there's no
>> such
>> relationship. When one channel creates another channel, we copy some
>> data to the new channel. After that, it's two channels that may
>> become bridged.
>
> But clearly there *is* a relationship at that point in time
> when the
> creation is taking place. I would agree that parent/child
> is a
> misleading nomenclature since other uses of it traditionally mean
> some
> lasting association beyond the instant of creation.
We normally talk about an inbound channel that spawns an outbound
channel.
That channel inherits data from the inbound channel and settings from
a peer configuration,
if we have one.
/O
More information about the asterisk-dev
mailing list