mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-07 07:09:17 -07:00
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
This commit is contained in:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user