Brian,

I have been able to successfully create a new package for, compile, and install the app_notify module. I have also successfully tested the new Notify command using a custom dialplan. To get this work on my Windows client machine, I also installed the Snarl client along with the NotifyServer client.

I am working on submitting the new package to the developers for inclusion in upcoming releases. Until then, hopefully the attached the app_notify.so module will also work for you.

Assuming you have a unionfs system, all you have to do to get this module installed is:
1. Transfer the file to your AstLinux box (i.e. ftp or wget).
2. Copy the file to the /usr/lib/asterisk/modules directory. (It should also get copied to your /oldroot/mnt/asturw/usr/lib/asterisk/modules directory)
3. chmod +x /usr/lib/asterisk/modules/app_notify.so
4. Reboot

Now you can run the 'show application Notify' asterisk command to verify it has installed correctly. If so, you can then add a Notify command to your dialplan. i.e.: exten => 1234,1,Notify(num|name|exten/server:port)

Let me know how it works out.

Thanks,
Steve

Stephen Erisman wrote:
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]

Attachment: app_notify.so
Description: Binary data

-------------------------------------------------------------------------
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