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

This commit is contained in:
William King 2012-10-16 14:41:29 -07:00
parent 7eafa85de5
commit 90c3b07ee0
1 changed files with 1 additions and 0 deletions

View File

@ -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) {