Re: [asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found

2017-12-02 Thread Benoit Panizzon
Hi Joshua

> The chan_pjsip module doesn't prevent that. You'd need to provide the
> full SUBSCRIBE now that it is actually finding the endpoint and coming
> in.

Ok, let's see if we can solve the mystery..

pjsip.conf

[endpt-home](!)
type=endpoint
disallow=all
allow=g722
allow=alaw
allow=gsm
ice_support=yes
context=from-home
allow_subscribe=yes
mwi_subscribe_replaces_unsolicited=yes

[11](endpt-home)
auth=11
aors=11
callerid=*scrubbed*
mailboxes=11
voicemail_extension=411

extensions.conf

[from-home]
exten => 11,hint,PJSIP/11

include=>local-extens
include=>trunk-out

This is the exact subscribe message and reply as recored by the Snom M9 Logging 
facility.

2017/12/02 11:58:00 [SIP-Reg:5]: SIP Tx udp:[2001:4060:dead:beef::1]:5060:
SUBSCRIBE sip:1...@woody.ch SIP/2.0
Via: SIP/2.0/UDP 
[2001:4060:dead:d1d0:204:13ff:fe30:228d]:2799;branch=z9hG4bK-88k838;rport
From: "Benoît Panizzon" ;tag=fg0ojl
To: "Benoît Panizzon" 
Call-ID: 6lrsku1p@snom
CSeq: 933701145 SUBSCRIBE
Max-Forwards: 70
Contact: 
;reg-id=1;+sip.instance=""
Supported: outbound, gruu
Event: message-summary
Accept: application/simple-message-summary
User-Agent: snom-m9/9.6.13-a
Authorization: Digest realm="asterisk",*** remaining line removed for this 
email ***
Expires: 60
Content-Length: 0

2017/12/02 11:58:00 [SIP-Reg:5]: MWI subscription on identity 1 failed. Retry 
in 60 seconds
2017/12/02 11:58:00 [SIP-Reg:5]: SIP Rx udp:[2001:4060:dead:beef::1]:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 
[2001:4060:dead:d1d0:204:13ff:fe30:228d]:2799;rport=2799;received=2001:4060:dead:d1d0:204:13ff:fe30:228d;branch=z9hG4bK-88k838
Call-ID: 6lrsku1p@snom
From: "Benoît Panizzon" ;tag=fg0ojl
To: "Benoît Panizzon" ;tag=z9hG4bK-88k838
CSeq: 933701145 SUBSCRIBE
Server: Asterisk PJSIP XP
Content-Length: 0

I did also try all those variants:

exten => 11,hint,PJSIP/1...@woody.ch
exten => 11,hint,PJSIP/sip:1...@woody.ch
exten => 11,hint,PJSIP/sip:11
exten => 1...@woody.ch,hint,PJSIP/11

Any 'hint' welcome on why MWI subscription just does not work on those SNOM M9 
phones.

-Benoît-

-- 
_
-- 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] pjsip subscribe (presence) always returns: No matching endpoint found

2017-11-19 Thread Joshua Colp
On Sun, Nov 19, 2017, at 02:11 PM, Benoit Panizzon wrote:
> Hi Joshua
> 
> thank you for the quick reply
> 
> > Have you checked the Asterisk console when PJSIP is loaded to see if
> > the endpoint did not load for some reason? Does it show up in "pjsip
> > show endpoints"?
> 
> Yes, the endpoint shows up.
> 
>  Endpoint:  11/(scrubbed from mail)  
>  Not in use0 of inf
>  InAuth:  11/11
> Aor:  11 1
>   Contact:  11/sip:11@[2001:4060:dead:d1d0:204:13ff:fe 58af7d6822
>   Avail 5.799
>   Transport:  transport-udp udp  0  0  [::]:5061
> 
> I had the qualify statement at the wrong place, but that's sorted out
> now.
> 
> But still, subscribing to the hint results in a 404 error.
> 
> Acutualy, that subscribing is a bit odd, it's a snom M9 phone that is
> trying to subscribe to itself.
> That does not make much sense in my opinion.
> 
> It just that chan_sip reported OK to this and chan_pjsip replies with
> 404.
> Or is pjsip more intelligent and trying to prevent the phone from
> subscribing to itself?

The chan_pjsip module doesn't prevent that. You'd need to provide the
full SUBSCRIBE now that it is actually finding the endpoint and coming
in.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & 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] pjsip subscribe (presence) always returns: No matching endpoint found

2017-11-19 Thread Benoit Panizzon
Hi Joshua

thank you for the quick reply

> Have you checked the Asterisk console when PJSIP is loaded to see if
> the endpoint did not load for some reason? Does it show up in "pjsip
> show endpoints"?

Yes, the endpoint shows up.

 Endpoint:  11/(scrubbed from mail)   Not 
in use0 of inf
 InAuth:  11/11
Aor:  11 1
  Contact:  11/sip:11@[2001:4060:dead:d1d0:204:13ff:fe 58af7d6822 Avail 
5.799
  Transport:  transport-udp udp  0  0  [::]:5061

I had the qualify statement at the wrong place, but that's sorted out now.

But still, subscribing to the hint results in a 404 error.

Acutualy, that subscribing is a bit odd, it's a snom M9 phone that is trying to 
subscribe to itself.
That does not make much sense in my opinion.

It just that chan_sip reported OK to this and chan_pjsip replies with 404.
Or is pjsip more intelligent and trying to prevent the phone from subscribing 
to itself?

-Benoit-

-- 
_
-- 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] pjsip subscribe (presence) always returns: No matching endpoint found

