Subscription to resource list fails

Hi,

I’m trying to use the resource list feature of Asterisk, but I simply cannot subscribe to the list.

Extension and context are mixed up in the error message, but I think this is just a bug in the error message string.

I can see a SIP message ‘SUBSCRIBE rlist@asterisk’ coming from the phone and Asterisk responds with a 404.

[code]<— Received SIP request (901 bytes) from UDP:192.168.42.71:5060 —>
SUBSCRIBE sip:rlist@192.168.43.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.42.71:5060;branch=z9hG4bK549715202;rport
From: sip:65@192.168.43.2;tag=808239491
To: sip:rlist@192.168.43.2
Call-ID: 914519428-5060-482@BJC.BGI.EC.HB
CSeq: 24801 SUBSCRIBE
Contact: sip:65@192.168.42.71:5060
Authorization: Digest username=“65”, realm=“asterisk”, …
X-Grandstream-PBX: true
Max-Forwards: 70
User-Agent: Grandstream GXP2160 1.0.4.23
Expires: 3600
Supported: replaces, path, timer, eventlist
Event: dialog
Accept: application/dialog-info+xml,multipart/related,application/rlmi+xml
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Length: 0

<— Transmitting SIP response (329 bytes) to UDP:192.168.42.71:5060 —>
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.42.71:5060;rport=5060;received=192.168.42.71;branch=z9hG4bK549715202
Call-ID: 914519428-5060-482@BJC.BGI.EC.HB
From: sip:65@192.168.43.2;tag=808239491
To: sip:rlist@192.168.43.2;tag=z9hG4bK549715202
CSeq: 24801 SUBSCRIBE
Server: Asterisk PBX 13.3.0
Content-Length: 0
[/code]

I can subscribe to each individual extension in the resource list below and the phones receive the correct state updates. So the general setup seems to be working. Is there any step I am missing?

Config:
Asterisk 13.3.0

pjsip.conf

[rlist] type = resource_list event = presence list_item = 65 list_item = 86 list_item = 88

Your device appears to be subscribing to application/dialog-info+xml and not RLS. This is also indicated by the Event header being “dialog”. As a result res_pjsip_pubsub chooses the dialog-info+xml implementation and not RLS.