From: Alec L Davis Date: Tue, 19 Jan 2010 00:24:35 +0000 (+0000) Subject: Update CDR variables before pbx starts (overlap dial) X-Git-Tag: 11.0.0-beta1~3569 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=800313cbd916f6078deb5e83b4bc028ba2605de8;p=thirdparty%2Fasterisk.git Update CDR variables before pbx starts (overlap dial) Allows CDR variables added in cdr.c:set_one_cid to become visable during the call. (issue #16638) Reported by: alecdavis Patches: cdr_update.diff2.txt uploaded by alecdavis (license 585) Tested by: alecdavis git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@241187 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/sig_pri.c b/channels/sig_pri.c index a676a9cc77..63b84e5f9b 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -2514,6 +2514,8 @@ static void *pri_dchannel(void *vpri) sig_pri_handle_subcmds(pri, chanpos, e->e, e->ring.channel, e->ring.subcmds, e->ring.call); + + ast_cdr_update(c); } if (c && !ast_pthread_create_detached(&threadid, NULL, pri_ss_thread, pri->pvts[chanpos])) { ast_verb(3, "Accepting overlap call from '%s' to '%s' on channel %d/%d, span %d\n",