[RESOLVED] Proper way to subscribe to Resource List?

I’m having trouble subscribing to a resource list in Asterisk 13 using PJSIP. I have a Panasonic phone that sends a SUBSCRIBE request to rlist but I only see:

WARNING res_pjsip_exten_state.c:337 new_subscribe: Extension rlist does not exist or has no associated hint

I have the following in PJSIP.conf

[general]
allowsubscribe=yes
subscribecontext=subscriptions

[rlist]
;This is the resource list for Panasonic phones
type=list
event=presence
list_item=500@subscriptions
list_item=814@subscriptions
list_item=815@subscriptions
list_item=816@subscriptions
list_item=817@subscriptions
list_item=818@subscriptions
list_item=819@subscriptions
list_item=820@subscriptions

I’ve tried the above with and without the @subscriptions bit.

And the following in extensions.conf:

[subscriptions] ;For Presence or BLF exten => 500,hint,${dev500} exten => 501,hint,${dev501} exten => 502,hint,${dev502} exten => 503,hint,${dev503} exten => 504,hint,${dev504} exten => 505,hint,${dev505} exten => 843,hint,${dev843} exten => 818,hint,${dev818} exten => 826,hint,${dev826} exten => 827,hint,${dev827} exten => 814,hint,${dev814} exten => 815,hint,${dev815} exten => 816,hint,${dev816} exten => 817,hint,${dev817} exten => 844,hint,${dev844} exten => 819,hint,${dev819} exten => 820,hint,${dev820} exten => 821,hint,${dev821} exten => 822,hint,${dev822} exten => 823,hint,${dev823} exten => 846,hint,${dev846} exten => 825,hint,${dev825} exten => 845,hint,${dev845} exten => 811,hint,${dev811}

The global variables parse out to PJSIP/XXXX where XXXX is the both the AOR and ENDPOINT.

The subscriptions context is included in the endpoint context and if I add

exten => rlist,hint,rlist

I get a valid subscription to it but its not the resource list.

I’ve followed the information on the Wiki regarding Resource List Subscriptions and am not sure where I’m going wrong. wiki.asterisk.org/wiki/pages/vi … d=30278158

Please help!

My problem was

type=list
should be

It is correct in the pjsip.conf.sample but incorrect on the wiki -> wiki.asterisk.org/wiki/pages/vi … d=30278158

Howdy,

The wiki should have been updated recently to account for that.

Cheers

I’m trying to flag this as resolved but I can’t seem to find a way to do that.

Did your permissions allow you to edit the subject line?