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:
parent
db953eb8e9
commit
73b6ee94a3
|
@ -1 +1 @@
|
||||||
Wed Feb 11 11:20:46 CST 2009
|
Wed Feb 11 11:22:43 CST 2009
|
||||||
|
|
|
@ -4413,6 +4413,10 @@ session_timer_add_headers(struct session_timer *t,
|
||||||
else if (refresher == nua_local_refresher)
|
else if (refresher == nua_local_refresher)
|
||||||
x->x_params = uas ? x_params_uas : x_params_uac;
|
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,
|
sip_add_tl(msg, sip,
|
||||||
TAG_IF(expires != 0, SIPTAG_SESSION_EXPIRES(x)),
|
TAG_IF(expires != 0, SIPTAG_SESSION_EXPIRES(x)),
|
||||||
TAG_IF(min != 0
|
TAG_IF(min != 0
|
||||||
|
|
Loading…
Reference in New Issue