提交 655fe840 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix rfc4579 method=bye handling

上级 395b3b61
......@@ -1299,19 +1299,18 @@ static void our_sofia_event_callback(nua_event_t event,
}
if ((refer_to = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_refer_to))) {
if ((tmp = sofia_glue_get_url_from_contact(refer_to, 0))) {
refer_to = tmp;
}
if ((iparams = strrchr(refer_to, ';'))) {
if ((refer_to = sip_header_as_string(nua_handle_home(nh), (void *) sip->sip_refer_to))) {
if ((iparams = strchr(refer_to, ';'))) {
*iparams++ = '\0';
if (!switch_stristr("method=", iparams)) {
if (!params || !switch_stristr("method=", params)) {
params = iparams;
}
}
if ((tmp = sofia_glue_get_url_from_contact(refer_to, 0))) {
refer_to = tmp;
}
}
if (params) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论