105 Commits

Author SHA1 Message Date
Moises Silva
1db40e60e4 freetdm: improved logic to enable/disable EC on call start/stop
- MFC-R2 requires tone signaling that gets screwed sometimes
           if the EC is enabled during call setup.
         - EC is now enabled only when switching to a state requiring
         media (UP and PROGRESS_MEDIA)
         - The logic is aware of EC persist option in Wanpipe
         - Improved logging in ftmod_wanpipe to print EC state on startup
2011-01-18 11:28:37 -05:00
Moises Silva
6734fe711b freetdm: General fixes for alarm handling and added MFCR2 suspend support
- Clean up ftdm_channel_set_sig_status locking and sanity checks
         - Set FTDM_CHANNEL_SUSPENDED when delivering FTDM_SIGEVENT_SIGSTATUS changed to SUSPENDED
         - Clear FTDM_CHANNEL_SUSPENDED when delivering FTDM_SIGEVENT_SIGSTATUS changed to UP
         - Update ftmod_r2 to honor local suspend requests when returning from alarm state
2011-01-17 15:42:36 -05:00
Moises Silva
04d5652819 freetdm: fix incorrect alarm reporting due to Wanpipe bug
proper alarm handling for R2 calls
2011-01-14 18:43:42 -05:00
Moises Silva
8a26a6f6d2 freetdm: ftmod_r2 - map glare cause 2011-01-12 10:53:38 -05:00
Moises Silva
baac734ec4 freetdm: more R2 glare improvements 2011-01-10 17:19:51 -05:00
Moises Silva
2cfd09c35c freetdm: initial glare handling code 2011-01-07 16:00:06 -05:00
Arnaldo Pereira
a390e046b7 freetdm: ftmod_r2 - now locking the channel on main loop start and finish
replaced calls to ftdm_mutex_lock() with ftdm_channel_lock()
2011-01-04 20:07:22 -02:00
Moises Silva
1334d02ac0 Merge branch 'moy.nonblocking-api'
Conflicts:
	libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c
2011-01-04 12:32:30 -05:00
Moises Silva
39d58e0452 freetdm: - Update ftmod_sangoma_isdn to use core state advance
- Added locking documentation (docs/locking.txt)
	 - Updated core state advance to use state processor in span
           rather than pushing the processor in the function arguments
2010-12-31 09:42:15 -05:00
Moises Silva
090864fa39 freetdm: completed most of the code for the new core state processing
use new core state processing functions in ftmod_r2
2010-12-29 13:38:43 -05:00
Moises Silva
568013bc60 freetdm: initial changes to make FreeTDM APIs non-blocking 2010-12-23 15:39:20 -05:00
Arnaldo Pereira
fa5ec0e553 freetdm: core - changed behavior of ftdm_channel_close(). instead of returning if the channel isn't
opened, not it prints a warning and proceeds to close it.
         ftmod_r2 - added handler for FTDM_CHANNEL_STATE_RESET state
2010-12-23 18:15:37 -02:00
Moises Silva
525b0978ca freetdm: ftmod_r2 - use openr2 API extension to properly report incoming restricted ANI and restrict ANI on outgoing calls 2010-12-22 15:07:32 -05:00
Arnaldo Pereira
f5c36acfe2 freetdm: mod_freetdm - updated api commands help
ftmod_r2 - updated api help and removed references to threads per channel,
                    not used anymore
2010-12-21 13:31:21 -02:00
Moises Silva
87818abedd Merge remote branch 'fsorig/master' 2010-12-17 20:31:15 -05:00
Moises Silva
a1a50c87ec freetdm: OPENZAP-123 - Restrict ANI presentation in ftmod_r2 (Patched by ric) 2010-12-17 19:33:43 -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
Arnaldo Pereira
d3a24be0ba freetdm: ftmod_r2 - updated ftdm_r2_set_channel_sig_status() to notify the user of signaling changes
just when specified on docs/sigstatus.txt.
					also updated ftdm_r2_set_span_sig_status(), so that it uses the former to set channels
                    status, instead of doing it directly.
