]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11026 [mod_sofia] set proxy on bye if available
authorLuis Azedo <luis@2600hz.com>
Tue, 13 Mar 2018 19:52:40 +0000 (19:52 +0000)
committerlazedo <luis.azedo@factorlusitano.com>
Mon, 14 Jan 2019 17:05:21 +0000 (17:05 +0000)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 0c7a27534db9d0533590aa50645b158925d71bdf..d4e6bb2285fbf3582b34bc60b99271e039782324 100644 (file)
@@ -502,6 +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)),
                                                SIPTAG_CONTACT(SIP_NONE),
                                                TAG_IF(!zstr(reason), SIPTAG_REASON_STR(reason)),
                                                TAG_IF(call_info, SIPTAG_CALL_INFO_STR(call_info)),