(closes issue #14295)
Reported by: klaus3000
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170504
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/* 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 */