AGI Perl


#1

Hi all,

Can you tell me from where i can call my update query when the call is pickuped using AGI Perl.

I writen the code to store active calls in MySQL DB. and display the real time call counter. i mean to insert record when the call is pickuped


#2

Hello,

I did not receive any suggestion. I will be appriciate if any can suggest me.


#3

You would call the AGI in the context you are sending the call to. Not sure exactly what you are looking for, please post more details and a copy of your context of the dialplan where you want to store the calls.


#4

Hi MuppetMaster,

I wanted to get exactly time when the call is pickuped. Because I am doing my Callshop application to display the real time call information like.
Talk Time, Charge and reaming Time.

Here is is my extention:

[main-ext]
exten => _x.,1,AGI(main-ext.pl)
exten => h,1,DeadAGI(/var/lib/asterisk/agi-bin/main-stop.pl)

main-ext.pl :

$dialstr = "$gwt/$fgw/" . $_[0] . "|1000|tTL(" . ($_[1]*1000).":7000:5000),20";
$AGI->exec('Dial', $dialext);

Now here I wanted to execute my query when the call is established to display the realtime counter for callshop users.
[/code]


#5

Variable ${ANSWERTIME}:

voip-info.org/wiki/view/Asterisk+variables


#6

Hello,

I read allready about Variable ${ANSWERTIME}:, But i can get this variable value when the call will be hangup. and this is not what i want.

I need the answertime while the same channel is active. Is it possible?