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
[EMAIL PROTECTED]
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users