Commit Graph

159 Commits

Author SHA1 Message Date
Moises Silva
244fd68dfd freetdm: added command complete for ftdm queuesize 2011-03-21 14:27:57 -04:00
Moises Silva
63706a839f freetdm: add support for setting the channel tx/rx queue size from config file (wanpipe.conf) and from CLI 2011-03-21 14:25:20 -04:00
Jeff Lenk
a8f01d5bc6 Correct gains usage example 2011-03-10 16:58:16 -06:00
Moises Silva
865d04ef2f Merge remote branch 'fsorig/master' 2011-03-05 20:46:30 -05:00
Moises Silva
7e5befc2ba freetdm: use ftdm_channel_hangup_with_cause for CAS channels (ftmod_r2) 2011-03-01 12:16:27 -05:00
Moises Silva
4793c697bd Merge branch 'netborder'
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftdm_io.c
	libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2_io_mf_lib.h
	libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_trace.c
	libs/freetdm/src/include/freetdm.h
	libs/freetdm/src/include/private/ftdm_core.h
2011-02-28 12:47:27 -05:00
Moises Silva
d1b3c595cf Merge branch 'netborder' of git.sangoma.com:smg_freeswitch into netborder
Conflicts:
	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftdm_state.c
2011-02-28 10:55:40 -05:00
Moises Silva
cd6eee31a2 freetdm: remove ftdm_channel_init API 2011-02-28 10:52:30 -05:00
Moises Silva
687d39f259 freetdm: ftmod_analog - Add timeout parameter for dial tone. 0 means not waiting for dial tone. 2011-02-25 10:35:25 -05:00
David Yat Sin
49ac70defd freetdm: User variables now stored in ftdm_usrmsg_t 2011-02-25 09:58:15 -05:00
David Yat Sin
cabd05d116 chlog: freetdm: channel/call variables moved to sigmsg 2011-02-18 13:01:57 -05:00
Konrad Hammel
11cc6f95cd freetdm: ss7 - update to configuration file to mirror ISDN configuration 2011-02-15 11:58:16 -05:00
Moises Silva
f113c323fc Merge branch 'master' of git.sangoma.com:smg_freeswitch 2011-02-14 17:32:55 -05:00
Moises Silva
c9ee4fab73 freetdm: remove deprecated channel variables code 2011-02-14 17:32:30 -05:00
Moises Silva
e281aca346 Merge branch 'netborder' of git.sangoma.com:smg_freeswitch into netborder 2011-02-14 15:33:19 -05:00
Moises Silva
642882727f freetdm: added CLI completion for core commands 2011-02-14 15:14:44 -05:00
Moises Silva
acd6333e33 freetdm: disallow completely core variables for freetdm outbound variables 2011-02-11 10:55:11 -05:00
Arnaldo Pereira
41dc6f46db Merge branch 'master' of git://git.freeswitch.org/freeswitch 2011-02-03 19:57:25 -02:00
Anthony Minessale
257bf9a46c fix possible bad pointer in global vars (please test) 2011-02-02 16:05:51 -06:00
David Yat Sin
57b0710bac freetdm: Fix for typo in print 2011-02-02 11:35:38 -05:00
Konrad Hammel
a382990d9f chlog: freetdm: ss7 - bug fix: a route now supports multiple linksets 2011-01-29 19:49:34 -05:00
Konrad Hammel
becb94052a chlog: freetdm: ss7 - added support for RELAY 2011-01-29 19:49:34 -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
3594419622 Merge branch 'master' into moy.r2glare 2011-01-12 13:37:05 -05:00
Moises Silva
85e107a56e freetdm: set channel name before caller profile
otherwise the channel name is not set in 'show channels'
2011-01-11 14:53:14 -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
Brian West
e42c423c92 add tab completion stuffs 2011-01-10 14:44:54 -06: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
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
665b12b1f5 Merge remote branch 'fsorig/master' 2010-12-21 15:23:23 -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
Jeff Lenk
a1a710482b freetdm windows build tweaks 2010-12-20 12:15:41 -06: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
fb9a1b05ac Merge branch 'smgfs' 2010-12-10 15:22:14 -05:00
Jeff Lenk
8016813234 freetdm VS2010 build fix 2010-12-09 14:03:09 -06:00