]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: RLS 'uri' list attribute mismatch with SUBSCRIBE request
authorAlexei Gradinari <alex2grad@gmail.com>
Tue, 15 Mar 2022 17:24:18 +0000 (13:24 -0400)
committerKevin Harwell <kharwell@digium.com>
Wed, 23 Mar 2022 23:13:13 +0000 (18:13 -0500)
commitd1900d4a4c6f0e5281dc9d7c7cd9f526f56d6fa3
tree26b15a6d860728aa20672ee2c4fee2351e8dc966
parent1e87cadf8e2f86e0a59800ad71ede349974c7053
res_pjsip_pubsub: RLS 'uri' list attribute mismatch with SUBSCRIBE request

When asterisk generates the RLMI part of NOTIFY request,
the asterisk uses the local contact uri instead of the URI to which
the SUBSCRIBE request is sent.
Because of this mismatch some IP phones (for example Cisco 5XX) ignore
this list.

According
https://datatracker.ietf.org/doc/html/rfc4662#section-5.2
  The first mandatory <list> attribute is "uri", which contains the uri
  that corresponds to the list. Typically, this is the URI to which
  the SUBSCRIBE request was sent.
https://datatracker.ietf.org/doc/html/rfc4662#section-5.3
  The "uri" attribute identifies the resource to which the <resource>
  element corresponds. Typically, this will be a SIP URI that, if
  subscribed to, would return the state of the resource.

This patch makes asterisk to generate URI using SUBSCRIBE request URI.

ASTERISK-29961 #close

Change-Id: I1fcfc08fd589677f40608c59a4e143c45ee05f6c
res/res_pjsip_pubsub.c