提交 8b74de2d authored 作者: William King's avatar William King

Adding delivery status code if the sms was sent in blocking mode.

上级 ca0ffe6b
...@@ -364,7 +364,9 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event) ...@@ -364,7 +364,9 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event)
if (!(mstatus > 199 && mstatus < 300)) { if (!(mstatus > 199 && mstatus < 300)) {
status = SWITCH_STATUS_FALSE; status = SWITCH_STATUS_FALSE;
} }
switch_event_add_header(message_event, SWITCH_STACK_BOTTOM, "Delivery-Result-Code", "%d", mstatus);
switch_mutex_lock(profile->flag_mutex); switch_mutex_lock(profile->flag_mutex);
switch_core_hash_delete(profile->chat_hash, uuid_str); switch_core_hash_delete(profile->chat_hash, uuid_str);
switch_mutex_unlock(profile->flag_mutex); switch_mutex_unlock(profile->flag_mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论