<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6519">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
George Joseph: Looks good to me, approved
</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 f8f4192..1c11663 100644<br>--- a/addons/cdr_mysql.c<br>+++ b/addons/cdr_mysql.c<br>@@ -258,9 +258,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>@@ -270,7 +268,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>@@ -364,7 +363,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/6519">change 6519</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/6519"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </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: 6519 </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>