2017-11-19 Thread Joshua Colp
On Sun, Nov 19, 2017, at 12:11 PM, Benoit Panizzon wrote:
> Hello List
> 
> I am in the progress of migrating from chan_sip to pjsip.
> 
> I fear I have missed something on how hints need to be specified for
> pjsip.
> 
> For chan_sip I have configured sip.conf
> 
> subscribecontext = localuser
> 
> 
> and in the dialplan I set:
> 
> [localuser]
> exten => 11,hint,SIP/11
> 
> Now if a phone subscribes to '11' this works.
> 
> Now I try to get the same working for pjsip. I understood that for
> pjsip the hit needs to be placed in the same context as the endpoint:
> 
> [11]
> type=endpoint
> transport=transport-udp
> context=localuser
> disallow=all
> allow=g722
> allow=alaw
> allow=gsm
> auth=11
> aors=11
> callerid=(remove in this example
> qualify_frequency=10
> mailboxes=11
> voicemail_extension=411
> 
> And in the dialplan I changed:
> 
> [localuser]
> exten => 11,hint,PJSIP/11
> 
> But I constantly get:
> 
> Request 'SUBSCRIBE' from '"Benoît Panizzon PJSIP" '
> failed for '2001:4060:dead:d1d0:204:13ff:fe30:228d:2332' (callid:
> ow21f3eg@snom) - No matching endpoint found
> 
> And I in the logger I see that the subscriber request is being rejected
> with error 404.
> 
> Any hints what I'm doing wrong?

Have you checked the Asterisk console when PJSIP is loaded to see if the
endpoint did not load for some reason? Does it show up in "pjsip show
endpoints"?

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & 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

[asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found

2017-11-19 Thread Benoit Panizzon
Hello List

I am in the progress of migrating from chan_sip to pjsip.

I fear I have missed something on how hints need to be specified for
pjsip.

For chan_sip I have configured sip.conf

subscribecontext = localuser


and in the dialplan I set:

[localuser]
exten => 11,hint,SIP/11

Now if a phone subscribes to '11' this works.

Now I try to get the same working for pjsip. I understood that for
pjsip the hit needs to be placed in the same context as the endpoint:

[11]
type=endpoint
transport=transport-udp
context=localuser
disallow=all
allow=g722
allow=alaw
allow=gsm
auth=11
aors=11
callerid=(remove in this example
qualify_frequency=10
mailboxes=11
voicemail_extension=411

And in the dialplan I changed:

[localuser]
exten => 11,hint,PJSIP/11

But I constantly get:

Request 'SUBSCRIBE' from '"Benoît Panizzon PJSIP" '
failed for '2001:4060:dead:d1d0:204:13ff:fe30:228d:2332' (callid:
ow21f3eg@snom) - No matching endpoint found

And I in the logger I see that the subscriber request is being rejected
with error 404.

Any hints what I'm doing wrong?

-Benoît-

-- 
_
-- 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] PJSIP subscribe

2016-06-07 Thread Annus Fictus

Hello,

thank you for the answer... how can I see the correct status?

any configuration on asterisk or softphone side?

Regards

El 07/06/2016 a las 16:36, George Joseph escribió:
I can confirm that Bria shows offline but if the client is using the 
tuple status instead of the person status then I can see why.



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


Re: [asterisk-users] PJSIP subscribe

2016-06-07 Thread George Joseph
On Mon, Jun 6, 2016 at 11:13 AM, Annus Fictus  wrote:

> Hello,
>
> I'm trying to use presence with PJSIP and  I have a "issue".
>
> I created correctly hint priorities like:
>
> exten => 1000,hint,PJSIP/1000
> exten => 1001,hint,PJSIP/1001
>
> Extension 1000 can subscribe extension 1001 y vice-versa. The problem is
> when the extension 1000 make or receive a call. In the softphone where the
> extension is present on buddy list, the extension appear go offline. When
> hang-up the extension return on-line.
>

This is what Asterisk sends when an endpoint is "InUse":

xmlns:ep="urn:ietf:params:xml:ns:pidf:rpid:rpid-person">
   
  On the phone
   
   
   
  
  closed
  
   
   
   sip:1...@.com
   
   
   
  
 
 ep:busy
 
  
   



I can confirm that Bria shows offline but if the client is using the tuple
status instead of the person status then I can see why.


>
> On the Asterisk console the command core show hints show the correct state
> for the extension.
>
> On my tests I used XLite, Bria and Jitsi.
>
> Any hint?
>
> Thank you
>
> Regards.
>
>
>
> --
> _
> -- 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
>



-- 
George Joseph
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
-- 
_
-- 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

[asterisk-users] PJSIP subscribe

2016-06-06 Thread Annus Fictus

Hello,

I'm trying to use presence with PJSIP and  I have a "issue".

I created correctly hint priorities like:

exten => 1000,hint,PJSIP/1000
exten => 1001,hint,PJSIP/1001

Extension 1000 can subscribe extension 1001 y vice-versa. The problem is 
when the extension 1000 make or receive a call. In the softphone where 
the extension is present on buddy list, the extension appear go offline. 
When hang-up the extension return on-line.


On the Asterisk console the command core show hints show the correct 
state for the extension.


On my tests I used XLite, Bria and Jitsi.

Any hint?

Thank you

Regards.



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