Tony, <br><br>Thanks for clearing this up, I was curious about the distinction myself. <br><br><div><span class="gmail_quote">On 8/31/06, <b class="gmail_sendername">Anthony Minessale</b> &lt;<a href="mailto:anthmct@yahoo.com">
anthmct@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div></div>
<div>Essentially the session is the high level entity that represents an outside connection and the channel is an </div>
<div>object inside the&nbsp;session that is a collection of the&nbsp;higher level components of the call.</div>
<div>&nbsp;</div>
<div>see <a href="http://www.freeswitch.org/docs/structswitch__core__session.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeswitch.org/docs/structswitch__core__session.html</a>
</div>
<div>&nbsp;</div>
<div>At this point channel is just a struct inside session that shows you things you are allowed to safely play with.</div>
<div>&nbsp;</div>
<div>Think of it like C++ as if channel is a class based on session as a base class.</div>
<div>&nbsp;</div>
<div>The switch_channel.c api has no idea what a session is and the core_session api has no idea what a channel is they</div>
<div>only know they have an opaque pointer&nbsp;to each other to use api calls on when the time comes.</div>
<div>&nbsp;</div>
<div>The session&nbsp;contains all the low level things like access to memory pools and the I/O routines where the channel</div>
<div>has things like&nbsp;channel variables and is the main entitiy that travels in the state machine and passes messages and dtmf around.</div>
<div>&nbsp;</div>
<div>So the short answer is that it's purely asthetic for the sake of&nbsp;a clean&nbsp;API.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.cluecon.com/</a><br><br>AIM: anthm<br><a href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MSN:anthony_minessale@hotmail.com</a><br>JABBER:<a href="mailto:anthony.minessale@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
anthony.minessale@gmail.com</a><br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip:888@66.250.68.194" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sip:888@66.250.68.194</a><br>iax:guest@66.250.68.194
/888<br><a href="mailto:googletalk:freeswitch@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">googletalk:freeswitch@gmail.com</a><br>pstn:712-432-7800
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><br><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"></div><div><span class="e" id="q_10d63f51d4d90a86_1">----- Original Message ----<br>From: will &lt;<a href="mailto:will@camangi.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
will@camangi.com</a>&gt;<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">freeswitch-users@lists.freeswitch.org</a><br>Sent: Wednesday, August 30, 2006 3:35:07 AM
<br>Subject: [Freeswitch-users] What's differents with &quot;session&quot; and &quot;channel&quot;?<br><br>


<div>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">I am confused "session" with "channel" in FreeSwitch.</span></font></p>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">A channel is a connection which brings in a call to the FreeSwitch.</span></font><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">
 </span></font></p>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Once a call is established, it is named "session". </span></font></p>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">So multi session could exist in one channel, am I right? </span></font></p>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&nbsp;</span></font></p>
<p><font face="Verdana" size="1"><span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Will</span></font></p></div></span></div><div><span class="q">
<div>_______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Freeswitch-users@lists.freeswitch.org
</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:
<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.freeswitch.org</a></div></span></div><div></div><br></div></div></div>
</div><br>_______________________________________________<br>Freeswitch-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.freeswitch.org" target="_blank">
http://www.freeswitch.org</a><br><br><br></blockquote></div><br>