<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thanks for the reply, Joshua. It would definitely be useful. I
took a look at FreePBX code to see how they handle call recordings
in my example scenario, and apparently they call a PHP script from
dialplan, which then controls recording via AMI connection. An
awful lot of effort, not to mention a performance hit. I am
guessing they wouldn't do it if there was any other way.<br>
<br>
I am not surprised that this functionality does not exist, I know
that Asterisk development is difficult, but I am surprised there
was no talk about it. I might take a crack at this myself if my
schedule clears up. I am thinking, pre-bridge handlers already
exist, and methodology for pushing handlers onto a channel already
exists. So one could figure it out with some effort. Or am I being
naive?<br>
</p>
<div class="moz-cite-prefix">On 20. 07. 2020. 16:29, Joshua C. Colp
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM0A2Z20Kn1gHGpWNMKOo4oOZExa4UztN26SUzVD3q=NjDDjjQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">On Fri, Jul 17, 2020 at 6:04 AM Nikša Baldun <<a
href="mailto:it@voxdiversa.hr" moz-do-not-send="true">it@voxdiversa.hr</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">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>
</blockquote>
</div>
<div><br>
</div>
I can't say I've heard anyone request or discuss such a thing
anywhere. That being said it sounds at face value like it could
be useful.<br clear="all">
<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" moz-do-not-send="true">www.sangoma.com</a>
and <a href="http://www.asterisk.org"
target="_blank" moz-do-not-send="true">www.asterisk.org</a></font><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>