244 Commits

Author SHA1 Message Date
Moises Silva
11a7b1f9a0 Merge remote branch 'fsorig/master' 2010-12-20 10:12:48 -05:00
Stefan Knoblich
b84b71defa FreeTDM: Stop using raw_data for FTDM_SIGEVENT_SIGSTATUS_CHANGED events.
The raw_data member is used for passing heap allocated data with an event,
(e.g. strings of dtmf data) the memory is freed after the event has been processed.

Recent changes in the event structure added a way to pass sig status changes inline,
so remove the raw_data usage for FTDM_SIGEVENT_SIGSTATUS_CHANGED events.

NOTE: This (finally) fixes a bug in ftmod_libpri that was caused by
      the event handling changes (stack corruption due to using free()
      on a variable on the stack, which turned into a NULL ptr deref
      caused by some compat code in ftdm_io.c:ftdm_span_send_signal().

Compiles and tested on my BRI setup, i did a quick audit of all
places that generate FTDM_SIGEVENT_SIGSTATUS_CHANGED events and
except for the sangoma_boost module there's nothing else that left
using raw_data for this event.

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-12-19 21:09:50 +01:00
Moises Silva
87818abedd Merge remote branch 'fsorig/master' 2010-12-17 20:31:15 -05:00
Moises Silva
aa69927b8f freetdm: OPENZAP-124 - Add round robin hunting direction (Patched by Ric) 2010-12-17 20:04:30 -05:00
Moises Silva
d349290f7b freetdm: fix OPENZAP-125 (Add basic calling party category support into ftmod_r2) (Patched by ric) 2010-12-17 19:26:43 -05:00
Arnaldo Pereira
6b52208957 freetdm: core - moved validation of sigstatus from implementation to core, on sigstatus getters/setters
core - locking the channel on ftdm_channel_get_sig_status() and ftdm_channel_set_sig_status(),
                but not on ftdm_span_get_sig_status() nor ftdm_span_set_sig_status()
         ftmod_r2 - locking channels on ftdm_r2_get_span_sig_status() and ftdm_r2_set_span_sig_status()
2010-12-17 18:28:57 -02:00
David Yat Sin
6014178b5b Removed unwanted lines in previous commit 2010-12-16 16:32:04 -05:00
David Yat Sin
48a1ae3896 freetdm: added trace type to raw traces 2010-12-16 15:57:46 -05:00
David Yat Sin
47c9773048 Merge branch 'master' into netborder
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_hndl.c
2010-12-15 16:47:37 -05:00
David Yat Sin
53346e4948 Freetdm: exposed channel availability rate to user 2010-12-15 16:42:47 -05:00
David Yat Sin
dd345b913b freetdm: Support for RAW traces 2010-12-15 16:29:03 -05:00
David Yat Sin
0235f0ba0e Merge branch 'master' into davidy.channel_restart 2010-12-15 12:58:38 -05:00
David Yat Sin
ea2b477444 Freetdm:fix for ftdm_channel_close not always passed double-pointer 2010-12-15 12:56:49 -05:00
Moises Silva
8bb15b270c Merge branch 'master' into netborder 2010-12-15 11:20:29 -05:00
Moises Silva
3085523f56 freetdm: define special size formatting that actually works on Linux and Windows 2010-12-15 09:56:27 -05:00
Moises Silva
1c01144c20 freetdm: open all media dumps as binary. Fixes Windows corrupted cores. 2010-12-14 16:55:40 -05:00
David Yat Sin
56515c3a64 Minor change to allow skip states 2010-12-14 16:04:25 -05:00
David Yat Sin
905fdcc248 freetdm: Support for channel restarts 2010-12-14 11:23:47 -05:00
David Yat Sin
6d21b59fee Merge branch 'master' into netborder
Conflicts:
	libs/freetdm/src/testsangomaboost.c
2010-12-13 12:00:59 -05:00
David Yat Sin
ce25c9186f Merge branch 'davidy.caller_id' 2010-12-13 11:51:49 -05:00
David Yat Sin
f87a32c66a removed unnecessary initialization 2010-12-13 11:29:38 -05:00
David Yat Sin
55203ed0d7 Support for call ID 2010-12-10 19:14:08 -05:00
David Yat Sin
fb9a1b05ac Merge branch 'smgfs' 2010-12-10 15:22:14 -05:00
Moises Silva
e9dc863e21 Merge branch 'master' into netborder
Conflicts:
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c
	libs/freetdm/src/testsangomaboost.c
2010-12-10 08:48:43 -05:00
David Yat Sin
86c484c134 freetdm: added support for skip states, used by sangoma_isdn module 2010-12-09 18:01:31 -05:00
Arnaldo Pereira
38ca557ad9 freetdm: ftmod_r2 - fixed complation warnings on windows 2010-12-09 15:21:10 -05:00
David Yat Sin
d3ddd29e8b freetdm: fix compilation 2010-12-09 14:05:35 -05:00
David Yat Sin
502116e4a0 freetdm: support for call variables 2010-12-09 14:05:07 -05:00
David Yat Sin
5ab19aaa23 freetdm: fix compilation 2010-12-09 13:47:40 -05:00
David Yat Sin
3c747978f4 freetdm: support for call variables 2010-12-09 13:20:05 -05:00
Jeff Lenk
87bb33ae3a windows fix x64 build warnings freetdm 2010-12-09 08:44:55 -06:00
Moises Silva
499eafb2e0 freetdm: check for dump enabled before writing to file 2010-12-09 07:19:31 -05:00
Moises Silva
648a124c3f freetdm: improve core flag command 2010-12-08 15:12:10 -05:00
Moises Silva
18299684bf freetdm: added core command to print channels by flag 2010-12-08 14:50:40 -05:00
Moises Silva
315441d219 freetdm: ftmod_r2 - handle race on protocol error 2010-12-08 14:30:47 -05:00
Moises Silva
15d18e7a15 freetdm: ftmod_r2 - Fixed input size for tx and rx dumping
ftmod_r2 - Set tx queue to 4 only
         ftmod_wanpipe - Fixed stats warnings
2010-12-08 10:45:45 -05:00
Moises Silva
71a902d258 freetdm: Added core rx and tx drops
Added sig_write callback
	 ftmod_r2 - Added IO stats flag during call setup
	          - Disable user read and writes during call setup
2010-12-08 09:09:14 -05:00
Arnaldo Pereira
d25cb0282b freetdm: ftmod_r2 - fixed complation warnings on windows 2010-12-07 20:33:23 -02:00
Arnaldo Pereira
1088533626 freetdm: removed dump_mf() debug call from ftmod_r2 and added a comment to ftdm_io 2010-12-07 18:14:03 -02:00
Arnaldo Pereira
ceaa7b1c33 Merge branch 'master' of git.sangoma.com:smg_freeswitch 2010-12-07 14:04:27 -02:00
Arnaldo Pereira
d4f512083f freetdm: ftmod_r2 - added cast to properly malloc io dump buffer on win64 2010-12-07 13:58:44 -02:00
Arnaldo Pereira
b49072aed6 Merge branch 'master' into netborder 2010-12-06 23:20:56 -02:00
Moises Silva
5522982936 Merge remote branch 'fsorig/master' 2010-12-06 15:10:53 -05:00
Arnaldo Pereira
430556697e freetdm: fixed compilation on windows 2010-12-06 17:11:56 -02:00
Moises Silva
c05cae9f0a freetdm: use ftdm_status_t as return code for io dump and debug dtmf functions 2010-12-06 07:26:04 -05:00
Moises Silva
6e05e90caf freetdm: reduce log severity 2010-12-03 17:54:24 -05:00
Moises Silva
50f2686fa1 freetdm: Add FTDM_COMMANDs to debug DTMF 2010-12-03 17:52:10 -05:00
Moises Silva
9cf15ac04b freetdm: add MF dumping support to ftmod_r2
improve sample configuration documentation for MFC-R2
2010-12-03 16:50:03 -05:00
Moises Silva
1c636e8003 Merge branch 'master' into moy.iodump 2010-12-03 12:59:48 -05:00
Arnaldo Pereira
f5a9adae92 Merge branch 'master' into netborder
Conflicts:

	libs/freetdm/src/ftdm_io.c
	libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.h
	libs/freetdm/src/include/freetdm.h
2010-12-03 12:40:14 -02:00