login | register
Wed 01 of Aug, 2007 [09:23 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.

Web www.voip-info.org
Shoutbox
  • Aykut, Wed 01 of Aug, 2007 [07:53 UTC]: Hi all, does anybody know about Thomson ST2030 SIP phone. I have upgraded it to latest version (1.56) but "Hold" and "Conf" features are not working after the upgrade ?? Do you know any solution or do you have Ver. 1.52 ?? Where can I find it?
  • Edward J Brown, Tue 31 of Jul, 2007 [23:33 UTC]: Has anybody experienced Choppy voice quality when using a Linksys SPA942 in an Asterisk Conference bridge? It works fine with my polycom and Cisco, but sucks with my Linksys.
  • www.astawerks.com, Fri 27 of Jul, 2007 [18:00 UTC]: does anyone use asterisk on top of clark connect? does it work good?
  • simon, Fri 27 of Jul, 2007 [14:16 UTC]: Hi All, Has anyone here managed to get the Cisco79x1 to successfully fail over to the backup proxy. I have 2 asterisk servers , handsets all register and function, except that backup proxy function doesn't work. Any working example would be very apprecia
  • Matthew Richmond, Thu 26 of Jul, 2007 [03:40 UTC]: using the page() application to page across our building...often the meetme conferences don't disconnect after the caller hangs up. Anyone else having this problem. (using Polycom phones)
  • Matthew Richmond, Wed 25 of Jul, 2007 [02:58 UTC]: thanks Nicholas Blasgen! I haven't worked with AGI before, but there's always a first! Thanks again!
  • Nicholas Blasgen, Tue 24 of Jul, 2007 [19:18 UTC]: Matthew Richmond, AGI will handle all that for you.
  • sam, Mon 23 of Jul, 2007 [16:39 UTC]: need help - certain voicemail extension will stop working and recording voicemail on asterisk - anyone know why and how to fix it? Thanks
  • john haji, Mon 23 of Jul, 2007 [14:55 UTC]: free calls to pakistan
  • bong, Sat 21 of Jul, 2007 [19:09 UTC]: hi good day to all can anyone help me how to configured the nortel sip to the signaling server and how to activate in mobile w/ sip compatible without mcs
Server Stats
  • Execution time: 0.21s
  • Memory usage: 2.18MB
  • Database queries: 28
  • GZIP: Disabled
  • Server load: 2.92

Asterisk Voicemail Notify for Support Numbers

I looked for a reference to do this for some time to replace the callout
feature in my old AVT voicemail.

I never found one, so I decided to dig in.

Here is my first run. It is in production, so unless I find a problem,
I am done.

Script set to run every 5 min. via cron.

This sets a lock file to prevent 2 scripts from running.
Check for a VM in our Emergency after hours support mailbox.
If found, it sends a numeric page to our rotating pager.
If no one has listened to the mail in 7 minutes, it calls a cell phone.
On this call, it connects directly to a prompt, then VoicemailMain with
the ext. already included.
If no one has listened to the mail in 7 minutes, it calls a second cell
phone.
On this call, it connects directly to a prompt, then VoicemailMain with
the ext. already included.
If no one has listened to the mail in 7 minutes, it calls the rotating
pager again.
This continues to loop until the VM is listened to.


isnotify.sh:

LOCKFILE=/tmp/5134outdial.lock
MESSAGEFILE=/var/spool/asterisk/voicemail/default/5134/INBOX/msg0000.txt
CALLFILE1=/tmp/5134outdial1.call
CALLFILE2=/tmp/5134outdial2.call
CALLFILE3=/tmp/5134outdial3.call
CALLUSER=asterisk
OUTGOING=/var/spool/asterisk/outgoing/

date
  1. echo lock file check
-f $LOCKFILE && echo $LOCKFILE exists && exit 0
touch $LOCKFILE

function recip1 {
if -f $MESSAGEFILE
then
echo $MESSAGEFILE exists!
echo calling IS pager
echo Channel: ZAP/g0/1XXXXXXX892 >> $CALLFILE1
echo MaxRetries: 2 >> $CALLFILE1
echo RetryTime: 60 >> $CALLFILE1
echo WaitTime: 30 >> $CALLFILE1
echo Context: ext-local >> $CALLFILE1
echo Extension: 5681 >> $CALLFILE1
echo Priority: 1 >> $CALLFILE1
echo "CallerID: IT VoiceMail <XXXXXX5682>" >> $CALLFILE1
chown $CALLUSER:$CALLUSER $CALLFILE1
chmod 664 $CALLFILE1
echo "move"
echo moving $CALLFILE1 to $OUTGOING
mv $CALLFILE1 $OUTGOING
else echo No MV
rm -f $LOCKFILE
exit
fi
sleep 10m
recip2
}

function recip2 {
if -f $MESSAGEFILE
then
echo $MESSAGEFILE exists!
echo calling BerkHolz
echo Channel: ZAP/g0/1XXXXXXX083 >> $CALLFILE2
echo MaxRetries: 2 >> $CALLFILE2
echo RetryTime: 60 >> $CALLFILE2
echo WaitTime: 30 >> $CALLFILE2
echo Context: ext-local >> $CALLFILE2
echo Extension: 5682 >> $CALLFILE2
echo Priority: 1 >> $CALLFILE2
echo "CallerID: IT VoiceMail <XXXXXX5682>" >> $CALLFILE2
chown $CALLUSER:$CALLUSER $CALLFILE2
chmod 664 $CALLFILE2
echo moving $CALLFILE2 to $OUTGOING
mv $CALLFILE2 $OUTGOING
else echo No MV
rm -f $LOCKFILE
exit
fi
sleep 10m
recip3
}

function recip3 {
if -f $MESSAGEFILE
then
echo $MESSAGEFILE exists!
echo calling Gibson
echo Channel: ZAP/g0/1XXXXXXX061 >> $CALLFILE3
echo MaxRetries: 2 >> $CALLFILE3
echo RetryTime: 60 >> $CALLFILE3
echo WaitTime: 30 >> $CALLFILE3
echo Context: ext-local >> $CALLFILE3
echo Extension: 5682 >> $CALLFILE3
echo Priority: 1 >> $CALLFILE3
echo "CallerID: IT VoiceMail <XXXXXX5682>" >> $CALLFILE3
chown $CALLUSER:$CALLUSER $CALLFILE3
chmod 664 $CALLFILE3
echo moving $CALLFILE3 to $OUTGOING
mv $CALLFILE3 $OUTGOING
else echo No MV
rm -f $LOCKFILE
exit
fi
sleep 10m
recip1
}

recip1
rm -f $LOCKFILE


Dial Plan:

exten => 5681,1,Answer
exten => 5681,n,Wait(3)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(X)
exten => 5681,n,SendDTMF(#)
exten => 5681,n,Macro(hangupcall)

exten => 5682,1,Answer
exten => 5682,n,Wait(1)
exten => 5682,n,Macro(user-callerid)
exten => 5682,n,Playback(it-services)
exten => 5682,n,Macro(get-vmcontext,5134)
exten => 5682,n,VoiceMailMain(5134@${VMCONTEXT})
exten => 5682,n,Macro(hangupcall)


Created by champster, Last modification by champster on Fri 17 of Nov, 2006 [12:34 UTC]

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2007 Arte Marketing, Inc.

Powered by bitweaver