mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
Adding delivery status code if the sms was sent in blocking mode.
This commit is contained in:
parent
ca0ffe6b76
commit
8b74de2d62
@ -365,6 +365,8 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event)
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user