]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: PJSIP Transport state monitor refactor.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 28 Jul 2017 23:26:17 +0000 (18:26 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 10 Aug 2017 17:18:06 +0000 (12:18 -0500)
commit701748623007725b2531a1d3251b7b1b831aaf6b
tree972b51d3a0ba4c868bbe9f8fd98aa3d042cb5d23
parentef58b04df1cccb39ffa1516b3f8791cfa4f8cdb1
res_pjsip: PJSIP Transport state monitor refactor.

The fix for the issue is broken up into three parts.

This is part one which refactors the transport state monitor code to allow
more modules to be able to monitor transports.

* Pull the management of PJPROJECT's transport state callback code from
res_pjsip_transport_management.c into res_pjsip.  Now other modules can
dynamically add and remove themselves from transport monitoring without
worrying about breaking PJPROJECT's callback chain.

* Add the ability for other modules to get a callback whenever a specific
transport is shutdown.

ASTERISK-27147

Change-Id: I7d9a31371eb1487c9b7050cf82a9af5180a57912
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/include/res_pjsip_private.h
res/res_pjsip/pjsip_transport_events.c [new file with mode: 0644]
res/res_pjsip_transport_management.c