summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-07-26 16:39:32 +0000
committerGeorge Joseph <gjoseph@digium.com>2017-08-01 15:39:26 -0600
commit8f51443a08e00335fbf83584d150edbac35c4a17 (patch)
tree1b2967ec6b71147ee8cd4c147afa86eccbf34b26 /channels
parentef399981693bce338c3ae5e197e70d6e23381b39 (diff)
res_pjsip_session: Release media resources on session end quicker.
A change was made long ago where the session was kept around until the underlying INVITE session had been destroyed. This had the side effect of also keeping the underlying media resources around for this time as well. This change ensures that when we know the session is ending we release the media resources immediately. ASTERISK-27110 Change-Id: I3c6a82fe7d2c50b9dc9197cb12ef22f20d337501
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_pjsip.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index ebda6c7ee..dd03b74ae 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -2273,7 +2273,6 @@ static struct hangup_data *hangup_data_alloc(int cause, struct ast_channel *chan
static void clear_session_and_channel(struct ast_sip_session *session, struct ast_channel *ast)
{
session->channel = NULL;
- set_channel_on_rtp_instance(session, "");
ast_channel_tech_pvt_set(ast, NULL);
}