Email notification of trunk status?

joshua

Joined
Jan 21, 2009
Messages
11
Likes
0
Points
0
#1
G'day,
is it possible to setup an email notification when there is a change of trunk status, ie trunk rejected or changes like that?

If I setup a failover trunk and the first goes down, I'll be oblivious to the fact and would like some notification.

Thanks!
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
You might have noticed that each trunk has an entry to "monitor trunk failures", you need to write a script to do whatever you want, which will be called when the trunk fails, that could easily include something to email you or even turn on your coffee machine. :)

ok I'll be serious (semi)

Code:
#!/bin/bash
echo "You're screwed, The cheap trunk you bought from XYZ.au is broke"|mail -s "you have a problem" joshua@tree.au
(stick it in /var/lib/asterisk/bin, chown it to asterisk and make it executable with chmod +x <the script> )
 

joshua

Joined
Jan 21, 2009
Messages
11
Likes
0
Points
0
#3
That's excellent, thanks. Love your cheek by the way ;)
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4
:) :) Which one? I have 4.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,567
Latest member
achilont13
Top