<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto">OS is Centos 5.7.&nbsp; Most recent GIT has same code.</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto"></SPAN>&nbsp;</div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto">In switch_ivr_bridge.c on line 1474, we have the following lines of code:</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto">&nbsp;</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_clear_state_handler(originator_channel, NULL);</SPAN></div>
<div class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_clear_state_handler(originatee_channel, NULL);</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_set_state_flag(originator_channel, CF_BRIDGE_ORIGINATOR);</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_clear_flag_recursive(originatee_channel, CF_BRIDGE_ORIGINATOR);</SPAN></div>
<div class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_add_state_handler(originator_channel, &amp;uuid_bridge_state_handlers);</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_add_state_handler(originatee_channel, &amp;uuid_bridge_state_handlers);</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto">Is the call to “switch_channel_set_state_flag” a typo? Since it&nbsp; triggers an asynchronous flag change on the channel thread, and at least in the scenario when the asynchronous change immediately after the next “switch_channel_clear_flag_recursive”, the clearing of the flag will not do anything.</SPAN></div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto"></SPAN>&nbsp;</div>
<div style="RIGHT: auto" class=MsoNormal><SPAN style="COLOR: #1f497d; RIGHT: auto">Thanks in advance.<VAR id=yui-ie-cursor></VAR></SPAN></div></div></body></html>