Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] External MWI question for Asterisk


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oej at edvina.net
Guest





PostPosted: Tue Feb 05, 2008 1:52 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

5 feb 2008 kl. 06.31 skrev Jason Crum:

Quote:
Hey there. I've been working on a project to integrate Asterisk with
Exchange Unified Messaging via sipX using large parts borrowed from:

http://blog.lithiumblue.com/2007/04/accessing-exchange-2007-unified_29.html

... and everything works surprisingly well. The one problem I have
is MWI, or a lack thereof. Exchange 2007 doesn't support MWI of any
kind (!), so I've been looking into using a product from Geomant to
fill that gap. They have a package called MWI2007 that handles MWI
for Exchange 2007.

The Geomant guys were good enough to supply me with a demo copy and
I've got it running. So far, so good. The one thing I can't seem to
figure out is how to make Asterisk accept external MWI notifications
for the phones registered to it. At first I thought it was the sipX
server not routing the MWI back to Asterisk, but a packet dump
confirmed that the MWI packets are reaching Asterisk.

I've been looking through voip-info.org and a few other sites, but I
can't seem to find any information on how to allow Asterisk to
accept external MWI SIP notifications.

Could someone point me in the right direction on how to tell
Asterisk to accept MWI notifications from an external source for
phones it currently has registered?
It is currently not possible. With the new event-driven MWI
notification system in 1.6, it should be possible to add code for it,
but it would be kind of tricky. If you send an MWI to an extension -
how do we know where to send it? We either need to use the existing
hints that connect the extensions to the device name space, or add a
new sort of voicemail hints that connects an extension to a
voicemailbox ID that we devices can subscribe to.

/O
Back to top
greyvoip at yahoo.com.au
Guest





PostPosted: Tue Feb 05, 2008 5:36 pm    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

----- Original Message ----

Quote:
From: Jason Crum <jccrum at gmail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>

Quote:
Sent: Tuesday, 5 February, 2008 7:13:12 PM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk

Gah. So currently in 1.4, there is no method of having Asterisk accept SIP NOTIFY from another server, and pass it on to >endpoints if it matches? I can't imagine this being that complex, but then again I'm not familiar with the Asterisk internals. It just >seems Asterisk would compare the SIP NOTIFY to what it has currently registered (sip show peers) and forward it on to the >endpoint. I'm pretty sure sipXecs can do this.


Hi Jason,

We use Asterisk with realtime so that all the SIP peer's contact URI's are recorded in a database. Our separate MWI service then is able to lookup where to send the MWI notifications to and doesn't need to involve Asterisk in their sending.

Regards,

Greyman.







Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail
Back to top
greyvoip at yahoo.com.au
Guest





PostPosted: Tue Feb 05, 2008 7:40 pm    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

Quote:
----- Original Message ----

Quote:
From: Jason Crum <jccrum at gmail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>

Quote:
Sent: Tuesday, 5 February, 2008 10:59:59 PM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk

Ah, so you have a MWI service that polls the Asterisk realtime DB for the SIP URI information for an external voicemail system? > I'm guessing whatever you're using for voicemail alerts the your MWI service (custom written for this?)?


Hi Jason,

We use the Asterisk voicemail system as well and have a custom app that accepts the piped voicemail from Asterisk, saves it and then sets a flag in the realtime database that the MWI service can check. It sounds like a lot of bits and pieces but it all works well.


Regards,

Greyman.










Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail
Back to top
oza-4h07 at myamail.com
Guest





PostPosted: Wed Feb 06, 2008 2:35 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

Hi,

2008/2/5, Grey Man <greyvoip at yahoo.com.au>:
Quote:


----- Original Message ----

Quote:
From: Jason Crum <jccrum at gmail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <
asterisk-users at lists.digium.com>

Quote:
Sent: Tuesday, 5 February, 2008 7:13:12 PM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk


Quote:

