I had originally tried to do this using a Dialplan Injection. The syntax used in the “Notify” line works fine under Asterisk 1.2.x (and later), despite any impression to the contrary you may have from reading the original docs. And you do have to use the ending # in the Follow-Me definition or it just gets skipped over (is that a bug? I have no idea). Also, it’s not likely to inadvertently match anything in your existing dialplan, and using ****+ extension number lets you see immediately which extension the custom dialplan fragment is associated with. You could use any number that no one is likely to dial in place of ****(number) but I chose that because that’s absolutely undialable from most Linksys/Sipura equipment, and few people are likely to dial four *'s in a row anyway. If you want the notifications to go to more than one computer, just duplicate the topmost line of the custom context addition as many times as you need to, changing only the target IP address.ĭon’t forget to reload the configuration when you are finished, and test the result. If you want notifications for more than one extension, repeat the above for each extension you want to monitor. They show the following examples inserted into an Asterisk dial plan:Įxten => s,1000,Notify($| 525/ 192.168.0.123)Ĭhange the boldfaced items to the proper extension number and/or IP address of the computer to receive the notifications.
It appears the event could be anything but the client is set up to parse a string in a particular format. What this module does is give you the ability to insert a statement in the Asterisk dialplan that will send a notification to a particular IP address or system when a particular event happens. If that happens to create an extraneous character, then use the method mentioned above to delete it. Yes, I know that’s a screwy way to do it, but whatever works… EDIT: It occurs to me that you could probably just open up a text editor or a new message in your e-mail program, type in the correct IPaddress, select and copy it using Option+C, and then paste it into the field using Option+V. Highlight all the characters other than the correct ones using the mouse, then right-click and select “cut”, and you should be left with the correct server address. If you have typed it correctly, it will be in its correct form at the END of a string of garbage characters.
If that happens to you, just “blind type” the correct address (don’t look at the screen, watch the keyboard as you type). What I found was that the keyboard input routine was really screwy and that I got a bunch of extra characters.
You have to click the plus (+), then click in the location where the server address should be, and then a text box should appear which SHOULD allow you to enter the address. There also a bug where you enter the server address. Under “Notifier” I suggest you turn on Growl notifications if you have Growl installed, and turn off “Speak announcement” - that is a cool feature, but it only worked once for me, then I got no notifications thereafter until I turned “Speak announcement” back off. To just receive notifications (not use the dialer function - I’m only trying to tackle one problem at a time) you go to System Preferences | Other | Asterisk (yes they call their client “Asterisk” in the preference panel).
You also have to install the client on your Mac and configure it. (I went to the Asterisk CLI and did a restart when convenient just to make sure I wouldn’t interrupt any calls) Restart Asterisk or load the application module with:
Tar -xzf app_notify-1.0.tgz (or whatever version you got)Ĭd app_notify-1.0 (or whatever version you got) Wget (if using 1.2 branch of Asterisk, otherwise if using 1.4 branch then is the address to wget, or whatever is newest in the 2.0 series) For anyone else wanting to do this, here’s what you have to do from the command prompt:
Actually, what you have to do to make this work is install a module in Asterisk, THEN the client will work (except that I still need to figure out how to properly integrate it into FreePBX). Goes to show that I reall should read the whole page first. Now, I thought at first that this would work like the NV client, particularly since it shows you lines to add to nf (which of course would be manager_nf in FreePBX. Therefore I decided to look into another option.
The problem is that although he promised a version for Mac OS X nearly a year ago, it hasn’t been forthcoming. This had its issues (if Asterisk was restarted for any reason then it wouldn’t work until the client was restarted) but worked well enough. In the past I have used the Nerd Vittles U-Rang II for popup notifications on a PC.