[asterisk-dev] Variable Inheritance, Setting Channel Variables outside of current context

Rod Dorman rodd at polylogics.com
Thu May 18 09:06:59 MST 2006


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.

If  labels  are  needed it would be good to be consistent. What would be
good labels to use? Some that come to mind are:
   creator/createe
   spawner/spawnee
   forker/forkee

-- 
rodd at polylogics.com     "The avalanche has already started, it is too
Rod Dorman              late for the pebbles to vote." - Ambassador Kosh




More information about the asterisk-dev mailing list