All pastes #36406 Raw Edit

Anonymous

public text v1 · immutable
#36406 ·published 2006-01-10 22:28 UTC
rendered paste body
Index: pbx.c
===================================================================
--- pbx.c       (revision 7949)
+++ pbx.c       (working copy)
@@ -2361,6 +2361,11 @@
                ast_log(LOG_WARNING, "Don't know what to do with '%s'\n", c->name);
 out:
        if ((res != AST_PBX_KEEPALIVE) && ast_exists_extension(c, c->context, "h", 1, c->cid.cid_num)) {+               if (c->cdr) {
+                       ast_cdr_end(c->cdr);
+                       ast_cdr_detach(c->cdr);
+                       c->cdr = NULL;
+               }
                c->exten[0] = 'h';
                c->exten[1] = '\0';
                c->priority = 1;