A perfectly valid usage of this would be for a parent channel (an A-Leg) to know the call id's of the child channels (B-Leg) so that all call id's could be recorded for an A-Leg.<br><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 7:47 PM, Vadim Lebedev <span dir="ltr"><<a href="mailto:vadim@mbdsys.com">vadim@mbdsys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I understand the forward inheritance - a var defined for a channel<br>
will be inherited by a child channel(s)<br>
so reverse inheritance would be a var defined in the channel will be<br>
inherited by a parent channel(s) right?<br>
<br>
What will happend if tow sibling channels define the same +var?<br>
<br>
Actually what could be a usage for reverse inheritance?<br>
<br>
Thanks<br>
Vadim<br>
<br>
<br>
<br>
Le 11 nov. 08 à 01:11, Tilghman Lesher a écrit :<br>
<div><div></div><div class="Wj3C7c"><br>
> During a review of one of the bugs on the bugtracker (13140), I<br>
> found that<br>
> somebody had implemented what is essentially a reverse-inheritance<br>
> on a<br>
> variable. What occurs to me is that if one person wants it, perhaps<br>
> it would<br>
> be wise to implement it in a general way, so that others may also<br>
> benefit from<br>
> that behavior.<br>
><br>
> This brings up two questions in my mind. First, what are the<br>
> safeguards that<br>
> we must abide by to ensure that nothing unsafe happens? For one<br>
> thing, I<br>
> think it would be sensible to ensure that variables can only be set,<br>
> not<br>
> overwritten with this method. Can anybody think of other possible<br>
> problems<br>
> with implementing reverse inheritance?<br>
><br>
> Second, how should variables be denoted? I have discussed this with<br>
> Jared<br>
> Smith, and we both agreed that using '+' in place of '_', where '_'<br>
> means<br>
> forward inheritance and '+' means reverse inheritance would be<br>
> appropriate.<br>
> Doubling either symbol would denote infinite inheritance in that<br>
> particular<br>
> direction. Is there any further discussion of this use, or is the<br>
> usage<br>
> of '+' an acceptable symbol?<br>
><br>
> --<br>
> Tilghman<br>
><br>
> _______________________________________________<br>
> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
><br>
> asterisk-dev mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
><br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
<br>
</div></div></blockquote></div><br>