From: Richard Mudgett Date: Wed, 11 Jan 2012 22:53:09 +0000 (+0000) Subject: Remove extraneous BRIDGEPEER AMI VarSet event on a CEL dummy channel. X-Git-Tag: 11.0.0-beta1~798 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=9988918829c3fd00fc35074f94de12902ebf2052;ds=sidebyside Remove extraneous BRIDGEPEER AMI VarSet event on a CEL dummy channel. (closes issue ASTERISK-19180) Reported by: Corey Farrell Patches: asterisk_cel_noevent_varset.diff (license #5909) patch uploaded by Corey Farrell ........ Merged revisions 350452 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 350453 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@350454 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cel.c b/main/cel.c index f03b51d..2c46e5f 100644 --- a/main/cel.c +++ b/main/cel.c @@ -462,7 +462,9 @@ struct ast_channel *ast_cel_fabricate_channel_from_event(const struct ast_event ast_string_field_set(tchan, peeraccount, record.peer_account); ast_string_field_set(tchan, userfield, record.user_field); - pbx_builtin_setvar_helper(tchan, "BRIDGEPEER", record.peer); + if ((newvariable = ast_var_assign("BRIDGEPEER", record.peer))) { + AST_LIST_INSERT_HEAD(headp, newvariable, entries); + } tchan->appl = ast_strdup(record.application_name); tchan->data = ast_strdup(record.application_data);