<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks a lot for your answer Kevin, we agree with the approach you
pointed and we are having a good look on SIP proxies as suggested by
you.<br>
<br>
But, let's consider that we need for some reason to implement this
functionality on Asterisk.<br>
Having a initial look on everything it provides, I've noticed that is
there quite a number of entry points, like: build applications, build
modules, AMI, AEL, AGI, etc.<br>
<br>
Considering what I've exposed on prior message, can you please give me
a hint on some good approach ?<br>
<br>
For example: create an AGI application, and call it from the dialplan
to decide whether the caller (that will be a SIP "friend") can make
such a call.<br>
This example can provide dynamic dial for each call some pbx extension
initiates, right ?<br>
<br>
I found on Internet a module step-by-step creation example that
registrates a callback to handle CDR's.<br>
Is there a similar form to registrate a callback to intercept call
setup events ?<br>
<br>
I'll need to update dialplan dynamically with new extensions and
contexts that will be created for an specific Asterisk instance all the
time on this backend solution.<br>
AEL is the one for this job ?<br>
<br>
Please give me just a few words so I can have a lead on where to look
for.<br>
<br>
Thanks and best regards,<br>
Mauro.<br>
<br>
<br>
<br>
<br>
Kevin P. Fleming escreveu:
<blockquote cite="mid:4A732A92.20409@digium.com" type="cite">
  <pre wrap="">Mauro Sergio Ferreira Brasil wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Which is the better choice when talking about call setup interception ?
For example: 1- We will need to request autentication and validate it on
our legacy backend, so we need to intercept SIP/REGISTER; 2- On the same
way, any outgoing INVITE will need to be handled in order to validate if
the user have autorization to call another internal number, or enough
credit to establish outgoing calls.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
That really sounds like a job for OpenSER/OpenSIPS/Kamailio/etc., which
are SIP proxies you can put in between existing systems and add your own
logic to manipulate requests and responses. While you could do that with
Asterisk, it's much harder and won't be very transparent.

  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Language" content="pt-br">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; ">
<title>TQI - Technology and Quality on Information</title>
<table style="border-width: 0pt; border-collapse: collapse;"
 id="AutoNumber1" border="1" bordercolor="#111111" cellpadding="0"
 cellspacing="0" height="151" width="46%">
  <tbody>
    <tr>
      <td style="border-style: none; border-width: medium;" height="17"
 width="96%"> <sub><u>At.,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; </u></sub></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="32"
 width="16%"> <img src="cid:part1.04070708.02090005@tqi.com.br"
 border="0" height="23" width="150">&nbsp; </td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="12"
 width="100%"><b><font face="Verdana" size="1">Technology and Quality
on Information</font></b></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="13"
 width="100%"><font face="Verdana" size="1">Mauro S&eacute;rgio Ferreira Brasil</font></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="14"
 width="100%"> <font face="Verdana" size="1">Coordenador de Projetos e
Analista de Sistemas</font></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="14"
 width="100%"><font color="#0000ff" face="Wingdings" size="2">+</font><font
 face="Courier New" size="2"> </font> <font style="font-size: 9pt;"
 face="Courier New"> <a href="mailto:@tqi.com.br">mauro.brasil@tqi.com.br</a></font></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="14"
 width="100%"><font color="#0000ff" face="Wingdings" size="2">:</font><font
 face="Courier New" size="2"> </font>
      <font style="font-size: 9pt;" face="Courier New"> <a
 href="http://www.tqi.com.br">www.tqi.com.br</a></font></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="14"
 width="100%"><font color="#0000ff"><font face="Wingdings" size="2">(</font><font
 face="Courier New" size="2"> + 55 </font>
      <font style="font-size: 9pt;" face="Courier New">(34)3291-1700</font></font></td>
    </tr>
    <tr>
      <td style="border-style: none; border-width: medium;" height="14"
 width="100%"><font color="#0000ff"><font face="Wingdings" size="2">(</font><font
 face="Courier New" size="2"> + 55 </font>
      <font style="font-size: 9pt;" face="Courier New">(34)9971-2572</font></font></td>
    </tr>
  </tbody>
</table>
</div>
</body>
</html>