[asterisk-commits] kmoore: trunk r368588 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jun 6 11:11:06 CDT 2012
Author: kmoore
Date: Wed Jun 6 11:11:01 2012
New Revision: 368588
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368588
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
........
Merged revisions 368586 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 368587 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=368588&r1=368587&r2=368588
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jun 6 11:11:01 2012
@@ -9037,6 +9037,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