From 27497217912a82ca243a9d5e9acfbbb597faf323 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Sat, 18 Jul 2015 13:16:10 -0300 Subject: pjsip: Add rtp_timeout and rtp_timeout_hold endpoint options. This change adds support for the 'rtp_timeout' and 'rtp_timeout_hold' endpoint options. These allow the channel to be hung up if RTP is not received from the remote endpoint for a specified number of seconds. ASTERISK-25259 #close Change-Id: I3f39daaa7da2596b5022737b77799d16204175b9 --- channels/chan_pjsip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channels/chan_pjsip.c') diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 919b92618..bb79e84a5 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -625,6 +625,8 @@ static struct ast_frame *chan_pjsip_read(struct ast_channel *ast) return f; } + ast_rtp_instance_set_last_rx(media->rtp, time(NULL)); + if (f->frametype != AST_FRAME_VOICE) { return f; } -- cgit v1.2.3