]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-539
authorBrian West <brian@freeswitch.org>
Mon, 25 Jan 2010 15:11:54 +0000 (15:11 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 25 Jan 2010 15:11:54 +0000 (15:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16512 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_menu.c

index 7b67b8b9622f8170a78f2a034e96d2db02b092fc..16ff326fc986cb660a3ba379759f7d80ef6bad7e 100644 (file)
@@ -499,6 +499,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_execute(switch_core_session_t *s
                                                break;
                                        case SWITCH_IVR_ACTION_PLAYSOUND:
                                                status = switch_ivr_play_file(session, NULL, aptr, NULL);
+                                               running = 0;
                                                break;
                                        case SWITCH_IVR_ACTION_EXECMENU:
                                                if (!strcmp(aptr, menu->name)) {
@@ -506,6 +507,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_execute(switch_core_session_t *s
                                                } else {
                                                        reps = -1;
                                                        status = switch_ivr_menu_execute(session, stack, aptr, obj);
+                                                       running = 0;
                                                }
                                                break;
                                        case SWITCH_IVR_ACTION_EXECAPP:
@@ -526,6 +528,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_execute(switch_core_session_t *s
                                                                        switch_core_session_exec(session, application_interface, app_arg);
                                                                        UNPROTECT_INTERFACE(application_interface);
                                                                        status = SWITCH_STATUS_SUCCESS;
+                                                                       running = 0;
                                                                }
                                                        }
                                                }