aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-09 01:33:17 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-09 01:33:17 +0000
commit03c43f653b7b4d83474d102dddb5900661f0691b (patch)
tree768c3a4fff157d48d2f5af57d9723a0938661124
parentcafa29f67373a97017a8c5c3cf046208b805278c (diff)
Don't consider RTP timeout if the channel isn't up
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3747 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c14fd44d0..502ca60da 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7650,7 +7650,7 @@ restartsearch:
sip = iflist;
while(sip) {
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) {
/* Might be a timeout now -- see if we're on hold */
struct sockaddr_in sin;