Commit Graph

2672 Commits

Author SHA1 Message Date
Trever L. Adams 052c7c3061 FS-9785: Fix format-truncation warnings for systems that treat it as an error. 2017-06-29 21:35:38 -06:00
Marc Olivier Chouinard dabab9f25a FS-10293: Fix regression from FS-9638 causing 1 way audio on FreeTDM Calls 2017-05-06 19:50:17 -04:00
Marc Olivier Chouinard 119dd7e8e8 FS-10108: mod_freetdm - Configurable FreeTDM Configuration file locations 2017-03-08 16:13:38 -05:00
Moises Silva 7b9184e94f Fix compiler warning/error in ftmod_r2.c 2016-08-18 19:10:48 -04:00
Michael Jerris 15d250ed7c FS-9136: update other modules to match api change 2016-06-03 18:21:08 -05:00
Davide Colombo 5e5bc23f47 OPENZAP-241: set always STATE_HANGUP_COMPLETE 2016-03-10 14:46:05 +01:00
Moises Silva 8a81c3f59e OPENZAP-238: [freetdm] Fix gsm caller id and dnis information
Also fix small leak caused by the span being destroyed before the gsm loop ran
2015-11-13 02:58:06 -05:00
Moises Silva c8a9c07059 OPENZAP-238: [freetdm] Fix gsm signaling status reporting 2015-11-13 02:57:39 -05:00
Moises Silva c3e40b29be OPENZAP-238: [freetdm] Fix stop sequence to properly shutdown the gsm span using libwat
Misc code style fixes as well:

* Use static functions everywhere, no need to pollute the global namespace
* Rework some function names and variables to use lower case
2015-11-13 02:45:24 -05:00
Moises Silva b1de2ccd95 OPENZAP-238: [freetdm] Add new GSM parameter startup-command
The new parameter startup-command for gsm spans allows
executing raw AT commands on span startup
2015-11-13 02:05:53 -05:00
Moises Silva 7b4838035a OPENZAP-238: [freetdm] Enable GSM immediate forwarding logic
Use the new parameter immediate-forwarding-numbers to configure
immediate forwarding logic that emulates hunt groups

The parameter syntax is:

[<span-name>:]<number>

Multiple elements can be specified separated by commas

If the <span-name> is specified, the span will be checked for
availability, if available, its number will be selected for
forwarding, otherwise next number will be checked

Forwarding is enabled as soon as a channel is answered and its
disabled when the channel is hung up
2015-11-13 02:05:53 -05:00
Moises Silva 54005bfead OPENZAP-238: [freetdm] Confirm release on hangup of raw GSM call 2015-11-13 02:05:53 -05:00
Moises Silva 0267ab566d OPENZAP-238: [freetdm] Fix state transition on hangup after a raw call is placed 2015-11-13 02:05:53 -05:00
Moises Silva 160576f86b OPENZAP-238: [freetdm] Fix gsm forwarding initialization 2015-11-13 02:05:53 -05:00
Moises Silva f5894db211 OPENZAP-238: [freetdm] Several core and gsm improvements
* Add error handing in mod_freetdm for ftdm trace failures

* Allow freetdm signaling modules to specify a destroy function

* Added conditional forwarding to the freetdm gsm module
  Just specify the conditional-forwarding-number gsm parameter in freetdm.conf.xml

* Added new 'gsm call' freetdm command for raw GSM calls which can be
  used to enable/disabling network features (e.g call *93) without
  having to resort to use a full originate that requires routing the
  call somewhere when answered

* Miscelaneous cleanup of piggy coding style left over by one of the
  previous authors -_-
2015-11-13 02:05:53 -05:00
Moises Silva ce5c99d45c OPENZAP-240 #resolve [GSM module uses incorrect length when parsing AT responses]
Use the buffer length returned by the driver instead of trying to use strlen()
2015-11-08 22:12:41 -06:00
Michael Jerris 164c6111a1 FS-7966: remove some older versions of msvc build system as these will no longer work soon, please use 2015 instead 2015-08-31 10:19:10 -05:00
Michael Giagnocavo 5e456fe9a6 FS-7966. First pass at moving to Visual Studio 2015.
The new C compiler breaks a lot of things. snprintf and timespec now exist, and redefining causes an error.
Many more things are warnings, so warnings-as-errors will fail - remove it from some projects for now.
V8: don't pass VS version to build batch file.
mod_sofia: Config has too-long if/elseif chain. Break this up to avoid "parser stack overflow; program too complex".
Add mod_conference.h to project and dir to includes.
2015-08-21 18:28:32 -04:00
andywang1988 f767fe5ed6 Fixed Bug/FS-7754 2015-07-07 15:10:13 +08:00
Michael Jerris 5f33fb35c5 rename debug trace 2015-07-06 17:28:13 -04:00
Moises Silva e8cbfe9631 freetdm: Fix some GSM compilation errors and do a bit of code cleanup 2015-07-03 12:42:34 -04:00
Moises Silva 01a9e443ea freetdm: Declare __FTDM_FUNC__ macro and use it instead of __FUNCTION__ to deal with platform differences
OPENZAP-237 #resolve
2015-07-03 12:42:33 -04:00
Moises Silva 73b35fe7e4 freetdm: Use __func__ instead of __FUNCTION__ to comply with c99 in gcc 5.1
OPENZAP-237 #resolve
2015-06-28 22:50:03 -04:00
Moises Silva e401b1469f freetdm: Fix gsm hangup race 2015-06-24 01:52:08 -04:00
Moises Silva 2d03e1afd0 freetdm: Fix gsm call id management 2015-06-24 00:50:37 -04:00
Michael Jerris 2cc0348422 FS-7635: remove msvc 2005 2008 and 2010 non working build systems. There are now multiple more recent (3 different ones) and some free versions of the compiler that can be used. 2015-06-10 16:33:14 -04:00
Matteo Brancaleoni 0127e9bf47 FS-7620 Correctly set calling number presentation and screening fields. 2015-06-08 17:54:30 +02:00
Anthony Minessale 7c294f242f FS-7504: allow <modname>.<codecname> support so multiple modules can exist for the same codec 2015-05-28 12:47:13 -05:00
Brian West cd98ec85e2 fix line endings 2015-05-28 12:46:43 -05:00
Moises Silva 98de925e46 Merge pull request #171 in FS/freeswitch from ~MBRANCA/freeswitch:bugfix/FS-7209-improve-ani-ton-and-type-when-not to master
* commit '3cd62df96f78a0ea3255c4fced2e2f32f97c0a42':
  If ANI ton is not interpreted correctly by libpri, fallback to calling ton/type.
