diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-23 18:04:08 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-23 18:04:08 +0000 |
commit | b2daf9aa8a5670c5ed04f54a0fe5e03eeb68b113 (patch) | |
tree | 3be2a3e875854bcf9a9dca44832a838f449181a2 /channels | |
parent | 86125b9469baadd11508766f9918eb466bf28113 (diff) |
Use the on hold flag to see if the call is on hold or not. It is possible that our address for them will still be valid even though they are on hold.
(closes issue #14295)
Reported by: klaus3000
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@170504 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cc8fafed8..c906b9a7f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16287,7 +16287,7 @@ restartsearch: /* Might be a timeout now -- see if we're on hold */ struct sockaddr_in sin; ast_rtp_get_peer(sip->rtp, &sin); - if (sin.sin_addr.s_addr || + if (!ast_test_flag(&sip->flags[1], SIP_PAGE2_CALL_ONHOLD) || (ast_rtp_get_rtpholdtimeout(sip->rtp) && (t > sip->lastrtprx + ast_rtp_get_rtpholdtimeout(sip->rtp)))) { /* Needs a hangup */ |