Fire an event on successful sms delivery, as well as clearify if the delivery method was blocking or not.

This commit is contained in:
William King committed 2012-11-14 16:45:32 -08:00
1 parent 8b74de2d62
commit b8f0d11a8a
2 files changed
+16 -6

No files matched your search

+3
View File
@@ -50,6 +50,9 @@ static void event_handler(switch_event_t *event)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Delivery Failure\n");
DUMP_EVENT(event);
return;
} else if ( check_failure && switch_false(check_failure) ) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "SMS Delivery Success\n");
return;
}