]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Adding delivery status code if the sms was sent in blocking mode.
authorWilliam King <william.king@quentustech.com>
Thu, 15 Nov 2012 00:43:37 +0000 (16:43 -0800)
committerWilliam King <william.king@quentustech.com>
Thu, 15 Nov 2012 00:43:37 +0000 (16:43 -0800)
src/mod/endpoints/mod_sofia/sofia_presence.c

index a053813a84f548dcdee55f3eeb806750fd06661f..ab6576d52c81253789da5551e1011d757e6007e7 100644 (file)
@@ -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);