<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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&nbsp;the dialplan as </font></span></div> <div><span class="071011512-04102008"></span>&nbsp;</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> &amp;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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;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>&nbsp;</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>&nbsp;</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? &nbsp;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). &nbsp;You get this timetable for each leg.</div><div><br></div><div>Mike</div></body></html>