135 Commits

Author SHA1 Message Date
Arnaldo Pereira
cf7d91a769 Merge branch 'arnaldo.ftdm_channel_read_event' 2010-12-02 20:53:18 -02:00
Arnaldo Pereira
3dc8d5b09a Merge branch 'master' into arnaldo.ftdm_channel_read_event
Conflicts:

	libs/freetdm/src/ftdm_io.c
	libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c
2010-12-01 20:34:02 -02:00
David Yat Sin
71e8ed8180 freetdm: ISDN - Fix for not being able to open d-channel when span is in alarm 2010-12-01 17:03:42 -05:00
David Yat Sin
35ba58e649 freetdm - ISDN:Fix for windows compilation issues 2010-11-30 17:48:55 -05:00
Moises Silva
086245a701 freetdm: do not skip states if FREETDM_SKIP_SIG_STATES is not defined 2010-11-30 17:21:48 -05:00
David Yat Sin
a27bdf3f5b freetdm:Changed freetdm variables 2010-11-30 12:57:43 -05:00
David Yat Sin
302d5bb18f Changes for ftdm variables 2010-11-30 12:30:31 -05:00
Moises Silva
2a00d3ea13 Merge remote branch 'fsorig/master'
Conflicts:
	conf/dialplan/default.xml
2010-11-30 12:19:42 -05:00
Moises Silva
469728a865 freetdm: clear out wait flags in the core on timeout 2010-11-30 11:38:38 -05:00
David Yat Sin
b8fb8acca1 freetdm: ISDN allow change state from PROCEED to UP 2010-11-25 18:55:27 -05:00
Moises Silva
75bd564210 freetdm: wait for state change to be cleared when placing outgoing calls
this fixes a race where the call is hangup even before the state
         DIALING is processed and therefore the HANGUP state change is
         ignored.
2010-11-25 09:37:25 -05:00
Arnaldo Pereira
9fbecc60be freetdm: on ftmod_r2, fixed flags for correctly polling the span, now freeing
poll_events pointer, enabling/disabling channel reading flag when needed.
		 also removed the test for FTDM_CHANNEL_OPEN flag on ftdm_channel_wait().
