[asterisk-bugs] [JIRA] (ASTERISK-28435) cdr_pgsql: Unix socket doesn't work

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Jun 11 08:03:47 CDT 2019


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

Friendly Automation commented on ASTERISK-28435:
------------------------------------------------

Change 11442 merged by Friendly Automation:
cdr_pgsql: fix error in connection string

[https://gerrit.asterisk.org/c/asterisk/+/11442|https://gerrit.asterisk.org/c/asterisk/+/11442]

> cdr_pgsql: Unix socket doesn't work
> -----------------------------------
>
>                 Key: ASTERISK-28435
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28435
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/cdr_pgsql
>    Affects Versions: 16.3.0
>            Reporter: Dmitry Svyatogorov
>            Assignee: Chris Savinovich
>
> After refactoring, function pgsql_reconnect() does "ast_str_set()" with statically composed string:
> {code}
> ast_str_set(&conn_info, 0, "host=%s port=%s dbname=%s user=%s"
> {code}
> It results in error while trying to connect to unix socket (empty host and port in config), so it's a regression.
> I propose the simple check:
> *<edit>*
> Editing to remove inline patch.
> Apologies, unfortunately inline patches are not allowed. Please see the patch contribution wiki [1] to learn more about contributing a patch to Asterisk, or attaching one here
> [1] https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process
> *<end edit>*
> This patch works for me. _But m.b. there is more clear way?_



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



More information about the asterisk-bugs mailing list