Stefan Knoblich 548222f9f3 FreeTDM: Add span start/stop callbacks to ftdm_io_interface.
Callbacks are invoked from ftdm_span_start/_stop().
I/O is started before SIG and shut down in reverse order.

This is needed for ftmod_misdn, to move the mISDN message handling
into a separate thread (solving the mISDN socket vs. FreeTDM API issues).

With these callbacks, the I/O thread can be started after the span I/O configuration
has been (successfully) completed and stopped before destroying the span.

NOTE: Both SIG and I/O callbacks are called with the span mutex locked,
so threads created or destroyed synchronously in either of the custom
start/stop functions, can not use ftdm_span_*() functions that lock
the span mutex (e.g. ftdm_span_get_channel_count()).

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-08-15 13:34:22 +02:00
..
2012-06-24 08:15:16 +00:00
2012-01-12 14:17:23 -06:00
2012-07-15 21:52:02 -05:00
2012-01-11 20:14:17 -05:00
2012-05-12 18:53:00 +00:00
2012-04-04 16:18:53 -05:00
2012-07-14 20:23:13 -05:00
2012-08-13 15:20:41 -05:00
2012-06-25 08:51:49 +00:00
2011-12-16 07:35:05 -05:00
2011-12-15 21:23:19 -05:00
2012-07-18 21:48:53 -05:00
2012-06-24 08:34:52 +00:00
2012-05-25 07:54:11 -05:00
2011-12-15 16:55:10 -05:00
2012-08-13 21:30:10 -05:00
2012-08-13 21:31:46 -05:00