2015-01-28 10:35:09 -06:00
Moises Silva c9ebd0fcdf Merge pull request #165 in FS/freeswitch from ~MBRANCA/freeswitch:bugfix/FS-7197-libpri-spans-fails-to-stop-when-unloading to master
* commit 'e062f5e3c8355a6b5cb0d12ddb99300e95b38193':
  If the span has been already fully stopped and ftdm is not running, return success from the span stop function.
2015-01-28 10:33:47 -06:00
Matteo Brancaleoni 3cd62df96f If ANI ton is not interpreted correctly by libpri,
fallback to calling ton/type.
2015-01-28 11:13:37 +01:00
Matteo Brancaleoni e062f5e3c8 If the span has been already fully stopped and ftdm is not running,
return success from the span stop function.
2015-01-28 09:35:19 +01:00
Matteo Brancaleoni 8307e7842d Set ANI plan and ANI type for ftmod_libpri. 2015-01-27 15:56:00 +01:00
William King d82611af0b Fix build of freetdm on CentOS
Revert the build change to freetdm since it broke the build of that
modules on CentOS. Once a working change is finished, then it'll be
committed against FS-7122.

FS-7142 #resolve
2015-01-09 14:21:05 -08:00
William King 51f2442a9e resolve an automake warning about subdirs on latest automake
Latest automake will detect then warn if the Makefile uses source
files that are in subdirectories, but the subdirs option is not
set. In the FreeSWITCH build system the current expected behavior is
to expect the subdirs option to be enabled.

FS-7122 #resolve
2015-01-07 10:04:29 -08:00
matteo brancaleoni 382e683b15 Use FTDM_UINT64_FMT macro to log uint64_t values, in order to not break x86 builds. 2014-11-25 15:38:45 +01:00
Michael Jerris 0cf770a836 FS-6996: #resolve fix define change as of glibc 2.20 for _BSD_SOURCE -> _DEFAULT_SOURCE 2014-11-17 09:27:22 -05:00
Moises Silva eb30491688 Merge remote-tracking branch 'moystash/em-suspend-support'
Conflicts:
	libs/freetdm/src/include/private/ftdm_core.h
2014-11-09 03:50:07 -05:00
Moises Silva 6b8d5b2b10 freetdm: Fix release guard timer check 2014-11-09 00:41:59 -08:00
Moises Silva 2f1b12fdc0 OPENZAP-232 #resolve
Patched-By: Florian Richter

Check for digits received on sangoma isdn stack to avoid delaying
moving to the ring state if all digits are received at once in
overlap dialing mode
2014-11-09 03:33:43 -05:00
Matteo Brancaleoni 7ec7c920d1 OPENZAP-220 fix blocked into read and add cause for a correct hangup 2014-10-07 14:34:39 +02:00
Travis Cross 8414c498cf Fix line endings per .gitattributes 2014-08-08 15:24:42 +00:00
Moises Silva d65716d83a freetdm: Added dtmf_time_on and dtmf_time_off parameters to tweak DTMF duration in milliseconds 2014-07-27 13:29:58 -04:00
Moises Silva b80cdd45d5 freetdm: Added release guard time configuration
Currently only enabled in the analog e&m module but any
signaling module can easily take advantage of it with a small
modification to the signaling module to set span->sig_release_guard_time_ms
2014-07-23 00:41:08 -04:00
Moises Silva 09198ee357 freetdm: Raise some buffer limits 2014-07-22 23:44:17 -04:00
Moises Silva 61101e325f freetdm: ftmod_analog_em: Added support for suspending channels that are offhook 2014-07-22 23:30:53 -04:00
Moises Silva a65ba24298 mod_freetdm: Added 'ftdm cas' command to read/write raw CAS bits 2014-07-22 23:30:45 -04:00
Moises Silva ae9e740d7f freetdm: ftdm_gsm: Remove some old debug code 2014-07-13 03:06:28 -04:00
Moises Silva 4bc1b731cb freetdm: ftdmod_gsm: Allow hwdtmf parameter to accept detect or generate
You can now enable the hardware dtmf detection and/or generation
2014-07-13 02:46:28 -04:00