Before I go and try to write something myself, I'm curious if anyone has a script that they're using for setting and clearing the MWI on a legacy PBX. I need to pick up a Zap channel and dial #63XXX to set the MWI, or #64XXX to clear it, where XXX is the extension number. One complication is that I've got a couple dozen extensions to handle the MWI for, and only four channels to work with, so I'll need to either only set or clear the ones that have changed, or queue up the callouts somehow. --- David Brodbeck, System Administrator InterClean Equipment, Inc. 3939 Bestech Drive Suite B Ypsilanti, MI 48197 (734) 975-2967 x221 (734) 975-4756 (fax)
There was a bounty a while back to set up SMDI on *. This would be ideal if you had a serial interface on your PBX. By the #63 and #64 code it looks like you are talking about a Toshiba PBX. At one time I actually wrote a cron script that would check to see if there were messages in folders and if there were it would generate a .call file that would dial the #63+ext. If there were no messages it would dial a #64. I dedicated 1 port to do this for approximately 40 phones. Henry ----- Original Message ----- From: "David Brodbeck" <DavidB@mail.interclean.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Tuesday, March 22, 2005 9:46 AM Subject: [Asterisk-Users] Setting MWI on legacy PBX> Before I go and try to write something myself, I'm curious if anyone has a > script that they're using for setting and clearing the MWI on a legacy > PBX. > I need to pick up a Zap channel and dial #63XXX to set the MWI, or #64XXX > to > clear it, where XXX is the extension number. One complication is that > I've > got a couple dozen extensions to handle the MWI for, and only four > channels > to work with, so I'll need to either only set or clear the ones that have > changed, or queue up the callouts somehow. > > --- > > David Brodbeck, System Administrator > InterClean Equipment, Inc. > 3939 Bestech Drive Suite B > Ypsilanti, MI 48197 > (734) 975-2967 x221 > (734) 975-4756 (fax) > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
> -----Original Message----- > From: Henry Devito [mailto:hdevito@mchsi.com]> By the #63 and #64 code it looks > like you are talking about a Toshiba PBX. At one time I actually wrote a > cron script that would check to see if there were messages in folders andif> there were it would generate a .call file that would dial the #63+ext. If> there were no messages it would dial a #64. I dedicated 1 port to do this> for approximately 40 phones.Yeah, that sounds like pretty much exactly what I need. How did you handle the timing? I tried just throwing all the call files in at once, but Asterisk doesn't take kindly to that. It tries to dial them all at once and I get "app_queue.c:374 in changethread: Can't change device '**Unknown**' with no technology!" errors.
> -----Original Message----- > From: David Brodbeck [mailto:DavidB@mail.interclean.com]> How did you handle > the timing? I tried just throwing all the call files in at once, but > Asterisk doesn't take kindly to that.Just now I had the sudden inspiration to wait until there are no .call files before creating a new one. That seems to have fixed the problem. Don't know why it didn't occur to me sooner...it seems obvious, now.
You could probably utilize vmnotify to do exactly what you are looking for: http://mikecathey.com/code/vmnotify/ -Brian On Tue, 22 Mar 2005 at 10:46 David Brodbeck (DavidB@mail.interclean.com) wrote:> Before I go and try to write something myself, I'm curious if anyone has a > script that they're using for setting and clearing the MWI on a legacy PBX. > I need to pick up a Zap channel and dial #63XXX to set the MWI, or #64XXX to > clear it, where XXX is the extension number. One complication is that I've > got a couple dozen extensions to handle the MWI for, and only four channels > to work with, so I'll need to either only set or clear the ones that have > changed, or queue up the callouts somehow. > > --- > > David Brodbeck, System Administrator > InterClean Equipment, Inc. > 3939 Bestech Drive Suite B > Ypsilanti, MI 48197 > (734) 975-2967 x221 > (734) 975-4756 (fax) > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Brian S. Adelson Vice President of Systems Administration Voicenet Phone 215.674.9290 x1146 brian@voicenet.com
> ----- Original Message ----- > From: "Brian S. Adelson" <brian@voicenet.com>> > You could probably utilize vmnotify to do exactly what you > are looking > > for: > > > > http://mikecathey.com/code/vmnotify/Thanks. I may use that as a starting point if my home-grown solution doesn't work. I have a shell script that seems to be doing an okay job so far, though I won't know for sure until the system is in full use.