<div dir="ltr">Lesson 1 in FreeSWITCH would be never think of a call as one thing.  Its always a union of 2 channels.<div><br></div><div>SIP call ID is protocol specific to SIP and is distinct per leg of a call.  FS is a b2bua so each call is 2 sip dialogs.</div><div>Unique-ID is a FS specific ID also per call leg.</div><div><span class="">Channel-C</span><span class="">all-UUID is a field that is common between both legs of a bridged call.  In the general case of an inbound leg bridging to an outbound leg, both channels will share the Channel Call ID and it will be the same as the Unique-ID of the inbound leg.</span></div><div><span class=""><br></span></div><div><span class="">You also have Channel-Bridge events which connect which 2 unique id&#39;s are currently bridged.</span></div><div><span class=""><br></span></div><div><p class=""><span class=""><br></span></p></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 10, 2014 at 5:05 AM, Israel Fink <span dir="ltr">&lt;<a href="mailto:ifink@machshevet.com" target="_blank">ifink@machshevet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div dir="ltr" style="font-family:&#39;Calibri&#39;,&#39;Arial&#39;,&#39;Segoe UI&#39;,&#39;Meiryo&#39;,&#39;Microsoft YaHei UI&#39;,&#39;Microsoft JhengHei UI&#39;,&#39;Malgun Gothic&#39;;font-size:12pt"><div>Regards my problem with the client, I already solved the problem in code.</div><div>To be clear about FS, is there any another variable that is unique for the &#39;call&#39; no matter which call leg?<br></div><span class=""><div><div><br></div><div>Israel Fink - Developer<br>Machshevet team</div><div><br></div></div></span><div style="padding-top:5px;border-top-color:rgb(229,229,229);border-top-width:1px;border-top-style:solid"><div><font face=" &#39;Calibri&#39;, &#39;Arial&#39;, &#39;Segoe UI&#39;, &#39;Meiryo&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft JhengHei UI&#39;, &#39;Malgun Gothic&#39;" style="line-height:15pt;letter-spacing:0.02em;font-family:&quot;Calibri&quot;,&quot;Arial&quot;,&quot;Segoe UI&quot;,&quot;Meiryo&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft JhengHei UI&quot;,&quot;Malgun Gothic&quot;;font-size:12pt"><b>From:</b> <a href="mailto:steveayre@gmail.com" target="_blank">Steven Ayre</a><br><b>Sent:</b> ‎Monday‎, ‎November‎ ‎10‎, ‎2014 ‎1‎:‎05‎ ‎AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a></font></div></div><div><div class="h5"><div><br></div><div dir=""><div dir="ltr">sip_call_id is the Call-ID header of the SIP packet. It will usually be different for the A-leg and B-leg of the call. However once in a call it identifies the call and *must* stay the same. If you are seeing it change then you&#39;re either looking at different legs of the call.</div><div class="gmail_extra"><br><div class="gmail_quote">On 9 November 2014 10:33, Israel Fink <span dir="ltr">&lt;<a href="mailto:ifink@machshevet.com" target="_blank">ifink@machshevet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">




<div dir="ltr">
<div style="font-family:&quot;Calibri&quot;,&quot;Arial&quot;,&quot;Segoe UI&quot;,&quot;Meiryo&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft JhengHei UI&quot;,&quot;Malgun Gothic&quot;;font-size:12pt" dir="ltr">

