提交 8dccd213 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-6085 --resolve

上级 27d6d087
......@@ -3588,6 +3588,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
const char *use_to_tag;
char to_tag[13] = "";
char buf[80] = "";
char *orig_to_user = NULL;
if (!sip) {
return;
......@@ -3713,6 +3714,8 @@ void sofia_presence_handle_sip_i_subscribe(int status,
}
}
orig_to_user = su_strdup(nua_handle_home(nh), to_user);
if (to_user && strchr(to_user, '+')) {
char *h;
if ((proto = (d_user = strdup(to_user)))) {
......@@ -3922,9 +3925,9 @@ void sofia_presence_handle_sip_i_subscribe(int status,
if (contactstr && (p = strchr(contactstr, '@'))) {
if (strrchr(p, '>')) {
new_contactstr = switch_mprintf("<sip:%s%s", to_user, p);
new_contactstr = switch_mprintf("<sip:%s%s", orig_to_user, p);
} else {
new_contactstr = switch_mprintf("<sip:%s%s>", to_user, p);
new_contactstr = switch_mprintf("<sip:%s%s>", orig_to_user, p);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论