<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Tilghman, and thanks for the reply.<br>
<br>
I'm trying to figure out the better approach to handle a very dynamic
dialplan that depends on legacy systems information.<br>
For now I was considering two approaches:<br>
<br>
Option 1:<br>
<br>
Have all extensions persisted on Mysql database and retrieved through
ARA mysql driver. All these extensions will call an application
("AuthorizeCall", for example) that will contact legacy systems and set
some variables that I'll test right after to decide: if I can proceed
with the call; if I should return a busy status; if I can proceed with
the call but through an specific telco gateway; etc.<br>
<br>
This approach takes two steps that are: 1- the database dialplan
retrieval; and 2- the legacy system routing and authorization query.<br>
For this approach each extension retrieved from database would seem
like example below:<br>
<br>
exten=>1001,1,AuthorizeCall(${CONTEXT},${CALLERID(num)},${EXTEN})<br>
exten=>1001,n,GotoIf($[${CALLAUTHORIZATION} = ACCEPTED]?proceed) <br>
exten=>1001,n,Playtones(congestion)<br>
exten=>1001,n,Congestion()<br>
exten=>1001,n(proceed),Dial(SIP/${EXTEN},20,RtT)<br>
exten=>1001,n,GotoIf($[${DIALSTATUS} = BUSY]?busy) <br>
exten=>1001,n,Voicemail(${EXTEN}@${VOICEMAILSRV},u)<br>
exten=>1001,n,Hangup()<br>
exten=>1001,n(busy),Voicemail(${EXTEN}@${VOICEMAILSRV},b)<br>
exten=>1001,n,Hangup()<br>
<br>
Option 2:<br>
<br>
Create an ARA driver that will contact legacy systems and generate the
dialplan for the queried extension on demand.<br>
In just one step we will contact the legacy systems and build the
dialplan we need to complete the call.<br>
<br>
The problem here is that, as long as I could see, the ARA driver
methods don't receive the channel as a parameter, and I could see any
way to retrieve this channel either.<br>
Until now, I believe that I need the current channel (the channel that
issued the ARA query) so I can get the necessary information (like the
context, the caller number and the extension) - that are channel
variables - to calculate the extension steps.<br>
Am I right ?<br>
Do I realy need the channel ? Is there other way to retrive this
information from inside ARA driver methods ?<br>
<br>
I would prefer to build our solution using this approach, but I'm not
certain if is there solutions to the problems I've noticed until now.<br>
<br>
Do you have any ideias to make second approach a viable solution ?<br>
If you don't... do you see any problems on first approach ?<br>
<br>
Thanks and best regards,<br>
Mauro.<br>
<br>
<br>
<br>
<br>
Tilghman Lesher escreveu:
<blockquote
cite="mid:200908131227.19714.tilghman@mail.jeffandtilghman.com"
type="cite">
<pre wrap="">On Thursday 13 August 2009 11:03:31 Mauro Sergio Ferreira Brasil wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is there any way to retrieve the channel associated with an ARA
(Asterisk Realtime Architecture) information request ?
</pre>
</blockquote>
<pre wrap=""><!---->
No, that isn't possible. What exactly are you trying to do, that this would
be necessary? Perhaps there's a better approach.
</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.,
</u></sub></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium;" height="32"
width="16%"> <img src="cid:part1.06080304.04080105@tqi.com.br"
border="0" height="23" width="150"> </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é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>