<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
El 08/10/10 09:43, Басов Евгений escribió:
<blockquote cite="mid:4CAF2E2A.5060503@yandex.ru" type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hello.<br>
<br>
I'm using asterisk-1.6.2.13 with pgsql-backend for CDR. For [odbc] and
[csv] works usegmtime option but for [pgsql] it not. In source files I
find strings:<br>
<br>
1. cdr/cdr_csv.c<br>
<br>
ast_localtime(&when, &tm, usegmtime ? "GMT" : NULL);<br>
<br>
<br>
2. cdr/cdr_odbc.c<br>
<br>
ast_localtime(&cdr->start, &tm, ast_test_flag(&config,
CONFIG_USEGMTIME) ? "GMT" : NULL);<br>
<br>
<br>
3. cdr/cdr_pgsql.c<br>
<br>
<br>
ast_localtime(&cdr->start, &tm, NULL);<br>
<br>
…<br>
<br>
ast_localtime(&cdr->start, &tm, NULL);<br>
<br>
…<br>
<br>
ast_localtime(&cdr->end, &tm, NULL);<br>
<br>
<br>
So we can see that usegmtime is disabled in sources pgsql.c. <br>
<br>
<br>
May anyone developer enable this feature in the next relace of asterisk?<br>
<br>
<blockquote>
<blockquote>Basov Evgeny.<br>
</blockquote>
</blockquote>
</blockquote>
Hi,<br>
<br>
If you know the changes that need to be done in the cdr_pgsql.c code,
please make a patch and file it in <a class="moz-txt-link-freetext" href="http://issues.asterisk.org">http://issues.asterisk.org</a> as a
feature request issue. This way Digium ensures that the source code you
contribute is OK with all license legalities. Remember to make the
patch against trunk, otherwise your patch won't be reviewed or accepted.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
</pre>
</body>
</html>