]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Add new pubsub module capabilities. (#82)
authorInterLinked1 <24227567+InterLinked1@users.noreply.github.com>
Thu, 18 May 2023 17:41:38 +0000 (13:41 -0400)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 17:41:38 +0000 (11:41 -0600)
commit659f2aae3afa02928ff2dce6851cf6f044a5c115
tree1cb57b3c56fbfcd90a2918d13dc32f75a96ae1d7
parentcd2865175c8ede282e6fb16f2dd1c00d0c827f00
res_pjsip_pubsub: Add new pubsub module capabilities. (#82)

The existing res_pjsip_pubsub APIs are somewhat limited in
what they can do. This adds a few API extensions that make
it possible for PJSIP pubsub modules to implement richer
features than is currently possible.

* Allow pubsub modules to get a handle to pjsip_rx_data on subscription
* Allow pubsub modules to run a callback when a subscription is renewed
* Allow pubsub modules to run a callback for outgoing NOTIFYs, with
  a handle to the tdata, so that modules can append their own headers
  to the NOTIFYs

This change does not add any features directly, but makes possible
several new features that will be added in future changes.

Resolves: #81
ASTERISK-30485 #close

Master-Only: True
include/asterisk/res_pjsip_pubsub.h
res/res_pjsip_pubsub.c