2010-12-17 15:50:11 -02:00
Arnaldo Pereira
a134136ee7 freetdm: ftmod_r2 - notify the core when we change the signaling status of a channel or span through the api 2010-12-16 19:44:32 -02:00
Arnaldo Pereira
43dd86fb96 freetdm: ftmod_r2 - small code clean 2010-12-16 18:47:40 -02:00
Arnaldo Pereira
6b66a0516b freetdm: ftmod_r2 - fixed infinite loop on span stop 2010-12-16 18:19:50 -02:00
Arnaldo Pereira
37753892f1 Merge branch 'master' of git@git.sangoma.com:smg_freeswitch 2010-12-16 17:01:37 -02:00
Arnaldo Pereira
a082c9e913 freetdm: ftmod_r2 - implemented ftdm_r2_get_span_sig_status() and ftdm_r2_set_span_sig_status()
mod_freetdm - created sigstatus api command
2010-12-16 17:01:06 -02:00
David Yat Sin
ccbc2ed93c Merge branch 'davidy.mapped_raw_traces' 2010-12-15 16:45:15 -05:00
David Yat Sin
dd345b913b freetdm: Support for RAW traces 2010-12-15 16:29:03 -05:00
Arnaldo Pereira
72f99898d2 freetdm: ftmod_r2 - updated warning message 2010-12-15 18:48:49 -02:00
Arnaldo Pereira
20ba5da479 freetdm: ftmod_r2 - implemented set_channel_sig_status() 2010-12-15 18:08:55 -02:00
Arnaldo Pereira
dcdbeff9d8 freetdm: ftmod_wanpipe - now receiving ftdm macros for channel polling, instead of using POLLPRI, etc., directly
ftmod_r2 - also using ftdm macros for polling
2010-12-15 17:43:40 -02:00
Moises Silva
1c01144c20 freetdm: open all media dumps as binary. Fixes Windows corrupted cores. 2010-12-14 16:55:40 -05:00
Moises Silva
c6417fa2b3 freetdm: ftmod_r2 - disable MF dump for forward calls on call accepted 2010-12-14 16:50:10 -05:00
Moises Silva
a2faee2023 freetdm: ftdm_r2 - fix stats 2010-12-13 16:27:51 -05:00
Moises Silva
19c0026581 Merge remote branch 'fsorig/master' 2010-12-12 19:32:36 -05:00
Arnaldo Pereira
1347983883 freetdm: ftmod_r2 - handle FTDM_CHANNEL_STATE_RINGING, just printing a debug message 2010-12-10 19:31:11 -02:00
Arnaldo Pereira
666e9fc2c6 freetdm: ftmod_r2 - reject collect calls when allow_collect_calls isn't true 2010-12-10 18:48:04 -02:00
David Yat Sin
fb9a1b05ac Merge branch 'smgfs' 2010-12-10 15:22:14 -05:00
Moises Silva
e96d8f1630 freetdm: fix windows warning in ftmod_r2 2010-12-10 13:42:47 -05:00
Moises Silva
002181e143 freetdm: fix serious mem leak in R2 module iterator usage 2010-12-10 06:52:04 -05:00
Moises Silva
499eafb2e0 freetdm: check for dump enabled before writing to file 2010-12-09 07:19:31 -05:00
Moises Silva
b02682bdbe freetdm: ftdm_r2 - process only OOB events 2010-12-08 22:55:43 -05:00
Moises Silva
315441d219 freetdm: ftmod_r2 - handle race on protocol error 2010-12-08 14:30:47 -05:00
Moises Silva
fc2f2790c0 Merge branch 'master' of git.sangoma.com:smg_freeswitch 2010-12-08 13:16:17 -05:00
Arnaldo Pereira
bc44d99a45 Merge branch 'master' of git@git.sangoma.com:smg_freeswitch 2010-12-08 19:25:55 -02:00
Arnaldo Pereira
68cad2aa95 freetdm: ftmod_r2 - use freetdm logical channel id to set r2chan's id 2010-12-08 19:25:44 -02:00
Moises Silva
e6250bcb94 freetdm: ftmod_r2 - Add protocol error recovery timer 2010-12-08 13:15:26 -05:00
Moises Silva
de23c6d375 freetdm: ftmod_r2 - Remove buggy collision check 2010-12-08 12:01:13 -05:00
Moises Silva
d6583acd3b freetdm: mod_freetdm - fix progress media state for R2 signaling
ftmod_r2 - Do not set the state to DIALING unless openr2_chan_make_call succeeds
2010-12-08 11:57:24 -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
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