From: Andrew Cassidy Date: Mon, 8 Sep 2014 18:18:43 +0000 (+0100) Subject: Missed one of the variable changes! X-Git-Tag: v1.4.8~2^2~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6753ccf65d9ea8b0334fe6a0cfdb4390bf56fcc2;p=thirdparty%2Ffreeswitch.git Missed one of the variable changes! --- diff --git a/src/mod/applications/mod_translate/mod_translate.c b/src/mod/applications/mod_translate/mod_translate.c index d8ce96adc2..7180ea1d6b 100644 --- a/src/mod/applications/mod_translate/mod_translate.c +++ b/src/mod/applications/mod_translate/mod_translate.c @@ -149,9 +149,9 @@ static void translate_number(char *number, char *profile, char **translated, swi if ((switch_string_var_check_const(substituted) || switch_string_has_escaped_data(substituted))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "perform variable expansion\n"); if (session) { - substituted = switch_channel_expand_variables(switch_core_session_get_channel(session), substituted); + subbed = switch_channel_expand_variables(switch_core_session_get_channel(session), substituted); } else if (event) { - substituted = switch_event_expand_headers(event, substituted); + subbed = switch_event_expand_headers(event, substituted); } subbedlen = strlen(subbed) + 1;