<p>Aleksandr Revin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6486">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">FIX: apply cdrzone to start and answer<br><br>Change-Id: I7de0a5adc89824a5f2b696fc22c80fc22dff36b0<br>---<br>M addons/cdr_mysql.c<br>1 file changed, 4 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/86/6486/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/addons/cdr_mysql.c b/addons/cdr_mysql.c<br>index 26e8389..1032426 100644<br>--- a/addons/cdr_mysql.c<br>+++ b/addons/cdr_mysql.c<br>@@ -260,9 +260,7 @@<br>                   /* Need the type and value to determine if we want the raw value or not */<br>                    if (entry->staticvalue) {<br>                          value = ast_strdupa(entry->staticvalue);<br>-                  } else if ((!strcmp(cdrname, "answer") ||<br>-                           !strcmp(cdrname, "end") ||<br>-                                 !strcmp(cdrname, "disposition") ||<br>+                        } else if ((!strcmp(cdrname, "disposition") ||<br>                               !strcmp(cdrname, "amaflags")) &&<br>                           (strstr(entry->type, "int") ||<br>                            strstr(entry->type, "dec") ||<br>@@ -272,7 +270,8 @@<br>                               strstr(entry->type, "numeric") ||<br>                                strstr(entry->type, "fixed"))) {<br>                                ast_cdr_format_var(cdr, cdrname, &value, workspace, sizeof(workspace), 1);<br>-                       } else if (!strcmp(cdrname, "start")) {<br>+                    } else if (!strcmp(cdrname, "start") || !strcmp(cdrname, "answer") ||<br>+                             !strcmp(cdrname, "end")) {<br>                                 struct ast_tm tm;<br>                             char timestr[128];<br>                            ast_localtime(&cdr->start, &tm, ast_str_strlen(cdrzone) ? ast_str_buffer(cdrzone) : NULL);<br>@@ -366,7 +365,7 @@<br> }<br> <br> static int my_unload_module(int reload)<br>-{ <br>+{<br>  struct column *entry;<br> <br>      ast_cli_unregister_multiple(cdr_mysql_status_cli, sizeof(cdr_mysql_status_cli) / sizeof(struct ast_cli_entry));<br>@@ -722,4 +721,3 @@<br>  .unload = unload_module,<br>      .reload = reload,<br> );<br>-<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6486">change 6486</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6486"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 14 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7de0a5adc89824a5f2b696fc22c80fc22dff36b0 </div>
<div style="display:none"> Gerrit-Change-Number: 6486 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Aleksandr Revin <alexandr.revin@gmail.com> </div>