Don't consider RTP timeout if the channel isn't up

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 21 years ago
parent 879c401544
commit cb896da998

@ -7650,7 +7650,7 @@ restartsearch:
sip = iflist; sip = iflist;
while(sip) { while(sip) {
ast_mutex_lock(&sip->lock); ast_mutex_lock(&sip->lock);
if (sip->rtp && sip->lastrtprx && (sip->rtptimeout || sip->rtpholdtimeout) && !sip->redirip.sin_addr.s_addr) { if (sip->rtp && sip->owner && (sip->owner->_state == AST_STATE_UP) && sip->lastrtprx && (sip->rtptimeout || sip->rtpholdtimeout) && !sip->redirip.sin_addr.s_addr) {
if (t > sip->lastrtprx + sip->rtptimeout) { if (t > sip->lastrtprx + sip->rtptimeout) {
/* Might be a timeout now -- see if we're on hold */ /* Might be a timeout now -- see if we're on hold */
struct sockaddr_in sin; struct sockaddr_in sin;

Loading…
Cancel
Save