From: Mike Jerris Date: Tue, 4 Jun 2019 19:46:12 +0000 (-0400) Subject: FS-11814: [mod_sofia] fix regression in fs_path handling on BYE X-Git-Tag: v1.8.6~1^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61126ca82e2e72af9563a1dee5f105840d78361;p=thirdparty%2Ffreeswitch.git FS-11814: [mod_sofia] fix regression in fs_path handling on BYE --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 143f94b623..e30d80879b 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -502,7 +502,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Sending BYE to %s\n", switch_channel_get_name(channel)); if (!sofia_test_flag(tech_pvt, TFLAG_BYE)) { nua_bye(tech_pvt->nh, - TAG_IF(tech_pvt->record_route, NUTAG_PROXY(tech_pvt->record_route)), + TAG_IF(!zstr(tech_pvt->route_uri), NUTAG_PROXY(tech_pvt->route_uri)), SIPTAG_CONTACT(SIP_NONE), TAG_IF(!zstr(reason), SIPTAG_REASON_STR(reason)), TAG_IF(call_info, SIPTAG_CALL_INFO_STR(call_info)),