From 613a3340da73930107c7ff045b41a1318bad546d Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 23 Apr 2019 16:15:25 -0400 Subject: [PATCH] FS-11805 [mod_sofia] set default session timeout for outbound calls before overriding it with NAT detection. --- src/mod/endpoints/mod_sofia/sofia_glue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index ec5a10ae9a..a1b5640fd3 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1043,7 +1043,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) const char *holdstr = ""; char *extra_headers = NULL; switch_status_t status = SWITCH_STATUS_FALSE; - uint32_t session_timeout = 0; + uint32_t session_timeout = tech_pvt->profile->session_timeout; const char *val; const char *rep; const char *call_id = NULL; @@ -1557,8 +1557,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) extra_headers = sofia_glue_get_extra_headers(channel, SOFIA_SIP_HEADER_PREFIX); - session_timeout = tech_pvt->profile->session_timeout; - if ((val = switch_channel_get_variable(channel, SOFIA_SESSION_TIMEOUT))) { int v_session_timeout = atoi(val); if (v_session_timeout >= 0) {