<div dir="ltr"><div><div><div><div><div><font face="arial, helvetica, sans-serif" color="#000000">Hello Asterisk Users,<br><br></font></div><div><font face="arial, helvetica, sans-serif" color="#000000">Hope you all doing fine!</font></div><font face="arial, helvetica, sans-serif" color="#000000">I am working with a quite complex dialplan, and I've come to some situations where it makes some nasty use of pre-bridge handlers.<br></font></div><font face="arial, helvetica, sans-serif" color="#000000">The pre-bridge handlers wiki (<a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Bridge+Handlers" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Pre-Bridge+<wbr>Handlers</a>) doesn't have the big warning the pre-dial one has  indicating it must return and must not put the caller/callee in other applications (<a href="https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Pre-Dial+<wbr>Handlers</a>). So apparently, looks like they wouldn't have this restriction... However I had the feeling this was not true, so after some research I found this issue <a href="https://issues.asterisk.org/jira/browse/ASTERISK-25690" target="_blank">https://issues.asterisk.org/<wbr>jira/browse/ASTERISK-25690</a>, that says <span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none">"<i>Connected line subroutines are meant</i></span><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><i><span class="m_7840497829895240789gmail-Apple-converted-space"></span> to be fast and as a result there is an expectation that applications invoked will not consume frames</i>". </span><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none">I am assuming that connected lines subroutines are just different words for pre-bridge handlers, right?<br></span></font></div><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><font face="arial, helvetica, sans-serif" color="#000000">Anyway my question is, what happens if I do not return straight away from the pre-bridge handler? Or even worst, if I execute a Dial application for example? Will I fall in some "undefined behaviour"?<br><br></font></span></div><div><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><font face="arial, helvetica, sans-serif" color="#000000">Anyone has experienced something like this?</font></span></div><div><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><font face="arial, helvetica, sans-serif" color="#000000"><br></font></span></div><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><font face="arial, helvetica, sans-serif" color="#000000">Many thanks,<br>Cheers,</font></span></div><span style="font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline;float:none"><font face="arial, helvetica, sans-serif" color="#000000">Patrick</font><br></span></div>