Commit 89212ff0 authored by Pekka Pessi's avatar Pekka Pessi

nta.c: adding rport to all via headers we have added received.

darcs-hash:20061004104233-65a35-48cf039be67556cb3165dd612cbaa0505dc88b26.gz
parent f77b95b5
......@@ -2349,7 +2349,7 @@ int agent_check_request_via(nta_agent_t *agent,
if (!agent->sa_server_rport) {
/*Xyzzy*/;
}
else if (v->v_rport) {
else if (v->v_rport || (v->v_received && tport_is_udp(tport))) {
rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port));
msg_header_replace_param(msg_home(msg), v->v_common, rport);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment