<div dir="ltr"><div dir="ltr">On Sun, Dec 13, 2020 at 6:33 AM Ahmed Fouad <<a href="mailto:afouad@gmail.com">afouad@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Jousha,</div><div><br></div><div>No changes were made there the caller when clicks the transfer button send INACTIVE then start the REFER process , the transfer completed fine but the call in still in inactive state.</div><div>I can't change the caller behaviour so I had to change the Asterisk code a few minutes ago :)</div><div><br></div><div>found my way through in bridge_channel.c</div><div><br></div><div><b>ast_set2_flag(&bridge->feature_flags, dissolve, AST_BRIDGE_FLAG_DISSOLVE_EMPTY);</b></div><div><br></div><div>+ ch1 = AST_LIST_FIRST(&bridge->channels);</div><div>+ if (ast_channel_hold_state(ch1->chan) == AST_CONTROL_HOLD ) {</div><div>+ ast_indicate(ch1->chan, AST_CONTROL_UNHOLD);</div><div>+}</div><div><br></div><div>This will happen only when swapping channels so it won't affect the normal bridge operations and of course I'd like to get your input if there a better place to have this patch.<br></div></div></blockquote></div><div><br></div>There is not enough context or information for me to be able to answer that. You'd need to describe the scenario and conditions more and be specific about which channel is experiencing the issue. With an attended transfer there's actually 4 channels involved and their state. The code I linked previously is supposed to unhold the appropriate channels, so if it's not then understanding why it isn't - or if there's somehow another channel involved - would be the thing to do. Is this experienced with main Asterisk 16? If so then filing an issue[1] with SIP traces and full console log would be appropriate.<div><br></div><div>[1] <a href="https://issues.asterisk.org/jira">https://issues.asterisk.org/jira</a><br><div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>