[asterisk-commits] file: branch group/performance r399772 - /team/group/performance/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 25 08:01:58 CDT 2013


Author: file
Date: Wed Sep 25 08:01:53 2013
New Revision: 399772

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399772
Log:
Don't set variables on an outgoing channel if no variables were passed in, it needlessly snapshots and publishes.

Modified:
    team/group/performance/main/pbx.c

Modified: team/group/performance/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/team/group/performance/main/pbx.c?view=diff&rev=399772&r1=399771&r2=399772
==============================================================================
--- team/group/performance/main/pbx.c (original)
+++ team/group/performance/main/pbx.c Wed Sep 25 08:01:53 2013
@@ -10050,7 +10050,9 @@
 		return -1;
 	}
 
-	ast_set_variables(dialed, vars);
+	if (vars) {
+		ast_set_variables(dialed, vars);
+	}
 
 	if (account) {
 		ast_channel_accountcode_set(dialed, account);




More information about the asterisk-commits mailing list