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

2008-02-11 Thread Olivier
2008/2/9, Grey Man [EMAIL PROTECTED]:


  - Original Message 

  From: Olivier [EMAIL PROTECTED]

  To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

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



  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
 we've come across. There's nothing tricky to MWI at all.

 Regards,


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

___
-- 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

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

2008-02-09 Thread Grey Man

 - Original Message 

 From: Olivier [EMAIL PROTECTED]

 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

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



 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



___
-- 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


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

2008-02-08 Thread Grey Man

 - Original Message 

 From: Olivier [EMAIL PROTECTED]

 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

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


 
 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 ?



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



___
-- 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


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

2008-02-08 Thread Olivier
2008/2/8, Grey Man [EMAIL PROTECTED]:


  - Original Message 

  From: Olivier [EMAIL PROTECTED]

  To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

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


 
  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 ?



 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.

 Regards,


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

___
-- 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

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

2008-02-06 Thread Benny Amorsen
Jason Crum [EMAIL PROTECTED] writes:

 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



___
-- 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


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

2008-02-06 Thread Johansson Olle E

5 feb 2008 kl. 20.13 skrev Jason Crum:

 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


 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED]
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden




___
-- 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


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

2008-02-06 Thread Jason Crum
My first post on this subject describes the environment in which I'm using
sipX. I'm only using sipX as a method of getting UDP to TCP and back again.

This is only a test lab I'm working with, but in production we use Asterisk
and several thousand dollars worth of Digium equipment to connect to the PRI
and echo cancellation hardware, so there's that ;)

On Feb 6, 2008 4:09 AM, Benny Amorsen [EMAIL PROTECTED] wrote:



 What do you gain from having Asterisk at all, if you use sipXecs?


 /Benny



 ___
 -- 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

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

2008-02-06 Thread Jason Crum
Very good point Olle. Guess I'm overlooking the other potential MWI
signaling aside from SIP.

Thanks for your input!

On Feb 6, 2008 10:22 AM, Johansson Olle E [EMAIL PROTECTED] wrote:


 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
 
 
  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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED]
 * Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden




 ___
 -- 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

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

2008-02-05 Thread Jason Crum
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.

On Feb 5, 2008 1:52 AM, Johansson Olle E [EMAIL PROTECTED] 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

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

2008-02-05 Thread Grey Man

- Original Message 

From: Jason Crum [EMAIL PROTECTED]

To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com

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

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



___
-- 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


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

2008-02-05 Thread Jason Crum
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?)?

On Feb 5, 2008 5:36 PM, Grey Man [EMAIL PROTECTED] wrote:



 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



 ___
 -- 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

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

2008-02-05 Thread Grey Man

 - Original Message 

 From: Jason Crum [EMAIL PROTECTED]

 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

 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



___
-- 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


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

2008-02-05 Thread Olivier
Hi,

2008/2/5, Grey Man [EMAIL PROTECTED]:


 - Original Message 

 From: Jason Crum [EMAIL PROTECTED]

 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@lists.digium.com

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

 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


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.

 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

___
-- 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

[asterisk-users] External MWI question for Asterisk

2008-02-04 Thread Jason Crum
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?

Thanks in advance!
___
-- 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

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

2008-02-04 Thread Johansson Olle E

5 feb 2008 kl. 06.31 skrev Jason Crum:

 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

___
-- 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