Gah. So currently in 1.4, there is no method of having Asterisk accept
SIP NOTIFY from another server, and pass it on to >endpoints if it matches?
I can't imagine this being that complex, but then again I'm not familiar
with the Asterisk internals. It just >seems Asterisk would compare the SIP
NOTIFY to what it has currently registered (sip show peers) and forward it
on to the >endpoint. I'm pretty sure sipXecs can do this.


Hi Jason,

We use Asterisk with realtime so that all the SIP peer's contact URI's are
recorded in a database. Our separate MWI service then is able to lookup
where to send the MWI notifications
Do you send those notifications to SIP hardphones ?
Then, how do you proceed ? Is there a standard way to make (or stop) a SIP
hardphone Message Waiting Indicator blinking ?

Cheers

to and doesn't need to involve Asterisk in their sending.
Quote:

Regards,

Greyman.







Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080206/dd0e6b5e/attachment.htm
Back to top
benny+usenet at amorse...
Guest





PostPosted: Wed Feb 06, 2008 4:09 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

"Jason Crum" <jccrum at gmail.com> writes:

Quote:
Gah. So currently in 1.4, there is no method of having Asterisk accept SIP
NOTIFY from another server, and pass it on to endpoints if it matches? I
can't imagine this being that complex, but then again I'm not familiar
with the Asterisk internals. It just seems Asterisk would compare the SIP
NOTIFY to what it has currently registered (sip show peers) and forward it
on to the endpoint. I'm pretty sure sipXecs can do this.

Anyway, thanks for the reply Olle. I think if I re-design my solution for
the phones to register with sipXecs and not Asterisk I might make some
headway, so that's my next move.

What do you gain from having Asterisk at all, if you use sipXecs?
/Benny
Back to top
oej at edvina.net
Guest





PostPosted: Wed Feb 06, 2008 10:22 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

5 feb 2008 kl. 20.13 skrev Jason Crum:

Quote:
Gah. So currently in 1.4, there is no method of having Asterisk
accept SIP NOTIFY from another server, and pass it on to endpoints
if it matches? I can't imagine this being that complex, but then
again I'm not familiar with the Asterisk internals. It just seems
Asterisk would compare the SIP NOTIFY to what it has currently
registered (sip show peers) and forward it on to the endpoint. I'm
pretty sure sipXecs can do this.
But you have to consider that you are mixing two namespaces in
Asterisk. SIPx is a SIP-only proxy/PBX, but Asterisk is multiprotocol.
We have the dialplan, which is the address you call. And then device
names, which are more "accounts". Those are separate. A notify is
addressed to a SIP uri,
something that we handle as an extension. We need to route it
internally. You might want to send a SIP MWI notify to a hotel phone
connected to a channel bank to get those irritating red lamps to
blink... You can't think SIP only in Asterisk (even though I sometimes
like the idea) since we've
got a multiprotocol architecture.

/O
Quote:


Anyway, thanks for the reply Olle. I think if I re-design my
solution for the phones to register with sipXecs and not Asterisk I
might make some headway, so that's my next move.

On Feb 5, 2008 1:52 AM, Johansson Olle E <oej at edvina.net> wrote:

It is currently not possible. With the new event-driven MWI
notification system in 1.6, it should be possible to add code for it,
but it would be kind of tricky. If you send an MWI to an extension -
how do we know where to send it? We either need to use the existing
hints that connect the extensions to the device name space, or add a
new sort of voicemail hints that connects an extension to a
voicemailbox ID that we devices can subscribe to.

/O

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

---
* Olle E Johansson - oej at edvina.net
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden
Back to top
greyvoip at yahoo.com.au
Guest





PostPosted: Fri Feb 08, 2008 6:42 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

Quote:
----- Original Message ----

Quote:
From: Olivier <oza-4h07 at myamail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>

Quote:
Sent: Wednesday, 6 February, 2008 7:35:10 AM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk

Do you send those notifications to SIP hardphones ?

Quote:
Then, how do you proceed ? Is there a standard way to make (or stop) a SIP hardphone Message Waiting Indicator
blinking ?



Hi Olivier,

