<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01CAFF1C.72336B20">
<link rel=Edit-Time-Data href="cid:editdata.mso@01CAFF1C.72336B20">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="time"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="date"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:12.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none;
        text-underline:none;
        text-decoration:none;
        text-line-through:none;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoPlainText><font size=3 face="Courier New"><span style='font-size:
12.0pt'>Michael,<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 color=blue face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Courier New"><span style='font-size:
12.0pt'>I agree to do the accounting work somewhere else.<span
style='mso-spacerun:yes'>&nbsp; </span>But I am really just trying to determine
which leg hung up on the bridge when I do<o:p></o:p></span></font></p>

<p class=MsoPlainText><span class=SpellE><span class=GramE><font size=3
face="Courier New"><span style='font-size:12.0pt'>session:</span></font></span>execute</span>(&quot;bridge&quot;,&quot;{route=sofia/gateway/US/15555551212}
sofia/gateway/US/15555551212&quot;)<o:p></o:p></p>

<p class=MsoPlainText><font size=3 face="Courier New"><span style='font-size:
12.0pt'>I am trying to get the <span class=SpellE>sip_hangup_disposition</span>
from both legs. <span style='mso-spacerun:yes'>&nbsp;</span>The <span class=GramE>variables
for both legs is</span> not in the &#8216;info&#8217; output available after
the bridge ends.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Courier New"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Courier New"><span style='font-size:
12.0pt'>Is there another way to get this same information if I do the bridge as
listed?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Michael Collins<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><st1:date
Month="5" Day="28" Year="2010"><font size=2 face=Tahoma><span style='font-size:
 10.0pt;font-family:Tahoma'>Friday, May 28, 2010</span></font></st1:date><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><st1:time
Hour="23" Minute="57"><font size=2 face=Tahoma><span style='font-size:10.0pt;
 font-family:Tahoma'>11:57 PM</span></font></st1:time><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
how to get session of bridged Bleg</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On </span></font><st1:date Month="5" Day="28"
Year="2010">Fri, May 28, 2010</st1:date> at <st1:time Hour="20" Minute="19">8:19
 PM</st1:time>, Henry Huang &lt;<a href="mailto:b_ball_henry@hotmail.com">b_ball_henry@hotmail.com</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Anthony:<br>
<br>
Can you kindly describe why is it not a good practice to do accounting in the
script? And what's the major benefit for doing accounting from a separate
system?<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>&quot;Separation of concerns.&quot; The
PBX/soft-switch is designed to connect calls and it does a great job of that.
It also does a great job of producing raw information from which a proper
database application can do billing. Mixing the two has, at best, marginal
benefits, but it can cause many troubles. Having the billing app/db in a
separate process (preferably on a completely separate system) makes it more
robust, more scalable, easier to maintain and easier to troubleshoot. Those
rewards are well worth the relatively small effort that is required to build
the billing system separately.<br>
<br>
-MC<br>
&nbsp;<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;mso-border-left-alt:
solid #CCCCCC .5pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:
0in'>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Henry<font color=black><span style='color:black'><o:p></o:p></span></font></span></font></p>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=1 color=gray face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:gray'>Chat</span></font><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black'> <img border=0 width=16 height=16 id="_x0000_i1025" src="%20"
style='padding-right:5px;vertical-align:middle'></span></font><b><font size=1
color=gray face=Arial><span style='font-size:9.0pt;font-family:Arial;
color:gray;font-weight:bold'>Skype: </span></font></b><font size=1 color=black
face=Arial><span style='font-size:8.0pt;font-family:Arial;color:black'>unicsolution
<img border=0 width=16 height=16 id="_x0000_i1026" src="%20" style='padding-right:
5px;vertical-align:middle'></span></font><b><font size=1 color=gray face=Arial><span
style='font-size:9.0pt;font-family:Arial;color:gray;font-weight:bold'>MSN: </span></font></b><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black'><a href="mailto:b_ball_henry@hotmail.com" target="_blank">b_ball_henry@hotmail.com</a><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=1 color=gray face=Arial><span
style='font-size:8.0pt;font-family:Arial;color:gray'>Contact Me</span></font><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black'> <a href="http://www.linkedin.com/pub/henry-huang/1/654/578"
target="_blank"><font size=2><span style='font-size:10.0pt;text-decoration:
none;text-underline:none'><img border=0 width=16 height=16 id="_x0000_i1027"
src="%20" style='padding-bottom:5px;vertical-align:middle' alt=Linkedin></span></font></a><a
href="http://www.facebook.com/profile.php?id=595148342" target="_blank"><font
size=2><span style='font-size:10.0pt;text-decoration:none;text-underline:none'><img
border=0 width=16 height=16 id="_x0000_i1028" src="%20" style='padding-bottom:
5px;vertical-align:middle' alt=Facebook></span></font></a><a
href="http://twitter.com/unicsolution" target="_blank"><font size=2><span
style='font-size:10.0pt;text-decoration:none;text-underline:none'><img
border=0 width=16 height=16 id="_x0000_i1029" src="%20" style='padding-bottom:
5px;vertical-align:middle' alt=Twitter></span></font></a><o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On </span></font><st1:date Month="5" Day="29"
Year="2010">Sat, May 29, 2010</st1:date> at <st1:time Hour="3" Minute="41">3:41
 AM</st1:time>, Anthony Minessale &lt;<a
href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>you can't, at least the way you are trying.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>you should not be doing accounting in your script,
rather, you should make a separate system to process<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>call data.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On </span></font><st1:date Month="5" Day="28"
Year="2010">Fri, May 28, 2010</st1:date> at <st1:time Hour="12" Minute="43">12:43
 PM</st1:time>, Frank @ Impact &lt;<a href="mailto:frank@impactfax.com"
target="_blank">frank@impactfax.com</a>&gt; wrote:<o:p></o:p></p>

</div>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;mso-border-left-alt:
solid #CCCCCC .5pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:
0in'>

<div>

<div>

<div link=blue vlink=purple>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>FreeSWITCH Version 1.0.head (git-) from </span></font><st1:date
Month="5" Day="28" Year="2010"><font face=Arial><span style='font-family:Arial'>5/28/10</span></font></st1:date><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>I have a lua script called from the dialplan that bridges
the call with </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>session:execute(&quot;bridge&quot;,&quot;{route=sofia/gateway/US/15555551212}
sofia/gateway/US/15555551212&quot;)</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>after the call ends, I am trying to get some variables out
of the Bleg session, the bridged leg. &nbsp;But I do not have a session handle
to get the variables.&nbsp; I know what the uuid is from global
variable_bridge_uuid.&nbsp; But how can I get the session of the B-leg so that
I can do a getVariable()?&nbsp; The variables I want are not available in any
of the global variables I can see with info.</span></font><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>_______________________________________________<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><o:p></o:p></span></font></p>

</blockquote>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com"
target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
#freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org"
target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><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><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
<br clear=all>
<br>
<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><o:p></o:p></span></font></p>

</blockquote>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>