Revision
15943
Author
mrene
Date
2009-12-13 13:36:44 -0600 (Sun, 13 Dec 2009)

Log Message

mod_sofia: move NUTAG_MIN_SE to sofia_glue_do_invite so it only appears on requests. MODSOFIA-47

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (15942 => 15943)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-12-12 23:43:11 UTC (rev 15942)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-12-13 19:36:44 UTC (rev 15943)
@@ -1156,7 +1156,6 @@
 				   NUTAG_ALLOW("NOTIFY"),
 				   NUTAG_ALLOW_EVENTS("talk"),
 				   NUTAG_SESSION_TIMER(profile->session_timeout),
-				   TAG_IF(profile->minimum_session_expires, NUTAG_MIN_SE(profile->minimum_session_expires)),
 				   NTATAG_MAX_PROCEEDING(profile->max_proceeding),
 				   TAG_IF(profile->pres_type, NUTAG_ALLOW("PUBLISH")),
 				   TAG_IF(profile->pres_type, NUTAG_ALLOW("SUBSCRIBE")),

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (15942 => 15943)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-12-12 23:43:11 UTC (rev 15942)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-12-13 19:36:44 UTC (rev 15943)
@@ -1810,6 +1810,7 @@
 			   TAG_IF(!zstr(max_forwards), SIPTAG_MAX_FORWARDS_STR(max_forwards)),
 			   TAG_IF(!zstr(route_uri), NUTAG_PROXY(route_uri)),
 			   TAG_IF(!zstr(route), SIPTAG_ROUTE_STR(route)),
+			   TAG_IF(tech_pvt->profile->minimum_session_expires, NUTAG_MIN_SE(tech_pvt->profile->minimum_session_expires)),
 			   SOATAG_ADDRESS(tech_pvt->adv_sdp_audio_ip),
 			   SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
 			   SOATAG_REUSE_REJECTED(1),