]> 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:28 +0000 (12:18 -0500)
commit0de033c9c6ebd42ef82adf036721d138cd7294f0
tree4de663ce72f23a274743e96e12618f8b98e0f969
parentfe630930c9f4f80d9d45d93e10bd46bc6b4e5126
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