]> 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:12:53 +0000 (18:12 -0500)
commit96a3ff9eddd6a1964624c924fabb7f3d59a562dc
tree9cdcb8569d91258cb192096b41a5a46e84b4f82f
parent140c19c2067a5e2dcedfbb4dfa08c57758b822cb
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