<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5626" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=711394420-04102008><FONT face=Arial
color=#0000ff size=2>what do you mean by look at the cdr? </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=711394420-04102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=711394420-04102008><FONT face=Arial
color=#0000ff size=2>I checked these 2 wiki pages bu tthey provide only SOME of
the fields not all... </FONT>
<DIV> </DIV>
<DIV><A title=http://wiki.freeswitch.org/wiki/Mod_xml_cdr
href="BLOCKED::http://wiki.freeswitch.org/wiki/Mod_xml_cdr"><FONT face=Arial
size=2>http://wiki.freeswitch.org/wiki/Mod_xml_cdr</FONT></A></DIV>
<DIV><A title=http://wiki.freeswitch.org/wiki/Mod_cdr_csv
href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv"><FONT face=Arial
size=2>http://wiki.freeswitch.org/wiki/Mod_cdr_csv</FONT></A></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=711394420-04102008><FONT face=Arial color=#0000ff size=2>I also
checked the API section but couldn't find it...</FONT></SPAN></DIV></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=711394420-04102008></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>V<SPAN
class=711394420-04102008>ito</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <B>On Behalf Of
</B>Michael Jerris<BR><B>Sent:</B> Saturday, October 04, 2008 6:55
AM<BR><B>To:</B> freeswitch-users@lists.freeswitch.org<BR><B>Subject:</B> Re:
[Freeswitch-users] Process_cdr question<BR></FONT><BR></DIV>
<DIV></DIV><BR>
<DIV>
<DIV>On Oct 4, 2008, at 8:22 AM, Vito Andolini wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2>Let's say I am programatically initiating two calls and then bridging
them together. If I have the dialplan as </FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008></SPAN><SPAN
class=071011512-04102008><FONT face=Arial color=#0000ff size=2><FONT
color=#000000 size=3><FONT color=#0000ff size=2><STRONG>originate <A
href="mailto:sofia/example/300@foo.com">sofia/example/300@foo.com</A>
&bridge(</STRONG><A
href="mailto:sofia/example/400@bar.com"><STRONG>sofia/example/400@bar.com</STRONG></A><STRONG>)
</STRONG></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>and have the
<STRONG>process_cdr</STRONG> set to "<STRONG>true</STRONG>" which is the
default.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>I'd like to know
how both cdr would look like...</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>Obviously the "b"
leg will be logged starting right after "400" have answered the call... Which
is fine....</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>Now would the "a"
leg be logged starting right after its bridged to the "b" OR right after it
picks up the call (even though "b" is being called or ringing at that
moment)</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>The answer is
important, because I am using VOIP for both calls, and the voip starts
charging me soon as "a" picks up the phone, so i am wondering if I am able to
get the same record into my cdr to process it or do I have to run some
sort of magic?</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2>Thanks,</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff
size=2></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=071011512-04102008><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3><FONT color=#0000ff size=2>Vito
A.</FONT></FONT></FONT></SPAN></DIV><FONT face=Arial color=#0000ff
size=2><FONT color=#000000 size=3>
<DIV><BR></DIV></FONT></FONT></DIV></BLOCKQUOTE><BR></DIV>
<DIV>Why don't you look at the cdr and see? There are multiple fields in
the cdr to represent when the session was created (INVITE), when it was answered
(200) and when it hangs up (BYE). You get this timetable for each
leg.</DIV>
<DIV><BR></DIV>
<DIV>Mike</DIV>
<P><FONT face=Arial size=2>No virus found in this incoming message.<BR>Checked
by AVG - http://www.avg.com<BR>Version: 8.0.173 / Virus Database: 270.7.5/1705 -
Release Date: 10/3/2008 6:17 PM<BR></FONT></P>
<P><FONT face=Arial size=2></FONT></P></BODY></HTML>