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
This commit is contained in:
Anthony Minessale 2008-05-20 22:27:42 +00:00
parent 6c5615fdb4
commit 8c12407619
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
Mon May 19 12:56:22 EDT 2008
Wed May 21 00:25:55 CEST 2008

View File

@ -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));
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;
}