[Freeswitch-svn] [commit] r8497 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nta

Freeswitch SVN anthm at freeswitch.org
Tue May 20 18:27:42 EDT 2008


Author: anthm
Date: Tue May 20 18:27:42 2008
New Revision: 8497

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c

Log:
add rport hack to sofia lib to ease NAT suffering

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Tue May 20 18:27:42 2008
@@ -1 +1 @@
-Mon May 19 12:56:22 EDT 2008
+Wed May 21 00:25:55 CEST 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	Tue May 20 18:27:42 2008
@@ -2579,6 +2579,10 @@
     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;
 }



More information about the Freeswitch-svn mailing list