[asterisk-dev] [feature request] Enabling usegmtime for pgsql cdr driver.
Miguel Molina
mmolina at millenium.com.co
Sat Oct 9 09:50:14 CDT 2010
El 08/10/10 09:43, Басов Евгений escribió:
> Hello.
>
> 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:
>
> 1. cdr/cdr_csv.c
>
> ast_localtime(&when, &tm, usegmtime ? "GMT" : NULL);
>
>
> 2. cdr/cdr_odbc.c
>
> ast_localtime(&cdr->start, &tm, ast_test_flag(&config,
> CONFIG_USEGMTIME) ? "GMT" : NULL);
>
>
> 3. cdr/cdr_pgsql.c
>
>
> ast_localtime(&cdr->start, &tm, NULL);
>
> …
>
> ast_localtime(&cdr->start, &tm, NULL);
>
> …
>
> ast_localtime(&cdr->end, &tm, NULL);
>
>
> So we can see that usegmtime is disabled in sources pgsql.c.
>
>
> May anyone developer enable this feature in the next relace of asterisk?
>
> Basov Evgeny.
>
Hi,
If you know the changes that need to be done in the cdr_pgsql.c code,
please make a patch and file it in http://issues.asterisk.org 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.
Regards,
--
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101009/a65da72a/attachment-0001.htm
More information about the asterisk-dev
mailing list