Commit Graph

295 Commits

Author SHA1 Message Date
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
David Yat Sin cc722c64f3 minor fixes 2010-09-02 13:46:00 -04:00
David Yat Sin e4b5c49fc1 freetdm: fix code using raw_data as an integer when is actually null 2010-09-02 12:51:56 -04:00
Moises Silva a278b6b403 freetdm: added channel variable iterator for signaling specific data 2010-09-02 12:11:31 -04:00
David Yat Sin abb342f430 Initialized bearer_cap to FTDM_INVALID_INT_PARM 2010-09-01 16:35:59 -04:00
David Yat Sin 432e9cdf5b Added passthrough for bearer capability 2010-09-01 15:04:09 -04:00
David Yat Sin e90ccb151e fix for segfaults in cases where we were still using raw_data as pointer 2010-08-31 19:05:37 -04:00
Moises Silva 291adb5686 freetdm: add analog limits 2010-08-31 13:59:13 -04:00
Moises Silva 9a26e0cc2b freetdm: crash on assert 2010-08-31 13:48:48 -04:00
Anthony Minessale 6fe6e67573 pass originate flags into session_request so we can selectivly skip throttling 2010-08-26 12:20:14 -05:00
Moises Silva 07b81760cb freetdm: add bearer capability and layer1 pass-thru for boost 2010-08-10 18:51:06 -04:00
Moises Silva b485f25f5e freetdm: add PRI tapping starting code 2010-07-30 19:46:05 -04:00
Moises Silva a1fe7c8de4 freetdm: call rate limit 2010-07-28 11:36:06 -04:00
Jeff Lenk 71650ae1e8 FSBUILD-291 fix Windows build of mod_freetdm 2010-07-19 08:38:56 -05:00
Moises Silva 6eca1286aa freetdm: add config profiles and sangoma isdn xml section 2010-06-30 15:12:18 -04:00
Moises Silva 4f235af8b4 freetdm: ani2 2010-06-30 11:14:31 -04:00
Moises Silva e4b9556208 freetdm: more sip headers 2010-06-29 16:30:07 -04:00
David Yat Sin eb6da2c9fc Freetdm: Fix for boost spans not started if using a combination of analog spans and boost spans 2010-06-29 15:32:22 -04:00
Moises Silva dc048ed22d freetdm: fix id 2010-06-27 19:33:11 -04:00
Moises Silva 29ce4bbdd1 freetdm: add span to trace logging 2010-06-25 12:47:32 -04:00
Moises Silva fd0191049c freetdm: disable dtmf on demand based on dial plan variable freetdm_disable_dtmf 2010-06-25 12:47:32 -04:00
Jeff Lenk 90f04e3c3c fixes for Win X64 builds 2010-06-17 19:35:20 -05:00
Moises Silva ae134c3424 freetdm: export sip headers with TDM information on-demand 2010-06-17 18:11:22 -04:00
Moises Silva 7677ec5bdf freetdm: change glare cause 2010-06-17 18:05:23 -04:00
Moises Silva 2a1a3867d1 freetdm: fix collision hangup 2010-06-16 11:22:18 -04:00
Moises Silva 66934c6f3e freetdm: use on_clear_channel_signal for the ss7 event handling 2010-06-08 14:14:14 -04:00
Moises Silva 9f73ddd35b freetdm: fix ss7 config 2010-06-06 13:07:45 -04:00
Moises Silva fcb78c07a5 freetdm: ignore nothing to read condition 2010-06-03 19:09:34 -04:00
Moises Silva 015d782237 freetdm: DTMF debugging 2010-06-03 17:27:43 -04:00
Moises Silva e596fc2e7f freetdm: add logging when failing to read a frame in mod_freetdm 2010-06-02 14:48:37 -04:00
Moises Silva c526228673 freetdm: fix id 2010-06-01 11:51:27 -04:00
Moises Silva 000e3c16e3 freetdm: start ss7 span 2010-05-31 06:27:19 -04:00
Moises Silva b049e87423 freetdm: signed/unsigned 2010-05-28 18:43:45 -04:00
Moises Silva f4da0e5c0e freetdm: add trace/notrace commands to trace input and output from channels 2010-05-28 12:45:04 -04:00
Moises Silva e00d2af95e freetdm: enable DTMF app 2010-05-26 11:17:47 -04:00
Moises Silva 2efa471c3b freetdm: disable DTMF app and cmd line option 2010-05-25 18:22:05 -04:00
Moises Silva 7256232af2 freetdm: add call waiting disable/enable feature 2010-05-25 12:54:46 -04:00
Moises Silva edb2d58285 freetdm: export and import boost custom data 2010-05-21 11:10:39 -04:00
Moises Silva 9d45690006 freetdm: add pvt data to freetdm channels
fix fxs features
2010-05-20 11:44:16 -04:00
Moises Silva f1132a2b71 freetdm: fix handlers for FTDM_SIGEVENT_COLLECTED_DIGIT 2010-05-17 19:03:32 -04:00
Moises Silva 8e69e8e735 freetdm: clean up state change macros and functions to improve logging 2010-05-17 14:36:10 -04:00
Moises Silva e57ab3acd5 freetdm: remove if 0 sections 2010-05-17 11:26:25 -04:00
Moises Silva 110bd5cdb1 freetdm: windows fixes 2010-04-29 10:53:03 -04:00
Moises Silva a744214a3a freetdm: check protocol status after configuring the signaling 2010-04-28 18:17:52 -04:00
Moises Silva f39fcfc8a9 freetdm: fix boost glare invalid state transition
show physical status in ftdm list command
         update list of events
