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

FreeSWITCH SVN mikej at freeswitch.org
Tue Mar 3 09:22:02 PST 2009


Author: mikej
Date: Tue Mar  3 11:22:01 2009
New Revision: 12380

Log:
Tue Mar  3 10:40:57 CST 2009  Pekka Pessi <first.last at nokia.com>
  * nta: nta_agent_set_params() now returns correct value for tport parameters set



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

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Tue Mar  3 11:22:01 2009
@@ -1 +1 @@
-Tue Mar  3 11:21:02 CST 2009
+Tue Mar  3 11:21:35 CST 2009

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 Mar  3 11:22:01 2009
@@ -1537,12 +1537,13 @@
 
   m = 0;
   for (tport = agent->sa_tports; tport; tport = tport_next(tport)) {
-    m = tport_set_params(tport, TAG_NEXT(tags));
+    int m0 = tport_set_params(tport, TAG_NEXT(tags));
+    if (m0 < 0)
+      return m0;
+    if (m0 > m)
+      m = m0;
   }
 
-  if (m == -1)
-    return m;
-
   n += m;
 
   if (aliases != NONE) {



More information about the Freeswitch-svn mailing list