via: b7fd81de33a28c95cb935cc57429081b6c5a5f41 (commit)
from: c565501f555a507fa2c56eccedccdbba7a366d6d (commit)
= COMMIT LOG ===========================================================
committer: Brian West
comments:
rip off the fs_ args on message like we do in SEND_MESSAGE
diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c
index 2313cb7..3755894 100644
--- a/src/mod/endpoints/mod_sofia/sofia_presence.c
+++ b/src/mod/endpoints/mod_sofia/sofia_presence.c
@@ -80,6 +80,7 @@ switch_status_t sofia_presence_chat_send(const char *proto, const char *from, co
char *ffrom = NULL;
nua_handle_t *msg_nh;
char *contact = NULL;
+ char *p;
char *dup = NULL;
switch_status_t status = SWITCH_STATUS_FALSE;
const char *ct = "text/html";
@@ -239,8 +240,12 @@ switch_status_t sofia_presence_chat_send(const char *proto, const char *from, co
status = SWITCH_STATUS_SUCCESS;
- /* if this cries, add contact here too, change the 1 to 0 and omit the safe_free */
+ if ((p = strstr(contact, ";fs_"))) {
+ *p = '\0';
+ }
+ /* if this cries, add contact here too, change the 1 to 0 and omit the safe_free */
+
msg_nh = nua_handle(profile->nua, NULL,
TAG_IF(dst->route_uri, NUTAG_PROXY(dst->route_uri)),
TAG_IF(dst->route, SIPTAG_ROUTE_STR(dst->route)),
Summary of changes: src/mod/endpoints/mod_sofia/sofia_presence.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source