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

FreeSWITCH SVN mikej at freeswitch.org
Wed Feb 11 09:22:55 PST 2009


Author: mikej
Date: Wed Feb 11 11:22:54 2009
New Revision: 11863

Log:
Thu Jan 29 12:32:12 CST 2009  Pekka Pessi <first.last at nokia.com>
  * nua_session.c: do not add Min-SE header if not needed



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

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Wed Feb 11 11:22:54 2009
@@ -1 +1 @@
-Wed Feb 11 11:20:46 CST 2009
+Wed Feb 11 11:22:43 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c	Wed Feb 11 11:22:54 2009
@@ -4413,6 +4413,10 @@
   else if (refresher == nua_local_refresher)
     x->x_params = uas ? x_params_uas : x_params_uac;
 
+  if (expires == 0 && t->remote.min_se == 0)
+    /* Session timer is not used, do not add headers */
+    return 1;
+
   sip_add_tl(msg, sip,
 	     TAG_IF(expires != 0, SIPTAG_SESSION_EXPIRES(x)),
 	     TAG_IF(min != 0



More information about the Freeswitch-svn mailing list