freeswitch/libs/freetdm/src
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
..
ftmod ftmod_isdn: Avoid stack smashing buffer overflow in isdn_tones_run(). 2012-08-10 17:16:05 +02:00
include FreeTDM: Add span start/stop callbacks to ftdm_io_interface. 2012-08-15 13:34:22 +02:00
isdn windows renaming to freetdm changes 2010-01-15 21:43:41 +00:00
ss7
detect_dtmf.c we need to fix this build system it masks errors 2011-09-16 12:13:25 -05:00
detect_tones.c Linux renaming from openzap to freetdm 2010-01-15 19:22:49 +00:00
fsk.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
ftdm_backtrace.c FreeTDM: Move custom backtrace code into ftdm_backtrace_walk() and helper functions. 2012-07-11 17:25:58 +02:00
ftdm_buffer.c Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
ftdm_call_utils.c chlog: freetdm - SS7: Support for Transparent IAM 2011-05-17 17:27:05 -04:00
ftdm_callerid.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
ftdm_config.c Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
ftdm_cpu_monitor.c freetdm: Added support for hardware (native) R2 MF generation 2011-02-24 18:41:07 -05:00
ftdm_dso.c freetdm: Added support for hardware (native) R2 MF generation 2011-02-24 18:41:07 -05:00
ftdm_io.c FreeTDM: Add span start/stop callbacks to ftdm_io_interface. 2012-08-15 13:34:22 +02:00
ftdm_queue.c freetdm: - Extend ftdm interrupt object to notify which IO events are ready in the device 2012-05-07 15:13:26 -04:00
ftdm_sched.c stop sched thread quicker on global destroy 2012-04-02 15:33:45 -05:00
ftdm_state.c FreeTDM: Add gcc printf()-style format string checks to ftdm_log(), also add FTDM_(U)INT64_FMT and FTDM_TIME_FMT constants. 2012-07-11 22:44:08 +02:00
ftdm_threadmutex.c OPENZAP-183 --resolve 2012-05-09 09:20:10 -05:00
ftdm_variables.c freetdm: Removed unnecessary parameter copy 2011-02-25 12:20:32 -05:00
g711.c
hashtable.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
hashtable_itr.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
libteletone_detect.c Copyright date update. 2012-04-18 11:52:02 -05:00
libteletone_generate.c Copyright date update. 2012-04-18 11:52:02 -05:00
priserver.c Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
sangoma_pri.c Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
sangoma_pri.h Update a ton of copyright statements to make sure the dates are proper 2012-04-25 17:14:55 -05:00
testanalog.c freetdm: ISDN Changes to better match SIP-to-TDM states 2010-11-24 20:12:09 -05:00
testapp.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
testcid.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
testisdn.c more freetdm changes 2010-01-15 20:35:11 +00:00
testpri.c freetdm: check protocol status after configuring the signaling 2010-04-28 18:17:52 -04:00
testr2.c FreeTDM: Add gcc printf()-style format string checks to ftdm_log(), also add FTDM_(U)INT64_FMT and FTDM_TIME_FMT constants. 2012-07-11 22:44:08 +02:00
testtones.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00
uart.c start API cleanup by moving private headers and data structures into private/ include directory 2010-04-28 18:17:49 -04:00