]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: move NUTAG_MIN_SE to sofia_glue_do_invite so it only appears on requests...
authorMathieu Rene <mrene@avgs.ca>
Sun, 13 Dec 2009 19:36:44 +0000 (19:36 +0000)
committerMathieu Rene <mrene@avgs.ca>
Sun, 13 Dec 2009 19:36:44 +0000 (19:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15943 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index e2dc63fa6b5fc56f7168e21d94a9bf8db1e26dc5..d82b35c814dbf7f166df251fa583c246432035d1 100644 (file)
@@ -1156,7 +1156,6 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
                                   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")),
index 5c6ec817f105cb4b8afaeb90f1df0e20d3f173ea..985e1ecd8fceabb7d1ee0e049a23219f2ac8d262 100644 (file)
@@ -1810,6 +1810,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                           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),