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;