[asterisk-commits] rmudgett: branch 1.8 r350452 - /branches/1.8/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 11 16:50:54 CST 2012


Author: rmudgett
Date: Wed Jan 11 16:50:50 2012
New Revision: 350452

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=350452
Log:
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

Modified:
    branches/1.8/main/cel.c

Modified: branches/1.8/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/cel.c?view=diff&rev=350452&r1=350451&r2=350452
==============================================================================
--- branches/1.8/main/cel.c (original)
+++ branches/1.8/main/cel.c Wed Jan 11 16:50:50 2012
@@ -462,7 +462,9 @@
 	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);




More information about the asterisk-commits mailing list