Brian,

This should be pretty easy to implement using PHP AGI.
I have been wanting something similar and (based on your email) have 
tested the following so far:

1. downloaded the php-growl class and saved it as growl.inc
    http://code.google.com/p/php-growl/
2. created a test.php file with the following lines:
<?php
require_once('growl.inc');
$client = new Growl("Asterisk PBX");
$client->setAddress("127.0.0.1","password");
$client->addNotification("Incoming Call");
$client->register();
$client->notify("Incoming Call", "Incoming Call", "me <8005551234>");
?>
3. running the test.php file pops up a notification on my computer

FYI... I successfully ran this on a Windows box using the 
'growl-for-windows' client:
    http://code.google.com/p/growl-for-windows/

My next step will be to create an AGI PHP script and upload the files to 
AstLinux.
As long as PHP on AstLinux was compiled with support for either 
socket_create or fsockopen it should work fine.

Let me know if you find a better way of doing this.

FYI... it looks like there is also an Asterisk Module that directly 
supports this, but it has to be added as a package and compiled into the 
image before it can be used:
    http://www.mezzo.net/asterisk/app_notify.html
Maybe we can get one of the developers to add a package for this? ;)  If 
it helps, I can create the package files and build a test image on one 
of my dev machines.  I would just need someone to verify and check it in 
for me.

Thanks,
-Steve

brianbarr wrote:
> Greetings -- I am attempting to implement Growl on Astlinux  for call  
> notifications to local systems on the lan.
>
> For a description see
>
> http://en.wikipedia.org/wiki/Growl_(software)
>
> or
>
> http://growl.info/
>
>
> There is a native Linux module app_notify:
> http://www.mezzo.net/asterisk/app_notify.html
>
> A perl implementation:
> http://growl.info/documentation/developer/mac-growl.php
>
> A PHP implementation:
> http://code.google.com/p/php-growl/
>
> A Python implementation:
> http://growl.info/documentation/developer/growlnotifier.php
>
> There is also a Ruby version and others.
>
>
> I'm trying to figure out what is the best and easiest path to take  
> here...
>
> AGI scripting would require no changes to Astlinux so maybe that road.
>
> Astlinux has micro-perl, but I don' t think it has the needed modules  
> present for mac-growl.
>
> No python or ruby so those are out. PHP then..?
>
> Anyone willing to chime in on this?
>
> Thanks,
>
> Brian Barr
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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 [EMAIL 
> PROTECTED]
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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 [EMAIL 
PROTECTED]

Reply via email to