[asterisk-commits] kmoore: branch 1.8 r368586 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 6 11:07:16 CDT 2012
Author: kmoore
Date: Wed Jun 6 11:07:02 2012
New Revision: 368586
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368586
Log:
Ensure overlapping hold flags do not conflict
When changing between different modes of hold, the flags were not being
cleared out properly causing a failure to change hold states.
(closes issue ASTERISK-19919)
Patch-by: Morten Tryfoss
Reported-by: Morten Tryfoss
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=368586&r1=368585&r2=368586
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Jun 6 11:07:02 2012
@@ -8675,6 +8675,9 @@
}
/* No address for RTP, we're on hold */
+ /* Ensure hold flags are cleared so that overlapping flags do not conflict */
+ ast_clear_flag(&dialog->flags[1], SIP_PAGE2_CALL_ONHOLD);
+
if (sendonly == 1) /* One directional hold (sendonly/recvonly) */
ast_set_flag(&dialog->flags[1], SIP_PAGE2_CALL_ONHOLD_ONEDIR);
else if (sendonly == 2) /* Inactive stream */
More information about the asterisk-commits
mailing list