[Freeswitch-svn] [commit] r12243 - freeswitch/trunk/src/mod/applications/mod_enum

FreeSWITCH SVN anthm at freeswitch.org
Mon Feb 23 05:49:34 PST 2009


Author: anthm
Date: Mon Feb 23 07:49:34 2009
New Revision: 12243

Log:
MODAPP-220

Modified:
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Mon Feb 23 07:49:34 2009
@@ -639,7 +639,7 @@
 					continue;
 				}
 				switch_snprintf(vbuf, sizeof(vbuf), "enum_route_%d", cnt++);
-				switch_channel_set_variable(channel, vbuf, rp->route);
+				switch_channel_set_variable_var_check(channel, vbuf, rp->route, SWITCH_FALSE);
 				if (rp->preference == last_pref && rp->order == last_order) {
 					*last_delim = ',';
 				}
@@ -653,9 +653,9 @@
 			}
 
 			switch_snprintf(vbuf, sizeof(vbuf), "%d", cnt - 1);
-			switch_channel_set_variable(channel, "enum_route_count", vbuf);
+			switch_channel_set_variable_var_check(channel, "enum_route_count", vbuf, SWITCH_FALSE);
 			*(rbuf + strlen(rbuf) - 1) = '\0';
-			switch_channel_set_variable(channel, "enum_auto_route", rbuf);
+			switch_channel_set_variable_var_check(channel, "enum_auto_route", rbuf, SWITCH_FALSE);
 			free_results(&results);
 		}
 	}



More information about the Freeswitch-svn mailing list