[asterisk-bugs] [JIRA] (ASTERISK-26170) cdr_odbc: Insertion of record fails with Postgresql

Celso Annes (JIRA) noreply at issues.asterisk.org
Tue Jul 5 06:18:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231292#comment-231292 ] 

Celso Annes commented on ASTERISK-26170:
----------------------------------------

I tried asterisk-13.7.0 and asterisk-13.9.1, both have the same problem. I don't know about other versions.

> cdr_odbc: Insertion of record fails with Postgresql
> ---------------------------------------------------
>
>                 Key: ASTERISK-26170
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26170
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/cdr_odbc
>            Reporter: Celso Annes
>            Assignee: Celso Annes
>            Severity: Minor
>
> Hi,
> I am getting the follow error when I hang up a call.
> {noformat}
> [Jul  1 16:07:59] WARNING[26140]: cdr_odbc.c:160 execute_cb: cdr_odbc: Error in ExecDirect: -1, query is: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield) VALUES ({ts '2016-07-01 16:07:56'},?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )
> [Jul  1 16:07:59] ERROR[26140]: cdr_odbc.c:189 odbc_log: CDR direct execute failed
> {noformat}
> I am using *cdr_odbc.conf* and I have used the *contrib/realtime/postgresql/postgresql_cdr.sql* to create the table.
> To solve the problem I had to add the following cell:
> {noformat}
> calldate timestamp with time zone NOT NULL DEFAULT now()
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list