thanks for your responses, I checked again and I found that I asked a wrong question! I was supposed to ask about answer time. The answer time is not getting save in the database.<br><br><div class="gmail_quote">On Tue, Mar 10, 2009 at 11:41 AM, Anthony Francis <span dir="ltr"><<a href="mailto:anthonyf@rockynet.com">anthonyf@rockynet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div><div></div><div class="h5">
Tilghman Lesher wrote:
<blockquote type="cite">
<pre>On Monday 09 March 2009 01:28:49 pm Anthony Francis wrote:
</pre>
<blockquote type="cite">
<pre>Tilghman Lesher wrote:
</pre>
<blockquote type="cite">
<pre>On Friday 06 March 2009 11:24:46 pm Hooman Peiro wrote:
</pre>
<blockquote type="cite">
<pre>hi,
I'm working with asterisk on a project and I found a problem with
cdr_odbc. As we know, after answering each call a cdr event is raised
which is saved in cdr_csv and cdr_odbc. but here my point is on
cdr_odbc. some information, including start_time and end_time is given
by cdr event but the problem is that these two information(start_time
and end_time) is not getting save in cdr_odbc. I checked the source code
and I found that by default it's not doing so. I need to query these two
information, start time and end time, from cdr_odbc and I need your
help.
thanks
</pre>
</blockquote>
<pre>You are partially incorrect. The start time is indeed stored in the CDR,
although the column name is 'calldate'. As for the end time, it can be
derived by adding 'duration' (which is in whole seconds) to the
'calldate' column.
Another solution that allows for retrieving both columns with their
native names (or completely different names, whatever you map it to) is
to use cdr_adaptive_odbc in 1.6.0 and higher.
</pre>
</blockquote>
<pre>I have often thought, wouldn't it be better if the cdr config files
allowed you to specify column names i.e.
calldate => callstart_datetime
Or whatever, the basic format being asteriskfieldname => db columnname.
Just an idea..
</pre>
</blockquote>
<pre>Which is how cdr_adaptive_odbc already works. ;-)
</pre>
</blockquote></div></div>
Yeah I haven't moved to 1.6 yet :(.<br>
</div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>