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: https://origsvn.digium.com/svn/asterisk/branches/1.4@170504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Joshua Colp 18 years ago
parent 1bef118f00
commit 5efdade8eb

@ -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 */

Loading…
Cancel
Save