]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Log error when there's no IVR menus configured when you call 'ivr' DP app
authorAndrew Thompson <andrew@hijacked.us>
Sun, 9 Jan 2011 19:42:42 +0000 (14:42 -0500)
committerAndrew Thompson <andrew@hijacked.us>
Sun, 9 Jan 2011 19:42:42 +0000 (14:42 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index 4602dd2bc544fd745902fddcc8941f119996ab51..41417255bbfc96edc5e26dc5e704161651cf8bc5 100755 (executable)
@@ -1485,6 +1485,8 @@ SWITCH_STANDARD_APP(ivr_application_function)
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Unable to find menu\n");
                                }
+                       } else {
+                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "No menus configured\n");
                        }
                        switch_xml_free(cxml);
                } else {