Commit Graph

123 Commits

Author SHA1 Message Date
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
Moises Silva 35776314d0 freetdm: Use proper screen and presentation definitions in mod_freetdm 2011-01-05 10:39:25 -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 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 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
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 38968d15fe freetdm: fake signaling status notifications in ftmod_analog 2010-12-20 16:15:41 -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
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 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 6e24e8e67b Merge remote branch 'smgfs/master' 2010-12-16 16:50:19 -05: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
Anthony Minessale 43393f26d1 normalize tests for outbound channels to use switch_channel_direction instead of testing for CF_OUTBOUND 2010-12-15 20:59:42 -06:00
David Yat Sin a24b9c9f68 freetdm: Support for RAW traces 2010-12-15 16:29:44 -05:00
David Yat Sin 102640ad7b freetdm: support for SIGEVENT_RING 2010-12-15 11:45:50 -05:00
David Yat Sin 905fdcc248 freetdm: Support for channel restarts 2010-12-14 11:23:47 -05:00
David Yat Sin 3c747978f4 freetdm: support for call variables 2010-12-09 13:20:05 -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 50f2686fa1 freetdm: Add FTDM_COMMANDs to debug DTMF 2010-12-03 17:52:10 -05:00
Moises Silva dae177ec30 freetdm: Add configuration profiles support for openr2 2010-12-03 06:13:11 -05: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
Moises Silva 15b5170b14 freetdm: ftmod_libpri - add support for RINGING state 2010-11-30 16:42:58 -05:00
David Yat Sin 302d5bb18f Changes for ftdm variables 2010-11-30 12:30:31 -05:00
Arnaldo Pereira f7279386e4 freetdm: ftmod_r2 - replaced deprecated ftdm_r2_configure_span() by ftdm_r2_configure_span_signaling(), all r2 default params now stays on ftmod_r2 2010-11-26 22:10:33 -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 8aae091273 Merge branch 'master' of git.sangoma.com:smg_freeswitch 2010-11-23 14:56:50 -02:00
Arnaldo Pereira af5f0a4acd freetdm: made ftmod_r2 use FTDM_SPAN_USE_SIGNALS_QUEUE and properly send FTDM_SIGEVENT_SIGSTATUS_CHANGED 2010-11-23 14:55:59 -02:00
Moises Silva 04e8541366 freetdm: add release event to ftdm core 2010-11-23 11:43:52 -05:00
Stefan Knoblich ced7c9ae43 freetdm: Another round of parameter handling fixes (ftmod_{libpri,isdn,pritap})
ftmod_pritap: Abort before overflowing spanparameters array and initialize to all zero
ftmod_isdn:   Fix overflow check, skip over parameters without name or value, initialize spanparameters array to all zero.
ftmod_libpri: Skip over parameters without name or value, initialize spanparameters array to all zero and drop "i < 10" hardcoded check.

This should fix:
	2010-11-15 09:24:34.609515 [ERR] ftmod_libpri.c:1741 Unknown parameter '', aborting configuration
	2010-11-15 09:24:34.609515 [ERR] mod_freetdm.c:3080 Error configuring FreeTDM span BRI_1

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
Reported-by: Ingmar Schraub <is@eseco.de>
2010-11-15 12:33:58 +01:00
Stefan Knoblich 47af9933c4 freetdm: convert ftmod_isdn to use (+ pri_spans) to use ftdm_configure_span_signaling() interface.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 15:44:50 +01:00
Stefan Knoblich 197e4b71d6 mod_freetdm: Really avoid overwriting the last element of spanparameters.
"if (ftdm_array_len(spanparameters) == paramindex)" is still off-by-one,
we want to stop at "ftdm_array_len(spanparameters) - 1", before we overwrite
the last (= terminating, NULL) element.

NOTE: i'd prefer an "argc, argv"-style interface here

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-12 11:42:26 +01:00
Stefan Knoblich eeaab3a02e mod_freetdm: Avoid overflowing the spanparameters array of libpri spans, and make other span types use ftdm_array_len() too.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-11 23:56:55 +01:00
Moises Silva 8d66f38212 Merge branch 'master' of git://git.freeswitch.org/freeswitch
Conflicts:
	conf/autoload_configs/modules.conf.xml
	libs/freetdm/src/ftdm_sched.c
	libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
2010-11-09 12:59:48 -05:00
Stefan Knoblich 78eff1d821 freetdm: convert ftmod_libpri (+ libpri_spans) to use new ftdm_configure_span_signaling() interface.
This fixes several issues with parameter handling (e.g. default alaw/ulaw selection being totally useless).

Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-07 17:00:54 +01:00
Moises Silva 46a9fa3910 freetdm: add debugging msgs for zt wait errors 2010-11-06 17:14:31 -04:00
Arnaldo Pereira dcb416e4fb freetdm: ftmod_r2 non threaded working 2010-11-01 23:08:43 -02:00
David Yat Sin 1c9fe263d6 Changed ftdm_cpu_monitor behaviour 2010-09-23 13:58:20 -04:00
Moises Silva f37729152d freetdm: dump uuid of the channel associated session if any 2010-09-23 09:30:08 -04:00
Moises Silva 2293f09da4 Merge branch 'moy.statedebug' 2010-09-23 07:40:49 -04:00
Moises Silva ed01944c15 freetdm: add initial changes for FreeTDM channel history feature 2010-09-22 14:59:06 -04:00
Moises Silva 5e60c62e08 freetdm: set conf and mod directory in runtime 2010-09-21 13:56:11 -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 8370f0c233 freetdm: more iterator fixes 2010-09-10 14:46:51 -04:00
Moises Silva 507b73070b freetdm: fix iterator usage 2010-09-10 14:18:29 -04:00
Moises Silva bc2638334b freetdm: iterators refactoring
add channel iterator
2010-09-10 14:18:29 -04:00
Moises Silva e7fecd0ff9 freetdm: fix config to allow both sangoma pri and bri spans to be configured 2010-09-09 17:22:10 -04:00
Moises Silva f708ee1a0b freetdm: fix help message 2010-09-07 21:21:11 -04:00