]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-220
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Feb 2009 13:49:34 +0000 (13:49 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Feb 2009 13:49:34 +0000 (13:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12243 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_enum/mod_enum.c

index fc7e1b3aa6bf0abef1e21f603ca59a257f23218d..c4ee350ef3231005cd803bed201f987c85b5168f 100644 (file)
@@ -639,7 +639,7 @@ SWITCH_STANDARD_APP(enum_app_function)
                                        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_STANDARD_APP(enum_app_function)
                        }
 
                        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);
                }
        }