summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-10-13 14:13:54 -0500
committerMatt Jordan <mjordan@digium.com>2015-10-13 14:27:57 -0500
commit13229037d19dad06759fbf14521b8055e52d6039 (patch)
tree6951786d557e71e0d1c26b6885df907b548bba7e /channels/chan_sip.c
parentda54d3ddd137ed0ee136cc2d6efa226203946650 (diff)
channels/chan_sip: Set cause code to 44 on RTP timeout
To quote Olle: "When issuing a hangup due to RTP timeouts the cause code is not set. I have selected 44 based on Cisco's implementation..." ASTERISK-25135 #close Reported by: Olle Johansson patches: rtp-timeout-cause-1.8.diff uploaded by Olle Johansson (License 5267) Change-Id: Ia62100c55077d77901caee0bcae299f8dc7375fc
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 349042c9d..3fdc3caae 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -28811,7 +28811,8 @@ static int check_rtp_timeout(struct sip_pvt *dialog, time_t t)
ast_channel_name(dialog->owner), (long) (t - dialog->lastrtprx));
send_session_timeout(dialog->owner, "RTPTimeout");
- /* Issue a softhangup */
+ /* Issue a softhangup - cause 44 (as used by Cisco for RTP timeouts) */
+ ast_channel_hangupcause_set(dialog->owner, AST_CAUSE_REQUESTED_CHAN_UNAVAIL);
ast_softhangup_nolock(dialog->owner, AST_SOFTHANGUP_DEV);
ast_channel_unlock(dialog->owner);
/* forget the timeouts for this call, since a hangup