<div dir="ltr"><div dir="ltr">On Wed, Sep 7, 2022 at 11:17 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 11:44:54, Antony Stone wrote:<br>
<br>
> Hi.<br>
<br>
This is a follow-up to an email I posted earlier today to the list, although I <br>
haven't seen it come back yet. If it's under moderation for some reason, I <br>
hope some kindly admin will release it :)<br></blockquote><div><br></div><div>There's nothing in the moderator queue that I can see.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> I'm trying to deal with a problem regarding putting a call on hold and then<br>
> later resuming it. I am using chan_sip throughout, and Asterisk 16.<br>
<br>
<snip detail from previous email><br>
<br>
> The main thing which is puzzling me about this is that I see examples of<br>
> both Local/number@context-00000ce9;1 and Local/number@context-00000ce9;2<br>
> during the processing of the calls.<br>
> <br>
> What is the significance of the number following the semi-colon?<br>
> <br>
> I also see in verbose logging output:<br>
> <br>
> [2022-09-07 09:37:57.310706] pbx VERBOSE[29148]: dial.c:598 in<br>
> handle_frame: Local/number@context-00000ce9;1 answered<br>
> <br>
> [2022-09-07 09:37:57.310792] pbx VERBOSE[29155][C-00001265]:<br>
> bridge_channel.c:2252 in bridge_channel_internal_push_full: Channel<br>
> SIP/Trunkname-00002b55 joined 'simple_bridge' basic-bridge <7e260e93-<br>
> abd4-48ea-96f1-33601165dba2><br>
> <br>
> [2022-09-07 09:37:57.310937] pbx VERBOSE[29149][C-00001265]:<br>
> bridge_channel.c:2252 in bridge_channel_internal_push_full: Channel<br>
> Local/number@context-00000ce9;2 joined 'simple_bridge' basic-bridge<br>
> <7e260e93- abd4-48ea-96f1-33601165dba2><br>
> <br>
> <br>
> So, when the channel Local/number@context-00000ce9;1 gets answered, the<br>
> result is to bridge the channels Local/number@context-00000ce9;2 and<br>
> SIP/Trunkname-00002b55<br>
<br>
I see something very similar in the documentation about local channels at <br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Using+Callfiles+and+Local+Channels" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Using+Callfiles+and+Local+Channels</a> - <br>
there are examples of both devices-ecf0;1 and devices-ecf0;2 but no mention of <br>
what the final digit means.<br>
<br>
Can anyone enlighten me please?<br></blockquote><div><br></div><div>A single channel can't do two things at once (you can't have a channel talking to Alice while also executing the Voicemail dialplan application for example) - so Local channels solve this by having two independent channels that exchange things back and forth internally. The ;2 leg is the one that gets sent into the dialplan, while the ;1 leg is doing whatever dialed it decides to do with it. If you send audio to ;1 it then pops out of ;2, and vice versa.</div></div><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>