One of the connections my asterisk PBX has is an analog extension from a Comdial hybrid. On the Comdial system, message waiting is turned on by dialing *3 and then the station number. It is turned off by dialing #3 and the station number. I was wanting to have Asterisk (or Comedian mail) set the message lamp in the Comdial system when a new message arrives for a user, and extinguish the lamp when the message has been played. I understand that this has something to do with a file that is placed in /var/spool/asterisk/outgoing, but I have no idea about + what the contents of that file should be, + how Comedian mail would initiate putting the file into the outgoing queue, and + how Comedian mail would initiate putting the 'extinguish' file into the outgoing queue. Has anyone done this sort of thing already? If so, can you point me in the right direction? As I mentioned in yesterday's post, I did find a question and partial answer to this in the asterisk-users archives, but I need a bit more information before I can make it work for me. Thanks in advance for any help you can give me.
I have done something simmillar, but not the same. I send mwi notification to our softswitch (SIP). Basically I wrote a small app in pascal that sends a sip message to the softswitch. The app is called everytime a message is left or retrieved, using the extrennotify option in voicemail.conf. You could easily do something simillar, what you need to do, is write a script or app (if one does not already exist) that creates call file based on the parameters passed by externnotify. Hope this helps. Umar --- Greg Blakely <greg@vyger.net> wrote:> One of the connections my asterisk PBX has is an > analog > extension from a Comdial hybrid. > > On the Comdial system, message waiting is turned on > by dialing > *3 and then the station number. > It is turned off by dialing #3 and the station > number. > > I was wanting to have Asterisk (or Comedian mail) > set the > message lamp in the Comdial system when a new > message arrives for a > user, and extinguish the lamp when the message has > been played. > > I understand that this has something to do with a > file that is > placed in /var/spool/asterisk/outgoing, but I have > no idea about > > + what the contents of that file should be, > + how Comedian mail would initiate putting the file > into the > outgoing queue, and > + how Comedian mail would initiate putting the > 'extinguish' file > into the outgoing queue. > > Has anyone done this sort of thing already? If so, > can you > point me in the right direction? > > As I mentioned in yesterday's post, I did find a > question and > partial answer to this in the asterisk-users > archives, but I need a bit > more information before I can make it work for me. > > Thanks in advance for any help you can give me. > > > _______________________________________________ > 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>___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
Yes, it helps quite a bit. It shows me where Comedian Mail spawns the external app. Do you have a copy of your SIP MWI script? I may be able to use it as a starting point. Also, can you tell me what variables are passed from asterisk to the app? Thank you very much. Greg> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Umar Sear > Sent: Saturday, August 14, 2004 7:10 AM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] External MW Lamp On/Off > > I have done something simmillar, but not the same. > > I send mwi notification to our softswitch (SIP). > Basically I wrote a small app in pascal that sends a sip > message to the softswitch. The app is called everytime a > message is left or retrieved, using the extrennotify option > in voicemail.conf. > > You could easily do something simillar, what you need to do, > is write a script or app (if one does not already exist) that > creates call file based on the parameters passed by externnotify. > > Hope this helps. > > Umar > --- Greg Blakely <greg@vyger.net> wrote: > > One of the connections my asterisk PBX has is an analog > extension > > from a Comdial hybrid. > > > > On the Comdial system, message waiting is turned on by dialing > > *3 and then the station number. > > It is turned off by dialing #3 and the station number. > > > > I was wanting to have Asterisk (or Comedian mail) set > the message > > lamp in the Comdial system when a new message arrives for a > user, and > > extinguish the lamp when the message has been played. > > > > I understand that this has something to do with a file > that is placed > > in /var/spool/asterisk/outgoing, but I have no idea about > > > > + what the contents of that file should be, > > + how Comedian mail would initiate putting the file > into the outgoing > > queue, and > > + how Comedian mail would initiate putting the > 'extinguish' file into > > the outgoing queue. > > > > Has anyone done this sort of thing already? If so, can > you point me > > in the right direction? > > > > As I mentioned in yesterday's post, I did find a > question and partial > > answer to this in the asterisk-users archives, but I need a > bit more > > information before I can make it work for me. > > > > Thanks in advance for any help you can give me. > > > > > > _______________________________________________ > > 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 > > > > > > > > ___________________________________________________________ALL > -NEW Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com > _______________________________________________ > 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 > > >
Thank you. That will probably get me to where I need to go.> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Dunc > Sent: Wednesday, August 18, 2004 7:19 AM > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] External MW Lamp On/Off > > Greg, > > > Yes, it helps quite a bit. It shows me where Comedian > Mail spawns the > > external app. > > > > Do you have a copy of your SIP MWI script? I may be able > to use it as a > > starting point. > > FWIW, I've been using my extensions.conf to set/unset MWI on phones > attached to Cisco Call Manager - it's a bit of a hack but I couldn't > find anything better searching around. We've got CM4 > interconnected to > * with a SIP trunk. > > To change the MWI status I spoof the caller ID and send a > call from * to > the CM set or unset number, which doesn't sound so different > from what > you need to do other than it's a SIP call that changes the > MWI. I guess > you wouldn't need to worry about caller id as you'd be > dialling out on > an analogue line. > > It's not very pretty, but it seems to work OK, the main > drawback is that > if a user retrieves their mail from someone else's phone the > light stays > lit. I think that's fixable, but at the moment it's not a > big deal for me. > > Extract below - 100 is the voicemail entry point, and the 600/700 > sequences in the h extension deal with figuring out what to do after > exit from voicemail. > > Dunc > > --- > > [globals] > VMAIL=0 > [local] > ; h - hangup > ; > exten => h,1,GotoIf($[${VMAIL} != 0]?600) > exten => h,2,Hangup > ; > ; When exiting voicemail, check for new messages in the recipients > ; mailbox and check that their MWI is set accordingly. 102022@ccm > ; unsets MWI, 112022@ccm sets. Silly numbers that came about from > ; getting the config togther. They need changing. > ; > ; This stuff actually needs to be in a context of its own, so that > ; the h extension doesn't have to have the gotoif stuff. (maybe) > exten => h,600,SetCIDNum(${VMAIL}) > exten => h,601,SetGlobalVar(VMAIL=0) > exten => h,602,HasNewVoicemail(${CALLERIDNUM}@default:INBOX) > exten => h,603,Dial(SIP/102022@ccm) > exten => h,604,Hangup > exten => h,703,Dial(SIP/112022@ccm) > exten => h,704,Hangup > ; > ; > ; > ; Voicemail. > ; First, check if the call is a redirection (ie someone > ; being transferred in to leave a message) - CM redirects to > 1+<ccm ext> > ; to indicate that this is the case. Set $VMAIL to the destination > ; mailbox for exit handling (ugly). > ; > ; If it's not a redirect, send to voicemail with the callerid as the > ; mailbox, otherwise use the diversion field. > exten => 100,1,Wait(1) > exten => 100,2,GotoIf($[${RDNIS}:1....]?9) > exten => 100,3,SetGlobalVar(VMAIL=${CALLERIDNUM}) > exten => 100,4,VoicemailMain(${CALLERIDNUM}) > exten => 100,5,Hangup > exten => 100,9,SetGlobalVar(VMAIL=${RDNIS:1}) > exten => 100,10,Voicemail(u${RDNIS:1}) > exten => 100,11,Hangup > > _______________________________________________ > 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 > > >