mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 04:34:15 +00:00
add mod_snom
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9145 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
9837444ee0
commit
da2e0d710f
11 files changed
+262
-2
No files matched your search
@@ -58,6 +58,11 @@ switch_status_t sofia_presence_chat_send(char *proto, char *from, char *to, char
|
||||
nua_handle_t *msg_nh;
|
||||
char *contact;
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
const char *ct = "text/html";
|
||||
|
||||
if (subject && strchr(subject, '/')) {
|
||||
ct = subject;
|
||||
}
|
||||
|
||||
if (!to) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Missing To: header.\n");
|
||||
@@ -112,7 +117,7 @@ switch_status_t sofia_presence_chat_send(char *proto, char *from, char *to, char
|
||||
SIPTAG_CONTACT_STR(profile->url), TAG_END());
|
||||
|
||||
switch_safe_free(contact);
|
||||
nua_message(msg_nh, SIPTAG_CONTENT_TYPE_STR("text/html"), SIPTAG_PAYLOAD_STR(body), TAG_END());
|
||||
nua_message(msg_nh, SIPTAG_CONTENT_TYPE_STR(ct), SIPTAG_PAYLOAD_STR(body), TAG_END());
|
||||
|
||||
|
||||
end:
|
||||
|
||||
Reference in new issue
Block a user