[asterisk-bugs] [JIRA] (ASTERISK-23351) realtime sip peers update fails
zvision (JIRA)
noreply at issues.asterisk.org
Wed Mar 12 04:43:19 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216415#comment-216415 ]
zvision commented on ASTERISK-23351:
------------------------------------
I run into a similar issue with res_config_odbc [here|https://issues.asterisk.org/jira/browse/ASTERISK-23459], I have created a patch for this issue.
Revieving the attached patch for res_config_pgsql I have noticed it sets all nullable columns to NULL if an empty string is found. I think a better approach
would be like in res_config_odbc, where only integer columns are set to NULL (and probably also time/date columns should be set to NULL as well).
> realtime sip peers update fails
> -------------------------------
>
> Key: ASTERISK-23351
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23351
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_config_pgsql
> Affects Versions: 12.0.0
> Environment: debian on raspberry pi
> Reporter: jmls
> Assignee: Matt Jordan
> Severity: Minor
> Attachments: patch.txt
>
>
> when using postgres with sip realtime, an update fails when a port number is '' . The actual error is below:
> [Feb 23 11:37:47] ERROR[32292] res_config_pgsql.c: PostgreSQL RealTime: Query Failed: UPDATE sippeers SET fullcontact = '', lastms = '0', useragent = '', regserver = '', regseconds = '0', port = '', ipaddr = '' WHERE name = '<name>'
> [Feb 23 11:37:47] ERROR[32292] res_config_pgsql.c: PostgreSQL RealTime: Query Failed because: ERROR: invalid input syntax for integer: ""
> LINE 1: ...nt = '', regserver = '', regseconds = '0', port = '', ipaddr...
> ^
> (PGRES_FATAL_ERROR)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list