<div dir="ltr"><div dir="ltr">On Wed, Sep 7, 2022 at 11:35 AM Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wednesday 07 September 2022 at 15:32:50, Thomas Ray wrote:<br>
<br>
> From <a href="https://wiki.asterisk.org/wiki/display/AST/Channels" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Channels</a><br>
> <br>
> "The primary exception is with Local Channels. In the case of local<br>
> channels, you'll typically have two local channel legs, one that is<br>
> treated as outbound and the other as inbound. In this case both are really<br>
> inside Asterisk, but one is executing dialplan and the other is not. The<br>
> leg executing dialplan is the one treated as inbound."<br>
> <br>
> In your case, context-00000ce9;1 is the inbound channel because you did<br>
> Dial(Local/number@context) and context-00000ce9;2 is the outbound channel<br>
> because it did the Dial to another destination. Simply, the numbers<br>
> represent each leg of a local channel.<br>
<br>
Thanks - so, which one should I pass as the parameter to ChannelRedirect() <br>
when I want to put the call on hold (and then Bridge() when I want to join it <br>
back to the other caller again)?<br></blockquote><div><br></div><div>It... depends on who you want to be affected by it. For example:</div><div><br></div><div>PJSIP/alice <---> Local;1 <----> Local;2 <---> PJSIP/bobĀ </div></div><div><br></div>If you redirect "Local;1" then PJSIP/bob is going to be impacted, because you're changing what Local;1 is doing.<div>If you redirect "Local;2" then PJSIP/alice is going to be impacted, because you're changing what Local;2 is doing.<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div>