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

add rport hack to sofia lib to ease NAT suffering

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8497 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 6c5615fd
Mon May 19 12:56:22 EDT 2008 Wed May 21 00:25:55 CEST 2008
...@@ -2579,6 +2579,10 @@ int agent_check_request_via(nta_agent_t *agent, ...@@ -2579,6 +2579,10 @@ int agent_check_request_via(nta_agent_t *agent,
rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port)); rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port));
msg_header_replace_param(msg_home(msg), v->v_common, rport); msg_header_replace_param(msg_home(msg), v->v_common, rport);
} }
else {
rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port));
msg_header_replace_param(msg_home(msg), v->v_common, rport);
}
return 0; return 0;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论