MODAPP-220

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12243 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-02-23 13:49:34 +00:00
parent 99412ef499
commit 26caa46c97
1 changed files with 3 additions and 3 deletions

View 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);
}
}