* nua_session.c: do not add Min-SE header if not needed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11863
d0543943-73ff-0310-b7d9-
9358b9ac24b2
-Wed Feb 11 11:20:46 CST 2009
+Wed Feb 11 11:22:43 CST 2009
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