<div>Thanks for your clear answer.</div><div>But I find thinks a bit different. we do collect the FS events during ESL mod event_socket, and find that the Unique-ID changes by channel.</div><div>What I try to do is, we have a FS server, each call comes in via the server, there were made some logic like answer, greeting etc. and also saving the call in DB. from there it goes to a client extension to get the call, speak, hang up etc. when it comes to the client I need to know which call it is in the server and in the DB. </div><div>The only variable the client gets from the server is sip_call_id, and now after your explanation I understand why, since this is outbound.</div><div>My problem is that this variable also changes when bridging, it begins with one value then when bridging it changes to another value. the client gets the second value after bridging, and I cannot find this new value in early events like &#39;CHANNEL_CREATE&#39; or &#39;CHANNEL_ORIGINATE&#39;, it  only appears in later events like &#39;CHANNEL_PROGRESS&#39; when the client already ringing, and this is a bit late.</div><div>In short, I need a unique variable to can recognize the incoming call to the client with the incoming call to the server.</div><span><div><br></div><div><div>Israel Fink - Developer<br>Machshevet team</div><div><br></div></div></span><div style="padding-top:5px;border-top-color:rgb(229,229,229);border-top-width:1px;border-top-style:solid"><div><font face=" &#39;Calibri&#39;, &#39;Arial&#39;, &#39;Segoe UI&#39;, &#39;Meiryo&#39;, &#39;Microsoft YaHei UI&#39;, &#39;Microsoft JhengHei UI&#39;, &#39;Malgun Gothic&#39;" style="line-height:15pt;letter-spacing:0.02em;font-family:&quot;Calibri&quot;,&quot;Arial&quot;,&quot;Segoe UI&quot;,&quot;Meiryo&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft JhengHei UI&quot;,&quot;Malgun Gothic&quot;;font-size:12pt"><b>From:</b> <a href="mailto:brian@freeswitch.org" target="_blank">Brian West</a><br><b>Sent:</b> ‎Friday‎, ‎November‎ ‎7‎, ‎2014 ‎12‎:‎23‎ ‎AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a></font></div></div><div><div><div><br></div><div dir=""><div dir="ltr">1. Unique-ID is the session UUID, this won&#39;t change at all during the session (aka call).<div><br></div><div>2. Channel-Call-UUID is either the same as Unique-ID or the Unique-ID of the session you&#39;re bridged to by looking at the source code.</div><div><br></div><div>3. sip_call_id will be the sip call_id of an inbound/outbound SIP call, More than likely the outbound would match Unique-ID and on inbound it would be what ever the remote party sets/sends.</div><div><br></div><div>The bigger question is what exactly are you trying to solve/understand?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 7:52 AM, Israel Fink <span dir="ltr">&lt;<a href="mailto:ifink@machshevet.com" target="_blank">ifink@machshevet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">




<div dir="ltr">
<div style="font-family:&quot;Calibri&quot;,&quot;Arial&quot;,&quot;Segoe UI&quot;,&quot;Meiryo&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft JhengHei UI&quot;,&quot;Malgun Gothic&quot;;font-size:12pt" dir="ltr">
<div><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">I&#39;m a bit confusing about the channel variables that represent the call ID.</p><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">I find that there are three variables, 1) Unique-ID 2) Channel-Call-UUID 3) variable_sip_call_id, what is the different between this.</p><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">The value of Channel-Call-UUID seems to be stable during the entire call, the value of Unique-ID in the begin it is the same as Channel-Call-UUID but when bridging it changes it value to another ID, then it comes back to the beginning value, i.m not clear when and why.</p><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">The variable variable_sip_call_id many time don&#39;t have any value, and also it changes the value when bridging and then comes back to the previous value.</p><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">I have looked for an explanation in FreeSWITCH wiki, but don&#39;t find.</p><p style="background:rgb(255,255,255);font:14px/17.8px Arial,&quot;Liberation Sans&quot;,&quot;DejaVu Sans&quot;,sans-serif;margin:0px 0px 1em;padding:0px;border:0px black;text-align:left;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;clear:both;word-spacing:0px;vertical-align:baseline;white-space:normal;font-size-adjust:none;font-stretch:normal">In the mailing list a have found an explanation here: <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2013-August/099035.html%2c" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2013-August/099035.html,</a> but still not enough.<br>Can someone give a good explanation about this variables,what is their purpose, and so on.</p><br></div><div><div><br></div><div>Israel Fink - Developer<br>Machshevet team</div><div><br></div></div>


</div>
</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font face="courier new, monospace" size="1"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>
</div>





</div></div></div>
</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></div></div>
</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div></div></div>
</div>