web statisticsweb stats

Business Phone Systems

Previous Thread
Next Thread
Print Thread
Rate Thread
#472429 08/19/08 03:50 AM
Joined: Oct 2006
Posts: 65
Member
OP Offline
Member
Joined: Oct 2006
Posts: 65
Does anyone know how to make Asterisk dial a string of Digits to light a message waiting indicator? For instance if you have a SIP enabled Legacy PBX you could connect to an asterisk box over the SIP trunks for a voicemail and IP extensions, but also as voicemail only for Digital and Analog Extensions off the PBX, and have Asterisk Dial for the PBX's MWI on and MWI off codes. Does this make since to anyone? I have looked at extern-notify and it looks like it could be used to turn on a MWI but how about turning it off.

Atcom VoIP Phones
VoIP Demo

Best VoIP Phones Canada


Visit Atcom to get started with your new business VoIP phone system ASAP
Turn up is quick, painless, and can often be done same day.
Let us show you how to do VoIP right, resulting in crystal clear call quality and easy-to-use features that make everyone happy!
Proudly serving Canada from coast to coast.

Joined: Dec 2006
Posts: 810
Member
Offline
Member
Joined: Dec 2006
Posts: 810
Here's a great link from a guy who sells * as standalone voicemail. This article is specific to a Partner ACS where he replaced the Partner mail VS.

https://www.voip-info.org/wiki/index.php?page=Asterisk-Partner+ACS+for+Voicemail


Pat Austin
Teleco Inc.
Product Manager/Sales Engineer
Adtran ATSP
TCTE/CTP Certified

Teleco Homepage
Joined: Jun 2007
Posts: 2,106
Member
Offline
Member
Joined: Jun 2007
Posts: 2,106
Ehhh. The short answer is Yes. The long answer involves a package of tylenol, a bottle of high-proof, and a single phrase mumbled over and over of "Lord save me".

Using Asterisk to bring analog/TDM phone systems within striking distance of VoIP trunks is easy. It happens all the time. To have Asterisk replace the voicemail/ACD system and then add the capability of VoIP extensions is a whole other headache.

Before you go out on this adventure I would re-evaluate why you are doing this. How big of a system are you talking about converting? What kind of trunk line capability does it have (T1 PRI hopefully)? To what "Degree" of integration are you looking for? Can you accept that you may only have 80% of the integration working properly (from a features and reliability standpoint)? Does your customer know this?

Your only real hope for a decent "integration" is to strip the system down and reprogram it to be a bare-bones KSU. All features would need to be moved to Asterisk to have everything integrate properly and some of the old features on the handset (transfer, conference) would no longer properly work across the whole thing.

I wish you luck with your endeavor but I think you will find that there are some major gotcha's that may not be well recieved from such an integration. The author of the link in p2ii's post even says that it's not a full integration.

Joined: Oct 2006
Posts: 65
Member
OP Offline
Member
Joined: Oct 2006
Posts: 65
Thanks Kumba I have already successfully setup an Asterisk Box as a Network Node, similar to a QSig network node only using SIP trunks. It allows calls to pass between Digital Phones on the PBX and SIP Phones on the Asterisk Box. I can already pass calls directly through the PBX to a Voicemail box on the Asterisk Box, I am hoping to make it place a call back to the PBX to dial a MWI on Code + Ext.

Joined: Jun 2007
Posts: 2,106
Member
Offline
Member
Joined: Jun 2007
Posts: 2,106
well if everything else is acceptable then we would need to know more information like what PBX is Asterisk talking to? What voicemail?

Not all systems use in-band DTMF. Some have serial or proprietary protocols.

Joined: Mar 2008
Posts: 54
Member
Offline
Member
Joined: Mar 2008
Posts: 54
Did you ever get this to work? I did a similar setup following the voip-info.org article that p2ii referenced. I used externnotify to call a script to turn the MWI on and off. If you would like to see the script I would be happy to send it to you or post it here.

Joined: Aug 2004
Posts: 9,159
Likes: 17
Admin
*****
Offline
Admin
*****
Joined: Aug 2004
Posts: 9,159
Likes: 17
Post it here....knowledge is power. Thanks for the input.


[Linked Image]
Joined: Mar 2008
Posts: 54
Member
Offline
Member
Joined: Mar 2008
Posts: 54
OK, this is the script called from externnotify. Basically externnotify calls the script and passes the context, extension, and number of new messages every time someone accesses their voicemail. So if I left a message on extension 12, it would pass "default, 12, 1" to the script. The script keeps a log at /var/log/asterisk/mwi, so be sure to rotate that log if you leave it enabled.

Code
#!/bin/bash
MAILBOX=$2
MESSAGES=$3

if [ "$MAILBOX" -gt 50 ]; then
   echo "Not an Avaya phone on extension $MAILBOX - exiting" >> /var/log/asterisk/mwi
   exit
fi

if [ "$MESSAGES" -gt 0 ]; then
  echo "Turning on mwi on $MAILBOX" >> /var/log/asterisk/mwi
  echo "Channel: Zap/g0/#09$MAILBOX" > $MAILBOX.call
else
  echo "Turning off mwi on $MAILBOX" >> /var/log/asterisk/mwi
  echo "Channel: Zap/g0/#10$MAILBOX" > $MAILBOX.call
fi


echo "MaxRetries: 2" >> $MAILBOX.call
echo "RetryTime: 60" >> $MAILBOX.call
echo "WaitTime: 30" >> $MAILBOX.call

echo "Context: custom-vmnotify" >> $MAILBOX.call
echo "Extension: s" >> $MAILBOX.call
echo "Priority: 1" >> $MAILBOX.call
echo "Archive: yes" >> $MAILBOX.call

chown asterisk.asterisk $MAILBOX.call
mv -f $MAILBOX.call /var/spool/asterisk/outgoing/
  
Also I added this to my extensions.conf:
Code
 [custom-vmnotify] ; for mwi.sh script
exten => s,1,Wait(5)
exten => s,2,Hangup
 
Hope that helps anyone looking to do the same thing. I would also warn that Kumba's advice on the subject is right on the money (except for mixing Tylenol and high-proof - bad for the liver). The concept of an open source replacement for Amanda, Duovoice, or any other pc based voicemail is pretty compelling but Asterisk has a ways to go before this is anything close to "turnkey".


Link Copied to Clipboard
Forum Statistics
Forums84
Topics94,298
Posts638,870
Members49,769
Most Online5,661
May 23rd, 2018
Popular Topics(Views)
212,710 Shoretel
189,749 CTX100 install
187,917 1a2 system
Newest Members
Soulece, Robbks, A2A Networks, James D., Nadisale
49,768 Registered Users
Top Posters(30 Days)
Toner 27
teleco 9
dans 6
dexman 4
Who's Online Now
0 members (), 99 guests, and 342 robots.
Key: Admin, Global Mod, Mod
Contact Us | Sponsored by Atcom: One of the best VoIP Phone Canada Suppliers for your business telephone system!| Terms of Service

Sundance Communications is not affiliated with any of the above manufacturers. Sundance Phone System Forums - VOIP & Cloud Phone Help
©Copyright Sundance Communications 1998-2024
Powered by UBB.threads™ PHP Forum Software 7.7.5