[asterisk-dev] Retrieve current channel from inside ARA driver method ...

Mauro Sergio Ferreira Brasil mauro.brasil at tqi.com.br
Thu Aug 13 11:03:31 CDT 2009


Hello there!

Is there any way to retrieve the channel associated with an ARA 
(Asterisk Realtime Architecture) information request ?

I mean, when some information is needed (like an extension config, or a 
sip entity (peer, user, or friend)) one of ARA driver methods is issued, 
and it doens't receive the current channel as a parameter, although the 
channel is informed to the Realtime method that invokes the current ARA 
driver (mysql, odbc) method.

The question is:
Is there any function, variable or any kind of alternative to retrive 
the current channel from inside the method that actually performs the 
database query (like method "realtime_mysql" on "res_config_mysql.c", 
for example), given that the channel is not forwarded to these ARA 
methods as parameters ?

Thanks and best regards,

-- 
__At.,                                                                                                                             
   _
 
*Technology and Quality on Information*
Mauro Sérgio Ferreira Brasil
Coordenador de Projetos e Analista de Sistemas
+ mauro.brasil at tqi.com.br <mailto:@tqi.com.br>
: www.tqi.com.br <http://www.tqi.com.br>
( + 55 (34)3291-1700
( + 55 (34)9971-2572

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090813/d8be1cd7/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMMI_2.jpg
Type: image/jpeg
Size: 1705 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20090813/d8be1cd7/attachment.jpg 


More information about the asterisk-dev mailing list