]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 23 Mar 2022 22:51:21 +0000 (17:51 -0500)
commit4027626709d1ec5959834a74cf5cd62952fd6519
tree4abb534439d82764fff5ec9cdba24e8d785a3f7c
parentc5b49f1405d596006eaf9cf335f2d345292c97c4
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