447 Commits

Author SHA1 Message Date
Moises Silva
3594419622 Merge branch 'master' into moy.r2glare 2011-01-12 13:37:05 -05:00
David Yat Sin
62941f69d8 Added FTDM_SPAN_NON_STOPPABLE flag for signalling modules that do not support individual start/stop 2011-01-10 17:46:18 -05:00
Moises Silva
74a01d23bc freetdm: Added FTDM_SIGEVENT_DIALING
Added hunting scheme to support new ftdm_call_place API
         Make ftdm_channel_call_answer use ftdm_channel_call_indicate with FTDM_CHANNEL_INDICATE_ANSWER
         Updated doxygen docs in freetdm.h
2011-01-10 16:49:58 -05:00
Moises Silva
2cfd09c35c freetdm: initial glare handling code 2011-01-07 16:00:06 -05:00
Moises Silva
309ced0eac Merge remote branch 'fsorig/master' 2011-01-06 09:04:57 -05:00
Moises Silva
eb84fc772f Merge branch 'master' into netborder
Conflicts:
	libs/freetdm/src/ftdm_io.c
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_trace.c
	libs/freetdm/src/include/freetdm.h
2011-01-05 13:11:37 -05:00
Brian West
3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Moises Silva
47c1b6d96a freetdm: add validation to ftdm_span_start and ftdm_span_stop 2011-01-04 14:23:25 -05:00
Moises Silva
4a6b4e86f1 freetdm: add non-locking answer function to handle answer indication
export ftdm_current_time_in_ms to users
	 update testr2 to test non-blocking API (no waiting on indications)
2011-01-04 09:30:49 -05:00
Moises Silva
fe0d8d1ec5 freetdm: - updated all signaling modules (except for ftmod_isdn and ftmod_sangoma_ss7) to adapt to new core state processing
- fixed bug in configure.ac to detect ftmod_pritap compilation
         - ignore FTDM_SIGEVENT_RELEASED and FTDM_SIGEVENT_INDICATION_COMPLETED in mod_freetdm
         - Destroy the state completed interrupt on channel destroy
         - Fix analog polarity reversal bug when using 3-way calling or call-swap
2010-12-31 13:44:20 -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
903d136481 freetdm: remove busy-waiting and use ftdm interrupt to wait for state change completion 2010-12-30 10:23:56 -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
4268bf84b0 freetdm: more core state refactoring, still untested 2010-12-24 15:58:04 -05:00
Moises Silva
cd28c4fc98 fretdm: remove m3ua unused stuff 2010-12-23 17:59:05 -05:00
Moises Silva
568013bc60 freetdm: initial changes to make FreeTDM APIs non-blocking 2010-12-23 15:39:20 -05:00
Moises Silva
358a3192c5 freetdm: remove unused core flag macros 2010-12-22 15:26:10 -05:00
Moises Silva
54359f1b78 freetdm: fix call id generation 2010-12-21 19:04:41 -05:00
Moises Silva
ebb6133529 Merge branch 'master' of git.sangoma.com:smg_freeswitch 2010-12-21 15:16:09 -05:00
Moises Silva
cdfa8bf7ae freetdm: Added new OOB event FTDM_OOB_POLARITY_REVERSE
Added new channel command FTDM_COMMAND_SET_POLARITY
         ftmod_wanpipe - Added support to enqueue polarity events on FXO lines
	 ftmod_wanpipe - Added support to set polarity on FXS lines
	 ftmod_analog - Added support to answer and hangup FXO lines on polarity reverse
	 ftmod_analog - Added support to reverse polarity in the FXS line on answer and hangup
	 mod_freetdm - Added parameters answer-on-polarity, hangup-on-polarity and polarity-delay
                       to enable those analog features
2010-12-21 15:11:22 -05:00
Moises Silva
1d7a1bd131 freetdm: use ULL for flags 2010-12-21 08:57:11 -05:00
Moises Silva
b5b2f6134d freetdm: multiple fixes for the core and analog
* Replace ftdm_channel_flag_t with defines. We reached the 32bit limit where does not seem reliable
          to keep using enum.
	* Flags member for ftdm_channel_t is now uint64_t
	* Added FTDM_CHANNEL_CALL_STARTED flag to indicate when the API user knows about a call
	* Refactored raw_data member for ftdm_sigmsg_t. If raw_data needs to be freed it must be requested explicitly
          through the autofree member
	* Added collected member to ftdm_sigmsg_t for FTDM_SIGEVENT_COLLECTED data instead of using raw_data
	* Created define FTDM_DIGITS_LIMIT for DNIS/ANI digits limit
	* Fix some stat checks and outdated code in ftmod_analog
	* Refactored ftdm_channel_get_history_str API to return the time offsets and time since last state change
	* Do not send FTDM_SIGEVENT_STOP and FTDM_SIGEVENT_RELEASED on calls that were never reported to the user
2010-12-20 14:06:54 -05:00
Moises Silva
dd4bad220c freetdm: ftmod_libpri - update to use proper structure member for signaling status change notifications 2010-12-19 12:55:55 -05:00
Moises Silva
2b0bba8e94 freetdm: add __USE_BSD to ftdm_os, needed by unistd.h for usleep() and string.h to define strcasecmp()
add -Werror even when the compiler is unknown. This is just a work-around to gcc not being detected
	 as GNU by our current standalone build (not bootstrapped through FreeSWITCH)
2010-12-17 20:27:37 -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
Moises Silva
27ea959b4b freetdm: add __USE_BSD to ftdm_os, needed by unistd.h for usleep() and string.h to define strcasecmp()
add -Werror even when the compiler is unknown. This is just a work-around to gcc not being detected
         ad GNU by our current standalone build (not bootstrapped through FreeSWITCH)
2010-12-17 12:57:12 -05:00
Arnaldo Pereira
0f91359f3a Merge branch 'master' into netborder 2010-12-16 21:33:22 -02:00
Moises Silva
0f937ca134 freetdm: Add documentation on sig status 2010-12-16 18:29:45 -05:00
David Yat Sin
48a1ae3896 freetdm: added trace type to raw traces 2010-12-16 15:57:46 -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
102640ad7b freetdm: support for SIGEVENT_RING 2010-12-15 11:45:50 -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
905fdcc248 freetdm: Support for channel restarts 2010-12-14 11:23:47 -05:00
David Yat Sin
55203ed0d7 Support for call ID 2010-12-10 19:14:08 -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
David Yat Sin
3c747978f4 freetdm: support for call variables 2010-12-09 13:20:05 -05:00
Moises Silva
18299684bf freetdm: added core command to print channels by flag 2010-12-08 14:50:40 -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
Moises Silva
50f2686fa1 freetdm: Add FTDM_COMMANDs to debug DTMF 2010-12-03 17:52:10 -05:00
Moises Silva
1c636e8003 Merge branch 'master' into moy.iodump 2010-12-03 12:59:48 -05:00
Moises Silva
8dd33bc8cc freetdm: add channel commands to record and dump media 2010-12-02 18:35:48 -05:00
Arnaldo Pereira
7dbb4834e4 freetdm: ftmod_wanpipe - fixed param documentation for wanpipe_channel_next_event() 2010-12-02 20:21:22 -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
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
7a7a387f55 freetdm: improve IO stats (cherry picked from R2 branch) 2010-11-26 15:49:18 -05:00