]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add missing IVR config item: confirm-key. Variable was being passed into the init...
authorMichael S Collins <msc@freeswitch.org>
Wed, 20 Feb 2013 17:45:06 +0000 (09:45 -0800)
committerMichael S Collins <msc@freeswitch.org>
Wed, 20 Feb 2013 17:45:06 +0000 (09:45 -0800)
src/switch_ivr_menu.c

index e0ac169bf625cb9f8a9d46abe129a7690b16f074..d4eabb536db32aef75c2fe1fc9196d55f2491680 100644 (file)
@@ -157,6 +157,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t ** new_me
                menu->exit_sound = switch_core_strdup(menu->pool, exit_sound);
        }
 
+       if (!zstr(confirm_key)) {
+               menu->confirm_key = switch_core_strdup(menu->pool, confirm_key);
+       }
+
        if (!zstr(confirm_macro)) {
                menu->confirm_macro = switch_core_strdup(menu->pool, confirm_macro);
        }