2010-04-28 18:17:51 -04:00
Moises Silva 06ebf2cb5b freetdm: dont access span_id or chan_id 2010-04-28 18:17:51 -04:00
Moises Silva e6f6f559ae freetdm: added documentation and clean up script 2010-04-28 18:17:50 -04:00
Moises Silva 56db486189 freetdm: hangup the chan call when the core fails to create the session 2010-04-28 18:17:50 -04:00
Moises Silva c165771474 freetdm: completion of compilation with initial reworked API 2010-04-28 18:17:49 -04:00
David Yat Sin b135ef373d Removed use of ftdmchan->flags from mod_freetdm.c as they will be hidden from user in new architecture 2010-04-27 18:20:25 -04:00
David Yat Sin 51566afb98 freetdm: moved type inside ftdm_configure_span_channels 2010-04-27 17:21:57 -04:00
David Yat Sin 318866b7f9 freetdm: Added signalling status report
Fix for ftmod_libpri not reporting proper physical and protocol alarms on init
2010-04-27 14:32:36 -04:00
David Yat Sin 78fbece886 Added signalling state handle for boost modules 2010-04-23 17:34:57 -04:00
Moises Silva 0abbe4bd0e complete ss7 config by setting context and dial plan 2010-04-14 18:36:22 -04:00
Moises Silva 4704a30a45 destroy ss7 configs on shutdown 2010-04-14 18:15:22 -04:00
Moises Silva 99402dd4e0 implemented freetdm config nodes and ss7 initial configuration 2010-04-14 18:00:16 -04:00
Moises Silva e3c1906c81 add ss7 skeleton config section 2010-04-14 18:00:16 -04:00
Moises Silva d54845d929 fix alarm log msg 2010-04-13 16:26:07 -04:00
Moises Silva 0bf8482393 add realloc OS hooks and fix boost pri CLI 2010-04-13 15:18:18 -04:00
Moises Silva 52c5cd074b import fix for OPENZAP-76 from openzap and other minor fixes 2010-04-06 14:41:30 -04:00
Moises Silva cb495d05e1 Fix for TON and NPI not passed through to channel variables on incoming calls 2010-04-06 13:39:03 -04:00
Moises Silva ae13883b2a added configuration of gains in openzap.conf and display through CLI 2010-04-05 18:13:13 -04:00
Moises Silva 6ddcb9044c added cpu monitor 2010-04-05 17:49:43 -04:00
Moises Silva dd39a902e6 fix double call to state_advance
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1058 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-03-12 19:25:44 +00:00
Moises Silva 617020ea0c process alarms in the core
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1055 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-03-10 21:47:28 +00:00
Moises Silva 66bc2e43c8 merged 1039:1053 openzap/trunk
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1054 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-03-10 20:06:31 +00:00
Moises Silva 5df64c1d38 merged 1023:1039 http://svn.openzap.org/svn/openzap/trunk
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1040 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-02-25 23:36:18 +00:00
Moises Silva 0d392527dc merged 956:1023 (partial merge - anything non-boost related)
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1026 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-02-09 22:01:15 +00:00
Moises Silva 926f140754 replace use of ani in favor of dnis in caller_data structure for the destiny number in outgoing calls
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1017 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-02-01 21:40:01 +00:00
Moises Silva bc90d7274f FreeSWITCH command will be ftdm and not ft
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@979 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-01-15 22:09:36 +00:00
Moises Silva ac7c608620 windows renaming to freetdm changes
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@977 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-01-15 21:43:41 +00:00
Moises Silva a8ddece1b6 more freetdm changes
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@974 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-01-15 20:35:11 +00:00
Moises Silva 1b47133795 more naming changes
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@971 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-01-15 19:56:54 +00:00
Moises Silva 900f1ed2ef Linux renaming from openzap to freetdm
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@967 a93c3328-9c30-0410-af19-c9cd2b2d52af
2010-01-15 19:22:49 +00:00