Update CDR variables before pbx starts (overlap dial)
authorAlec L Davis <sivad.a@paradise.net.nz>
Tue, 19 Jan 2010 00:24:35 +0000 (00:24 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Tue, 19 Jan 2010 00:24:35 +0000 (00:24 +0000)
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

channels/sig_pri.c

index a676a9c..63b84e5 100644 (file)
@@ -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",