From a3342f0c670d8d9e671f693e32c1067eafefc0af Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 29 Jun 2010 22:39:22 +0000 Subject: [PATCH] Send DialPlanComplete as a response, not as a separate event. Otherwise, it goes to all manager sessions and may exclude the current session, if the Events mask excludes it. (closes issue #17504) Reported by: rrb3942 Patches: showdialplan_patch.diff uploaded by rrb3942 (license 1003) Tested by: rrb3942 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273054 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index c2d98e48df..12aeb334a1 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -6479,7 +6479,7 @@ static int manager_show_dialplan(struct mansession *s, const struct message *m) return 0; } - manager_event(EVENT_FLAG_CONFIG, "ShowDialPlanComplete", + astman_append(s, "Event: ShowDialPlanComplete\r\n" "EventList: Complete\r\n" "ListItems: %d\r\n" "ListExtensions: %d\r\n"