Thu Jan 29 12:32:12 CST 2009 Pekka Pessi <first.last@nokia.com>

* 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
This commit is contained in:
Michael Jerris 2009-02-11 17:22:54 +00:00
parent db953eb8e9
commit 73b6ee94a3
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
Wed Feb 11 11:20:46 CST 2009
Wed Feb 11 11:22:43 CST 2009

View File

@ -4413,6 +4413,10 @@ session_timer_add_headers(struct session_timer *t,
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