[svn-commits] murf: branch 1.4 r62738 - in /branches/1.4: ./
main/cdr.c main/pbx.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Wed May 2 13:46:08 MST 2007
Author: murf
Date: Wed May 2 15:46:07 2007
New Revision: 62738
URL: http://svn.digium.com/view/asterisk?view=rev&rev=62738
Log:
Merged revisions 62737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r62737 | murf | 2007-05-02 14:10:32 -0600 (Wed, 02 May 2007) | 1 line
Some tweaks to satisfy CDR bug 8796, where being in 'h' extension louses up the dst field
........
Modified:
branches/1.4/ (props changed)
branches/1.4/main/cdr.c
branches/1.4/main/pbx.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/cdr.c?view=diff&rev=62738&r1=62737&r2=62738
==============================================================================
--- branches/1.4/main/cdr.c (original)
+++ branches/1.4/main/cdr.c Wed May 2 15:46:07 2007
@@ -879,9 +879,11 @@
/* Copy account code et-al */
ast_copy_string(cdr->accountcode, c->accountcode, sizeof(cdr->accountcode));
- /* Destination information */ /* XXX privilege macro* ? */
- ast_copy_string(cdr->dst, S_OR(c->macroexten, c->exten), sizeof(cdr->dst));
- ast_copy_string(cdr->dcontext, S_OR(c->macrocontext, c->context), sizeof(cdr->dcontext));
+ if (!ast_check_hangup(c)) {
+ /* Destination information */ /* XXX privilege macro* ? */
+ ast_copy_string(cdr->dst, S_OR(c->macroexten, c->exten), sizeof(cdr->dst));
+ ast_copy_string(cdr->dcontext, S_OR(c->macrocontext, c->context), sizeof(cdr->dcontext));
+ }
}
}
Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=62738&r1=62737&r2=62738
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Wed May 2 15:46:07 2007
@@ -516,7 +516,7 @@
const char *saved_c_appl;
const char *saved_c_data;
- if (c->cdr && !(c->exten[0] == 'h' && c->exten[1] == 0) )
+ if (c->cdr && !ast_check_hangup(c))
ast_cdr_setapp(c->cdr, app->name, data);
/* save channel values */
More information about the svn-commits
mailing list