]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Missed one of the variable changes!
authorAndrew Cassidy <andee@bytz.co.uk>
Mon, 8 Sep 2014 18:18:43 +0000 (19:18 +0100)
committerAndrew Cassidy <andee@bytz.co.uk>
Mon, 8 Sep 2014 18:18:43 +0000 (19:18 +0100)
src/mod/applications/mod_translate/mod_translate.c

index d8ce96adc200de9ba3d187a470484323aa07b4f3..7180ea1d6baf346d7d30b71304cea36412933404 100644 (file)
@@ -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;