http://phonewire.com/wp-content/uploads/Xorcom-Logo.jpg

 

https://www.cluecon.com/media/img/sponsor/voip-info_logo_x170_v2.png

 

https://lh5.googleusercontent.com/-UUDyQ0CdJwY/UsXGpq9p6DI/AAAAAAAAP-A/vUu7Bs8gr3U/w480-h500-k/Asterisk-Logo.PNG

 

http://www.nielsonnetworks.com/images/freepbx-logo.png

 

http://members.optusnet.com.au/bsharif/elastix/CoverElastix.jpg

 

http://www.asteriskguru.com/images/logo.gif

 

 

http://images.tmcnet.com/expo/images/logos/vitelity-logo.jpg

 

 

johnj.jpgAsterisk Tips/Fixes/Features

by John Johnson

These are various Asterisk how-to items I have found/developed over the last few years. Feel free to use or share them, I look forward to adding more as I am able to compile them into a share-able format from my own notes.    

“Experience is what you don’t get until just after you needed it.”

 

Home

How to:

Send an emailed alert message whenever 911 is dialed from your Asterisk VOIP PBX

By John Johnson, 5/18/2012

 

This feature can be used to notify an “emergency responder group” within a business that 911 has been dialed from an extension on the PBX, allowing those internal responders to go to the location and manage the emergency until Public Emergency Services personnel arrive. It also allows for identification of “mis-dials” so that personnel can have additional training to prevent false 911 calls in the future.

 

First make sure that your Asterisk VOIP PBX can successfully email to the address* you wish to receive these 911 alert messages. (i.e. send voicemail to email to test that address.)

 

Make sure that you have a working 911 outbound  route as in:

 

http://www.asterisk-pro.com/911email/index_files/image003.jpg

 

 

Add the following context to /etc/asterisk/extensions_custom.conf  Replacing “911 call from Extension” with your preferred email body text,  “911 Alert at” with your preferred email subject line text and email_address@you_want_to_send_to.com with the preferred email address*.

http://www.asterisk-pro.com/911email/index_files/image001.jpg

 

 

Within /etc/asterisk/extensions_custom.conf include the context under [from-internal-custom] as in:

http://www.asterisk-pro.com/911email/index_files/image008.jpg

 

 

After reloading asterisk, a 911 call will produce the following email message:

http://www.asterisk-pro.com/911email/index_files/image006.jpg

  

*(email address) The above code will transmit to only one email address, that email address may be a group address on an email server. On some email servers it is possible to create one address that will “forward” to multiple addresses. It is possible add additional email address “sends” to the above context code by adding additional lines in the following format:

exten => 911,3,System(echo "911 call from Extension ${CALLERID(NUM)} - ${CALLERID(NAME)} at ${STRFTIME(%C%m%d%y%H%M)}" | mail -s "911 Alert at ${CALLERID(NUM)}" additional_email_address@you_want_to_send_to.com)

 

 

As in:

http://www.asterisk-pro.com/911email/index_files/image005.jpg

It is also possible to send emails from this feature to cell phones via text. Most carriers have an email-to-text format i.e. AT&T email to text address format =  xxxxxxxxxx@mms.att.net (with xxxxxxxxxx being the cell phone number including area code)

 

 

Cut-and-Paste text:

 

include => emergency-notify-1

 

[emergency-notify-1]

exten => 911,1,Macro(user-callerid)

exten => 911,2,System(echo "911 call from Extension ${CALLERID(NUM)} - ${CALLERID(NAME)} at ${STRFTIME(%C%m%d%y%H%M)}" | mail -s "911 Alert at ${CALLERID(NUM)}" email_address@you_want_to_send_to.com)

 

Thanks to:

Tim Dickson of Auberge Resorts (he came up with the base working code used in this feature)

Bill Soto of Xorcom who put me onto Mr. Dickson’s work.

 

 

Home