From 3447daea46a0d17a04b1c98dbdfeb3c2f3e7e449 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Thu, 22 Apr 2021 23:33:01 +0300 Subject: [PATCH] [mod_sofia] Destroy session after relaying notify result on proxy refer. --- src/mod/endpoints/mod_sofia/mod_sofia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 5de26b1d00..1637cff924 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1429,6 +1429,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi SIPTAG_PAYLOAD_STR(msg->string_arg), TAG_IF(!zstr(session_id_header), SIPTAG_HEADER_STR(session_id_header)), SIPTAG_EVENT_STR("refer"), TAG_END()); + switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_BLIND_TRANSFER); goto end; }