]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use the on hold flag to see if the call is on hold or not. It is possible that our...
authorJoshua Colp <jcolp@digium.com>
Fri, 23 Jan 2009 18:04:08 +0000 (18:04 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 23 Jan 2009 18:04:08 +0000 (18:04 +0000)
(closes issue #14295)
Reported by: klaus3000

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@170504 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cc8fafed81d4a3e00b0e2597351c34a123f89bd9..c906b9a7f3fef4aead35b5360c8b78a34f608bbc 100644 (file)
@@ -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 */