<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">For the specific use case you've described, I should think a Local/ channel could be built to implement the necessary logic. In fact I'm pretty sure we do that in our Local/ channel handler for queue agents.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 17, 2020 at 5:04 AM Nikša Baldun <<a href="mailto:it@voxdiversa.hr">it@voxdiversa.hr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I have been using Asterisk for years, and the one thing that I believe <br>
is sorely missing, but I can't find any mention of it on the Internet, <br>
and that is pushable pre-bridge handlers. In current setup, there are <br>
following limitations:<br>
<br>
1. Pre-bridge handler can only be attached to the B-leg channel, not the <br>
A-leg channel.<br>
<br>
2. The handler will only be executed before a bridge resulting from Dial <br>
application, but a channel can be bridged multiple times during its <br>
lifetime (by SIP attended transfer, for example).<br>
<br>
So, for example, if I want to turn call recording on/off depending on <br>
who the channel is bridged to, there is no way to do that via dialplan <br>
(that I know of).<br>
<br>
There is a possibility to attach hangup handlers to any channel by using <br>
CHANNEL(hangup_handler_push), but no similar feature for pre-bridge <br>
handlers, which are much more important, IMO. So, has there been any <br>
discussion among developers about this topic?<br>
<br>
Best regards.<br>
<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div>