From: Richard Mudgett Date: Wed, 11 Jan 2012 22:51:47 +0000 (+0000) Subject: Remove extraneous BRIDGEPEER AMI VarSet event on a CEL dummy channel. X-Git-Tag: 10.2.0-rc1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e229b4e0f83d7ee225330c32ffe8d99af73728;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@350453 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cel.c b/main/cel.c index ef37a1196a..8606a264c8 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);