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:58 +0000 (12:18 -0500)
commit1dcb92bba89440fff3454670ed5f892da157bf27
treebfea5b5fcb09477570d4e6d728661c8ba3b3407b
parentee5edfb050f8bfff7a28ba716d70ee479929ce56
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