[Asterisk-Users] DIALSTATUS

Benoît Mérouze benoit.merouze at ipercom.com
Tue Nov 29 05:27:10 MST 2005


Code Lover wrote:
> Hi all,
>
> How i can call my perl agi script when the call is hungup. Because i
> am making some external Cdr calculation.
>   

Hi M. Lover,

There are two solutions for you:
- You can call an AGI on hangup by using the extension 'h' : exten => 
h,1,DeadAGI(myagi.agi)
- If you're using the Asterisk::AGI interface, you can catch the hangup 
in your perl program. Have a look at 
http://www.voip-info.org/wiki/view/Asterisk+perl+agi in the Callbacks 
section.
(Asterisk::Manager also provides the method setcallback() and you can 
catch typed callback like 'Hungup' or 'DEFAULT' but I have not tried it).

Regards,
Benoit

-- 
Benoit Merouze
Ingenieur Developpement d'Application Reseau
benoit.merouze at ipercom.com




More information about the asterisk-users mailing list