]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Adds peer to CEL report on CEL_BRIDGE_START and CEL_BRIDGE_END
authorJonathan Rose <jrose@digium.com>
Thu, 12 Jan 2012 16:04:28 +0000 (16:04 +0000)
committerJonathan Rose <jrose@digium.com>
Thu, 12 Jan 2012 16:04:28 +0000 (16:04 +0000)
(closes issue ASTERISK-17940)
Reporter: Nic Colledge
Patches:
features_18.patch uploaded by Nic Colledge (license 6245)
........

Merged revisions 350501 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@350502 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index fc5681ff484dabbc7291fd8ebd9e69953d005d82..59d68216e7d3e7084cb42d83176a80322e585693 100644 (file)
@@ -4017,7 +4017,7 @@ int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer, struct a
                 * present. */
                ast_clear_flag(bridge_cdr, AST_CDR_FLAG_DIALED);
        }
-       ast_cel_report_event(chan, AST_CEL_BRIDGE_START, NULL, NULL, NULL);
+       ast_cel_report_event(chan, AST_CEL_BRIDGE_START, NULL, NULL, peer);
 
        /* If we are bridging a call, stop worrying about forwarding loops. We presume that if
         * a call is being bridged, that the humans in charge know what they're doing. If they
@@ -4258,7 +4258,7 @@ int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer, struct a
                if (f)
                        ast_frfree(f);
        }
-       ast_cel_report_event(chan, AST_CEL_BRIDGE_END, NULL, NULL, NULL);
+       ast_cel_report_event(chan, AST_CEL_BRIDGE_END, NULL, NULL, peer);
 
 before_you_go:
        /* Just in case something weird happened and we didn't clean up the silence generator... */