Re: [asterisk-users] MWI with PJSIP - unsollicitated works fine, solicitated doesn't

2021-11-29 Thread Mike
Hi Marek,

Thank you - I figured out my issue, which was that the MWI subscribes to a 
PJSIP AOR, which in turns monitors a mailbox, not directly an actual 
mailbox.


Mike
-Original Message-
From: asterisk-users  On Behalf Of 
Marek Greško
Sent: November 19, 2021 03:57
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] MWI with PJSIP - unsollicitated works fine, 
solicitated doesn't

Hello Michael,

I was also struggling with solicited MWI after moving to pjsip. My problem 
was I was defining mailbox=111@extensioncontext. But the correct context in 
the mailbox command is to be defined by context in voicemail.conf. My 
voicemails were all defined in the context default (see voicemail.conf) and 
the mailbox command should look like this:
mailbox=111@default.

Hope this helps. I do not know whether this is also your problem.

Marek


2021-11-14 16:38 GMT+01:00, Mike :
> Hi,
>
>
>
> Just  recently moved over from chan_sip to PJSIP and am slowly
> cleaning up whatever needs to be.
>
>
>
> I can't seem to make sollicitated MWI work, but unsollicitated works fine.
>
>
>
>
> I got my phones subscribing to mailbox@context (i.e. 100@whatever)
>
>
>
> I have my related AOR entry (realtime, in a DB) set to
> mailboxes=100@whatever . I can see it is set properly by using the
> command "pjsip show aor "
>
>
>
> But when I turn pjsip logger on, I see messages from the phones
> subscribing and SIP/2.0 401 Unauthorized messages back.
>
>
>
> If I put the same column in my realtime DB (mailboxes) for ENPOINT to
> the same value (100@whatever) then it works fine, MWI works on the phone.
>
>
>
> For a few reasons I'd like to get MWI working in sollicitated mode
> instead.  Is there a trick to it?
>
>
>
> I upgraded to Asterisk 18.8.0 just to see if a later patch fixed
> anything, so I am current.
>
>
>
>
>
>
>
>
>
>
>
>
>
> Michael
>
>

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

Check out the new Asterisk community forum at: 
https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] MWI with PJSIP - unsollicitated works fine, solicitated doesn't

2021-11-19 Thread Marek Greško
Hello Michael,

I was also struggling with solicited MWI after moving to pjsip. My
problem was I was defining mailbox=111@extensioncontext. But the
correct context in the mailbox command is to be defined by context in
voicemail.conf. My voicemails were all defined in the context default
(see voicemail.conf) and the mailbox command should look like this:
mailbox=111@default.

Hope this helps. I do not know whether this is also your problem.

Marek


2021-11-14 16:38 GMT+01:00, Mike :
> Hi,
>
>
>
> Just  recently moved over from chan_sip to PJSIP and am slowly cleaning up
> whatever needs to be.
>
>
>
> I can't seem to make sollicitated MWI work, but unsollicitated works fine.
>
>
>
>
> I got my phones subscribing to mailbox@context (i.e. 100@whatever)
>
>
>
> I have my related AOR entry (realtime, in a DB) set to
> mailboxes=100@whatever . I can see it is set properly by using the command
> "pjsip show aor "
>
>
>
> But when I turn pjsip logger on, I see messages from the phones
> subscribing and SIP/2.0 401 Unauthorized messages back.
>
>
>
> If I put the same column in my realtime DB (mailboxes) for ENPOINT to the
> same value (100@whatever) then it works fine, MWI works on the phone.
>
>
>
> For a few reasons I'd like to get MWI working in sollicitated mode
> instead.  Is there a trick to it?
>
>
>
> I upgraded to Asterisk 18.8.0 just to see if a later patch fixed anything,
> so I am current.
>
>
>
>
>
>
>
>
>
>
>
>
>
> Michael
>
>

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] MWI with PJSIP - unsollicitated works fine, solicitated doesn't

2021-11-15 Thread Joshua C. Colp
On Mon, Nov 15, 2021 at 8:34 PM Mike  wrote:

> So I think I am halfway there.
>
>
>
> It seems configuring 100@whatever in the aor turns the MWI subscription
> from a 401 unauthorized into a 404 not found.
>
>
>
> So I’m guessing the MWI subscribe goes through, since the aor now allows
> it, but then fails when asterisk actually looks for the mailbox once passes
> the “security” of mailboxes=100@whatever.
>
>
>
> The thing is, the mailbox is only in a table  but asterisk definitely sees
> it (and saves msg with no issues). “Voicemail show users for whatever”
> lists it as being there.
>
>
>
> But the mailbox is neither in voicemail.conf nor users.conf (by design).
> Is this needed?
>
>
>
> Is there a better place to ask this sort of question?
>

You'd need to actually show the SIP SUBSCRIBE and show the AOR. It states
what is being subscribed to, and if it's not subscribing to the same name
as the AOR then a 404 would be sent.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] MWI with PJSIP - unsollicitated works fine, solicitated doesn't

2021-11-15 Thread Mike
So I think I am halfway there.

 

It seems configuring 100@whatever in the aor turns the MWI subscription
from a 401 unauthorized into a 404 not found.

 

So I'm guessing the MWI subscribe goes through, since the aor now allows
it, but then fails when asterisk actually looks for the mailbox once
passes the "security" of mailboxes=100@whatever.

 

The thing is, the mailbox is only in a table  but asterisk definitely sees
it (and saves msg with no issues). "Voicemail show users for whatever"
lists it as being there.

 

But the mailbox is neither in voicemail.conf nor users.conf (by design).
Is this needed?

 

Is there a better place to ask this sort of question?

 

 

 

 

From: asterisk-users  On Behalf
Of Mike
Sent: November 14, 2021 10:38
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'

Subject: [asterisk-users] MWI with PJSIP - unsollicitated works fine,
solicitated doesn't

 

Hi,

 

Just  recently moved over from chan_sip to PJSIP and am slowly cleaning up
whatever needs to be.

 

I can't seem to make sollicitated MWI work, but unsollicitated works fine.


 

I got my phones subscribing to mailbox@context (i.e. 100@whatever)

 

I have my related AOR entry (realtime, in a DB) set to
mailboxes=100@whatever . I can see it is set properly by using the command
"pjsip show aor "

 

But when I turn pjsip logger on, I see messages from the phones
subscribing and SIP/2.0 401 Unauthorized messages back.

 

If I put the same column in my realtime DB (mailboxes) for ENPOINT to the
same value (100@whatever) then it works fine, MWI works on the phone.

 

For a few reasons I'd like to get MWI working in sollicitated mode
instead.  Is there a trick to it?

 

I upgraded to Asterisk 18.8.0 just to see if a later patch fixed anything,
so I am current.

 

 

 

 

 

 

Michael

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] MWI with PJSIP - unsollicitated works fine, solicitated doesn't

2021-11-14 Thread Mike
Hi,

 

Just  recently moved over from chan_sip to PJSIP and am slowly cleaning up
whatever needs to be.

 

I can't seem to make sollicitated MWI work, but unsollicitated works fine.


 

I got my phones subscribing to mailbox@context (i.e. 100@whatever)

 

I have my related AOR entry (realtime, in a DB) set to
mailboxes=100@whatever . I can see it is set properly by using the command
"pjsip show aor "

 

But when I turn pjsip logger on, I see messages from the phones
subscribing and SIP/2.0 401 Unauthorized messages back.

 

If I put the same column in my realtime DB (mailboxes) for ENPOINT to the
same value (100@whatever) then it works fine, MWI works on the phone.

 

For a few reasons I'd like to get MWI working in sollicitated mode
instead.  Is there a trick to it?

 

I upgraded to Asterisk 18.8.0 just to see if a later patch fixed anything,
so I am current.

 

 

 

 

 

 

Michael

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] MWI and PJSIP

2015-09-25 Thread Ryan, Travis
Does something change with MWI when moving from SIP to PJSIP? Seems my phone 
isn't be alerted of its new VM.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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