Yes we send MWI notifications to all user agents on our service which include IP Phones and ATAs.

We use the externnotify option in voicemail.conf to pipe out to an external script everytime a voicemail is checked. That script does a few things that allows our MWI service to know that there are no longer any new voicemails for a specific and a NOTIFY request is sent to the user agent to turn the MWI off.

Regards,

Greyman.










Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail
Back to top
oza-4h07 at myamail.com
Guest





PostPosted: Sat Feb 09, 2008 1:55 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

2008/2/8, Grey Man <greyvoip at yahoo.com.au>:
Quote:


Quote:
----- Original Message ----

Quote:
From: Olivier <oza-4h07 at myamail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <
asterisk-users at lists.digium.com>

Quote:
Sent: Wednesday, 6 February, 2008 7:35:10 AM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk


Quote:

Do you send those notifications to SIP hardphones ?

Quote:
Then, how do you proceed ? Is there a standard way to make (or stop) a
SIP hardphone Message Waiting Indicator
Quote:
blinking ?



Hi Olivier,

Yes we send MWI notifications to all user agents on our service which
include IP Phones and ATAs.

We use the externnotify option in voicemail.conf to pipe out to an
external script everytime a voicemail is checked. That script does a few
things that allows our MWI service to know that there are no longer any new
voicemails for a specific and a NOTIFY request is sent to the user agent
Do you mean your script does send a NOTIFY messages to hardphones ? Then,
how did you write such SIP-aware script (language, ...) ?
If not, how external script and Asterisk do communicate ?

to turn the MWI off.
Quote:

Regards,


Regards

Greyman.
Quote:










Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080209/966a2faf/attachment.htm
Back to top
greyvoip at yahoo.com.au
Guest





PostPosted: Sat Feb 09, 2008 6:07 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

Quote:
----- Original Message ----

Quote:
From: Olivier <oza-4h07 at myamail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>

Quote:
Sent: Saturday, 9 February, 2008 6:55:15 AM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk

Quote:
Do you mean your script does send a NOTIFY messages to hardphones ? Then, how did you write such SIP-aware script (language, ...) ?

If not, how external script and Asterisk do communicate ?



Our MWI program is written in C# but to send SIP NOTIFY requests is very straight forward and could be done in anything. Our program is 250 lines of code and that includes polling the database to decide when to send the NOTIFY requests. In the NOTIFY request the body consists of:

Messages-Waiting: yes|no

That's all you need to turn on and off the MWI indicators on every device we've come across. There's nothing tricky to MWI at all.

Regards,

Greyman.




Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail
Back to top
oza-4h07 at myamail.com
Guest





PostPosted: Mon Feb 11, 2008 6:16 am    Post subject: [asterisk-users] External MWI question for Asterisk Reply with quote

2008/2/9, Grey Man <greyvoip at yahoo.com.au>:
Quote:


Quote:
----- Original Message ----

Quote:
From: Olivier <oza-4h07 at myamail.com>

Quote:
To: Asterisk Users Mailing List - Non-Commercial Discussion <
asterisk-users at lists.digium.com>

Quote:
Sent: Saturday, 9 February, 2008 6:55:15 AM

Quote:
Subject: Re: [asterisk-users] External MWI question for Asterisk



Quote:
Do you mean your script does send a NOTIFY messages to hardphones ?
Then, how did you write such SIP-aware script (language, ...) ?

If not, how external script and Asterisk do communicate ?



Our MWI program is written in C# but to send SIP NOTIFY requests is very
straight forward and could be done in anything. Our program is 250 lines of
code and that includes polling the database to decide when to send the
NOTIFY requests. In the NOTIFY request the body consists of:

Messages-Waiting: yes|no
I didn't think it could be that simple : I'll try to include this in
voip-info.org Wiki, if it's not already there.

That's all you need to turn on and off the MWI indicators on every device
Quote:
we've come across. There's nothing tricky to MWI at all.

Regards,


Regards

Greyman.
Quote:




Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080211/222fbd09/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services