summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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