Lonnie,
 Thanks for the BASH suggestion. I'll give that a try.I'm really fond of Perl 
tho. That's my goto scripting language.
-Steve
    On Sunday, December 29, 2024 at 01:16:15 PM EST, Lonnie Abelbeck 
<li...@lonnie.abelbeck.com> wrote:  
 
 

> On Dec 29, 2024, at 11:09 AM, Michael Keuter <li...@mksolutions.info> wrote:
> 
> 
>> Am 29.12.2024 um 05:00 schrieb steve bennett via Astlinux-users 
>> <astlinux-users@lists.sourceforge.net>:
>> 
>> Greetings,
>> 
>> Has anyone tried doing AGI in Perl?
>> I'm getting AGI.pm not found.
>> Tried to install it but CPAN modules are not present either.
>> I'm running astlinux-1.2.1 - Asterisk 11.14.2
>> 
>> Thanks,
>> -Steve
> 
> Hi,
> 
> here are some infos I found in our Wiki regarding Perl and AGI (the Perl 
> stuff is in "/mnt/kd/perl/", the AGI in /mnt/kd/custom-agi/".
> 
> https://doc.astlinux-project.org/userdoc:changes-1.1
> 
> Michael

Hi Steve,

I have a very old Perl AGI that uses a "GrowlClient" module (no longer works 
with modern macOS)

pbx3 ~ # find /mnt/kd/perl/
--
/mnt/kd/perl/
/mnt/kd/perl/Asterisk
/mnt/kd/perl/Asterisk/AGI.pm
/mnt/kd/perl/Net
/mnt/kd/perl/Net/GrowlClient.pm
/mnt/kd/perl/Asterisk.pm
--

cat /mnt/kd/custom-agi/growlnotify.agi
--
#!/usr/bin/perl
use strict;
use warnings;
use locale;
use utf8;
use Net::GrowlClient;
use Asterisk::AGI;
use POSIX qw(locale_h); # Imports setlocale() and the LC_ constants.
use POSIX qw(strftime);
...
-- snip --

Rather then using perl (AstLinux has minimal installation), here are two 
examples of a Bash AGI

Weather Asterisk AGI [1]

CNAM-fix Asterisk AGI [2]

Lonnie


[1] https://abelbeck.com/lonnie/astlinux/info/weather.php

[2] https://abelbeck.com/lonnie/astlinux/info/cnamfix.php





_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.  
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to