[asterisk-bugs] [JIRA] (ASTERISK-27572) cdr_mysql creates empty records if reconnects when mysql was not up on module load

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jan 10 11:15:39 CST 2018


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

Asterisk Team commented on ASTERISK-27572:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> cdr_mysql creates empty records if reconnects when mysql was not up on module load
> ----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27572
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27572
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/cdr_mysql
>    Affects Versions: 13.18.5, 15.1.5
>            Reporter: Tzafrir Cohen
>            Severity: Minor
>
> Setup: configure the system to use mysql as a CDR backend.
> 1. asterisk -rx 'module unload cdr_mysql.so'
> 1. Stop mysqld (or mariadb, or whatever)
> 1. asterisk -rx 'module load cdr_mysql.so'
> 1. Start mysqld
> 1. Make a call that generates a CDR.
> 1. The MySQL CDR backend will try to reconnect each time it has a record to generate and there's no existing connection.
> Expected: A normal record for the call.
> Actual: The record for the call has no field set.
> The reason for that is that when reconnecting (on mysql_log()), the content of the columns list is not created.
> Tested on branch 13 (commit 8e0f2c7379c1a39b5416878e36515b6ff97aaa9d). Code looks the same on master.



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



More information about the asterisk-bugs mailing list