2010-11-25 00:36:01 -02:00
David Yat Sin
b814dc17ce freetdm: ISDN Changes to better match SIP-to-TDM states 2010-11-24 20:04:43 -05:00
Arnaldo Pereira
03dc3b7b8d freetdm: ftdm_channel_read_event() to retrieve events from a channel, removed from ftmod_r2: ftdm_r2_sig_read(), FTDM_R2_PROCESSING flag and locks for ftdmchan 2010-11-24 21:25:24 -02:00
Moises Silva
c059649f8f freetdm: only notify of released channels when is a voice channel 2010-11-23 16:27:40 -05:00
Moises Silva
04e8541366 freetdm: add release event to ftdm core 2010-11-23 11:43:52 -05:00
David Yat Sin
995c250518 Merged from master branch 2010-11-19 13:58:08 -05:00
David Yat Sin
caacb24500 freetdm: Changes for FTDM IO commands 2010-11-15 14:13:01 -05:00
Moises Silva
f3e55a26ef Merge remote branch 'fsorig/master'
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_out.c
2010-11-15 14:00:49 -05:00
Stefan Knoblich
e17201bbac freetdm: Add ftdm_channel_get_state(), ftdm_channel_get_last_state() and ftdm_span_get_trunk_type_str().
Remove custom versions from ftmod_isdn and ftmod_libpri.

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 17:48:09 +01:00
David Yat Sin
a0b164c132 freetdm: ISDN - Fix for not waking up the line on power-saving lines 2010-11-09 16:34:34 -05:00
Arnaldo Pereira
039e4297ac Merge branch 'master' into ftmod_r2 2010-11-01 23:11:42 -02:00
Moises Silva
b96f854803 freetdm: fix libpri mod 2010-09-30 11:12:43 -04:00
Marc Olivier Chouinard
00207cede3 freetdm: Initial fix attempt for libpri. It will now load and work. More testing will be required, I got the feeling some event will clean a channel / span of it value when there is timer still active. 2010-09-30 02:37:57 -04:00
Moises Silva
f126b92e2e Merge remote branch 'smgorig/master' 2010-09-29 17:11:24 -04:00
David Yat Sin
27096d4512 Support for enabling/disabling HWEC based on call bearer_cap 2010-09-28 15:25:47 -04:00
Moises Silva
ba5a250cc8 freetdm: stop scheduler but do not destroy it until the very end (dup) 2010-09-28 11:05:54 -04:00
Moises Silva
caec99adac freetdm: OPENZAP-108 - patched by John Wehle 2010-09-27 21:42:46 -04:00
Moises Silva
4865e38d31 Merge branch 'moy.printstate' 2010-09-24 08:37:31 -04:00
Moises Silva
562ac0efe3 freetdm: use ftdm stream instead of funky string concatenation with snprintf
add ftdm core state filtering for debugging
2010-09-24 08:35:20 -04:00
Arnaldo Pereira
f825d1b0ad merged threaded ftmod_r2.c with non-threaded version from moy and added support for receiving the events to wait for, on ftdm_span_poll_event(), which keeps its default behavior: POLLPRI if NULL is passed 2010-09-23 17:51:45 -03:00
David Yat Sin
1c9fe263d6 Changed ftdm_cpu_monitor behaviour 2010-09-23 13:58:20 -04:00
Moises Silva
2293f09da4 Merge branch 'moy.statedebug' 2010-09-23 07:40:49 -04:00
Moises Silva
640b81a27c freetdm: improve state debug dumping 2010-09-23 07:38:58 -04:00
Moises Silva
ed01944c15 freetdm: add initial changes for FreeTDM channel history feature 2010-09-22 14:59:06 -04:00
Moises Silva
c296179535 freetdm: make config and module directory to be a variable and not a macro 2010-09-21 17:08:44 -04:00
Moises Silva
b3f9bfcba5 freetdm: define safety hangup timer and use internal hangup function 2010-09-21 09:34:04 -04:00
Moises Silva
696becc093 freetdm: add force hangup timer and refactor scheduling code 2010-09-21 07:19:56 -04:00
David Yat Sin
5812c5fd53 freetdm: Used channel iterator.
Removed assert when we cannot find a call on RelInd, it seems like Trillium as a bug where they sometimes send release twice
		Fixes to some memory leaks
		Fix for bug in q921 trace disable command
		Fix for not recognizing etsi switchtype
		Fix for sending RESTART when we are not supposed to in EUROISDN NETWORK mode
		Support for l1 stats
		Fix for deadlocks/segfaults on shutdown
		Added index per link_id, support for show_spans
		Added progress-ind when sending CONNECT message
		Fix for sending CONNECT ACK when configured as TE
2010-09-14 13:42:50 -04:00
Moises Silva
7cb6b4b3e1 freetdm: fix assertion 2010-09-10 18:12:12 -04:00
Moises Silva
c9e780b9b6 freetdm: remove iterator free log 2010-09-10 17:52:08 -04:00
Moises Silva
8370f0c233 freetdm: more iterator fixes 2010-09-10 14:46:51 -04:00
Moises Silva
bc2638334b freetdm: iterators refactoring
add channel iterator
2010-09-10 14:18:29 -04:00
Moises Silva
4d3357e18c freetdm: set outbound flag in individual channel open too 2010-09-08 07:21:56 -04:00
David Yat Sin
d7141be3bc Merge branch 'master' into davidy_test 2010-09-03 17:38:35 -04:00
Moises Silva
4fbef45522 freetdm: set default hangup cause to normal clearing 2010-09-03 13:30:51 -04:00
Konrad Hammel
66e166d3e2 freetdm: bug fix, when changing states from RING to PROGRESS/MEDIA to UP,
we need to check each time for TERMINATING state since set_state
	 function needs to unlock to allow sig mod to handle the state change
2010-09-03 12:36:22 -04:00
David Yat Sin
cc722c64f3 minor fixes 2010-09-02 13:46:00 -04:00
David Yat Sin
e4b5c49fc1 freetdm: fix code using raw_data as an integer when is actually null 2010-09-02 12:51:56 -04:00
Moises Silva
3f3d412b4b freetdm: add asynchronous signal notification 2010-09-02 12:43:44 -04:00