提交 02accfe5 authored 作者: Anthony Minessale's avatar Anthony Minessale

worth a shot

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6043 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e9d13f33
...@@ -532,6 +532,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * ...@@ -532,6 +532,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
} }
to = switch_mprintf("sip:%s@%s", user, host); to = switch_mprintf("sip:%s@%s", user, host);
tmp = contact;
contact = sofia_glue_get_url_from_contact(tmp, 0);
pl = switch_mprintf("<?xml version='1.0' encoding='UTF-8'?>\r\n" pl = switch_mprintf("<?xml version='1.0' encoding='UTF-8'?>\r\n"
"<presence xmlns='urn:ietf:params:xml:ns:pidf'\r\n" "<presence xmlns='urn:ietf:params:xml:ns:pidf'\r\n"
"xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'\r\n" "xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'\r\n"
...@@ -558,8 +560,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * ...@@ -558,8 +560,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
nh = nua_handle(profile->nua, NULL, TAG_END()); nh = nua_handle(profile->nua, NULL, TAG_END());
tmp = contact;
contact = sofia_glue_get_url_from_contact(tmp, 0);
nua_notify(nh, nua_notify(nh,
NUTAG_NEWSUB(1), NUTAG_NEWSUB(1),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论