Skip to content
Snippets Groups Projects
Commit 3bdf876b authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "res_pjsip_sdp_rtp: Set hangup cause for RTP timeouts"

parents 772afa59 d08c69a9
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,10 @@ static int rtp_check_timeout(const void *data)
ast_log(LOG_NOTICE, "Disconnecting channel '%s' for lack of RTP activity in %d seconds\n",
ast_channel_name(chan), elapsed);
ast_channel_lock(chan);
ast_channel_hangupcause_set(chan, AST_CAUSE_REQUESTED_CHAN_UNAVAIL);
ast_channel_unlock(chan);
ast_softhangup(chan, AST_SOFTHANGUP_DEV);
ast_channel_unref(chan);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment