Using the Notify module to send incoming call notifications to computers

From Etel

Jump to: navigation, search

Contents

Problem

You want to display incoming calls on your computer.

Solution

Using the Notify module, it is possible to send notifications for incoming calls over the network. If you don't already have the Notify module installed, it is available from http://mezzo.net/asterisk/app_notify.html. Download it and follow the installation instructions there.

Sending a notification is straight-forward. Assuming your PC where you want the notification displayed is reachable as 10.11.12.13, add the following to the extension for incoming calls in extensions.ael:

Notify(${CALLERIDNUM},${CALLERIDNAME},${EXTEN}/10.11.12.13);

Alternatively, use the following line in the old extensions.conf style:

exten => s,1000,Notify(${CALLERIDNUM}|${CALLERIDNAME}|${EXTEN}/10.11.12.13)

If you're running Linux on your PC, a Notify client for Linux is available at http://gastify.googlepages.com/. If you want to display notifications on a Mac running Mac OS X, you can download the Mac OS X Notify client from http://mezzo.net/asterisk/app_notify.html. A Windows client is not yet available at the time of this writing.

Discussion

The only part of the Notify command you likely have to change is the IP address of the receiving computer. Replace the 10.11.12.13 with your computer's IP address on your LAN in order to do that.

If you want to send notifications to multiple computers, just add multiple Notify statements, one per computer.

If you have multiple extensions for different people, and you're keeping those extensions in a database along with people's workstation IP addresses, you can change the third parameter so that only the called person receives the notification. For example, if you're storing the names and IP addresses in the Asterisk database, your code could look like this:

DBGet(name=names/${EXTEN});
DBGet(ip=ips/${EXTEN});
Notify(${CALLERIDNUM},${CALLERIDNAME},${name}/${ip});

Alternatively, if you're managing extensions manually, you can add a Notify statement to each extension similar to the following old-style dialplan excerpt:

exten => 501,1000,Notify(${CALLERIDNUM}|${CALLERIDNAME}|Peter/10.1.1.1)
exten => 502,1000,Notify(${CALLERIDNUM}|${CALLERIDNAME}|Jack/10.1.1.2)
exten => 503,1000,Notify(${CALLERIDNUM}|${CALLERIDNAME}|Jane/10.1.1.3)


Metadata

  • By: Danny 01:53, 29 January 2007 (PST)
Personal tools