]> 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:13:18 +0000 (12:13 -0500)
commitca261d4b707957aa5304fd0a3f044c2d69ceb856
treebb6da9282b3e1ba2f94c088657de084a7573b1b2
parent162f6ab845489b2d133b70bb5ce820cc6a450f22
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