From 90c3b07ee056763af2ab9d1c7b0285f377baa867 Mon Sep 17 00:00:00 2001 From: William King Date: Tue, 16 Oct 2012 14:41:29 -0700 Subject: [PATCH] If the chat message has been successfully delivered in the chat plan, then set the status to success and don't fire an event about the chat delivery failure --- src/switch_loadable_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 90410d3d8f..3a79c3e024 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -565,6 +565,7 @@ static switch_status_t do_chat_send(switch_event_t *message_event) status = ci->chat_send(message_event); if (status == SWITCH_STATUS_BREAK) { do_skip = 1; + status = SWITCH_STATUS_SUCCESS; } if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) {