From 309dd2a4090ccdd1ea31d8d5415a645daddd3883 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 --- res/res_pjsip_session.c | 1 + 1 file changed, 1 insertion(+) (limited to 'res/res_pjsip_session.c') diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index eff8bbb12..45446715f 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -1221,6 +1221,7 @@ static int add_session_media(void *obj, void *arg, int flags) } session_media->encryption = session->endpoint->media.rtp.encryption; session_media->keepalive_sched_id = -1; + session_media->timeout_sched_id = -1; /* Safe use of strcpy */ strcpy(session_media->stream_type, handler_list->stream_type); ao2_link(session->media, session_media); -- cgit v1.2.3