From: William King Date: Thu, 15 Nov 2012 00:43:37 +0000 (-0800) Subject: Adding delivery status code if the sms was sent in blocking mode. X-Git-Tag: v1.3.4~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b74de2d6238f18bdb51a811a26798397ef08587;p=thirdparty%2Ffreeswitch.git Adding delivery status code if the sms was sent in blocking mode. --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index a053813a84..ab6576d52c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -364,7 +364,9 @@ switch_status_t sofia_presence_chat_send(switch_event_t *message_event) if (!(mstatus > 199 && mstatus < 300)) { 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_core_hash_delete(profile->chat_hash, uuid_str); switch_mutex_unlock(profile->flag_mutex);