<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6518">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cdr_mysql.c: Apply cdrzone to start and answer<br><br>Change-Id: I7de0a5adc89824a5f2b696fc22c80fc22dff36b0<br>---<br>M addons/cdr_mysql.c<br>1 file changed, 4 insertions(+), 5 deletions(-)<br><br></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 70dab1a..b8d9ce3 100644<br>--- a/addons/cdr_mysql.c<br>+++ b/addons/cdr_mysql.c<br>@@ -265,9 +265,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>@@ -277,7 +275,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>@@ -371,7 +370,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></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6518">change 6518</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/6518"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I7de0a5adc89824a5f2b696fc22c80fc22dff36b0 </div>
<div style="display:none"> Gerrit-Change-Number: 6518 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Aleksandr Revin <alexandr.revin@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>