Jeff Lenk
7630d47e0e
VS2010 Initial version for freetdm
2010-11-29 21:55:34 -06:00
David Yat Sin
546a2961cb
Added channel-restart-on-link-up option
2010-11-26 12:59:36 -05:00
Moises Silva
ffbded67fd
freetdm: ftmod_libpri - lock the channel in libpri on_ring callback
...
this should fix potential call_data pointer corruption
2010-11-25 12:53:51 -05:00
Moises Silva
75bd564210
freetdm: wait for state change to be cleared when placing outgoing calls
...
this fixes a race where the call is hangup even before the state
DIALING is processed and therefore the HANGUP state change is
ignored.
2010-11-25 09:37:25 -05:00
Moises Silva
a697462a58
freetdm: ftmod_libpri - Do not unlock the channel until all states pending
...
have been cleared. This should fix issues with
state transitions being ignored.
2010-11-24 12:30:58 -05:00
Moises Silva
f1789ed5a2
Merge remote branch 'fsorig/master'
2010-11-22 10:41:16 -05:00
Moises Silva
a9a31041d4
freetdm: added wait_dialtone_timeout parameter for ftmod_analog
...
if this parameter is set to 0 ftmod_analog will not wait
for dial tone before dialing out the requested number.
Anything bigger than 0 is the units in milliseconds to
wait for dialtone before aborting the call.
2010-11-20 18:18:37 -05:00
Stefan Knoblich
d4138959b2
freetdm: use m4_ifdef() to check for pkg-config macros and print a warning if they are not available
...
...instead of failing at runtime
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-18 23:14:46 +01:00
Konrad Hammel
5e562ed55f
freetdm: ss7 - bug fix for caller-id presentation...line value was not passed through stack properly
2010-11-17 16:41:38 -05:00
Arnaldo Pereira
fee2f1b701
freetdm: removed empty stats from ftmod_r2 and fixed strsep() definition warning.
2010-11-17 14:36:31 -02:00
cypromis
5d28a8fa05
ftmod_zt typo ...
2010-11-17 17:15:30 +01:00
cypromis
05d1fd2a66
ftmod_zt rc has changed to result
2010-11-17 17:01:30 +01:00
Moises Silva
5486b8c74d
freetdm: retry polling in DAHDI devices when fails due to interrupted system call
2010-11-16 23:41:11 -05:00
Stefan Knoblich
9257e0f344
ftmod_isdn: Port(/Fix) span signal handling, remove some dead/unused pieces and close the D-Channel on shutdown.
...
This fixes a NULL-call segfault in ftdm_span_trigger_signal().
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-16 23:01:21 +01:00
Stefan Knoblich
a9b2ced2aa
ftmod_libpri: First part of the BRI PTMP channel handling changes.
...
I really need to dig deeper here, some libpri events never fire for
incoming calls and i'll have to find out how mod_freetdm or the
FreeSWITCH core change states on the channel...
Anyway, incoming and outgoing calls still work for me (BRI PTMP TE),
so commit this now and let a wider audience do some more testing.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-16 23:01:21 +01:00
Konrad Hammel
525f399812
freetdm: ss7 - updated ftmod_sangoma_ss7 to support changes to FreeTDM api
2010-11-16 11:07:41 -05:00
Arnaldo Pereira
b1e773e787
freetdm: fixed ftmod_r2 r2conf function pointers
2010-11-15 21:10:39 -02:00
Moises Silva
9fa6fb5e02
freetdm: remove unused patches directory
2010-11-15 15:48:59 -05:00
Moises Silva
6cfce6f43d
freetdm: rename mod_data to io_data since is data meant for I/O modules only
...
fix ftmod_isdn usage of mod_data, it should be call_data pointer
2010-11-15 15:39:44 -05:00
Moises Silva
f3e55a26ef
Merge remote branch 'fsorig/master'
...
Conflicts:
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_out.c
2010-11-15 14:00:49 -05:00
David Yat Sin
a09bce346e
Fix for compilation errors due to some functions defined as extern
2010-11-15 11:46:47 -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
e98b4a6b8d
ftmod_libpri: Set RDNIS
...
Signed-off-by: lakshmanan ganapathy <lakindia89@gmail.com>
Reviewed-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-15 11:38:45 +01:00
Stefan Knoblich
c1517e99d1
ftmod_zt: B-Channels need to have audio mode disabled upon closing the channel.
...
Preparation for fixing channel handling for BRI PTMP (Point-To-MultiPoint) setups.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 23:38:16 +01:00
Stefan Knoblich
96b0ef9ce9
ftmod_libpri: Use ftdm_array_len(), remove custom ARRAY_SIZE macro.
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 17:48:53 +01:00
Stefan Knoblich
e17201bbac
freetdm: Add ftdm_channel_get_state(), ftdm_channel_get_last_state() and ftdm_span_get_trunk_type_str().
...
Remove custom versions from ftmod_isdn and ftmod_libpri.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 17:48:09 +01:00
Stefan Knoblich
b0cca151e6
ftmod_isdn: Major cleanup: use accessor functions, coding-style, etc.
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-14 16:45:35 +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
Stefan Knoblich
1e777c2ce9
ftmod_libpri: While we're at it, drop the cast too
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-11 22:21:18 +01:00
Stefan Knoblich
e0961aee3a
ftmod_libpri: Dereference facility event correctly, add debug message.
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-11 22:19:32 +01:00
Stefan Knoblich
a2e16ce83c
ftmod_libpri: Minor cleanups in ftdm_libpri_configure_span().
...
Move some things around and remove 'paramindex' var (just use 'i' for that too).
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-11 00:16:25 +01:00
Stefan Knoblich
9ff4cfd569
ftmod_libpri: "ftdm libpri debug <span>" now prints the current debug flags
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-11 00:06:06 +01:00
Stefan Knoblich
1074f006a0
ftmod_libpri: Clean up misnamed parameters and variables, remove unused.
...
- Add alias names for parameters:
"node" -> "mode"
"dp" -> "ton"
"switch" -> "dialect"
"l1" -> "layer1"
(Switching between ftmod_libpri and ftmod_isdn is easier now.)
- Removed unused members from struct ftdm_libpri_data
and rename misnamed ones
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-10 22:42:18 +01:00
Stefan Knoblich
3df1476a6d
ftmod_libpri: Major cleanup, enhance configuration checks
...
- Check D and B-channel availability (could be extended to check B-channel count)
- Drop usage of spri->private_info, use spri->span instead
- Use accessor functions where possible
- Rename ftdmchan to chan where possible
- Various other cleanups
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-10 21:32:32 +01:00
David Yat Sin
6be15e958e
freetdm:Fix for RDNIS not set
2010-11-10 10:38:05 -05:00
David Yat Sin
d7a136cd1a
freetdm:Fix for RDNIS not set
2010-11-10 10:32:50 -05:00
Moises Silva
d872408922
freetdm: do not declare some sangoma ISDN functions as inline
...
as that does not work on gcc (Debian 4.3.2-1.1) 4.3.2
and probably other compilers when the inlined function
is not defined in the same compilation unit
2010-11-09 19:29:19 -05:00
Stefan Knoblich
180feff1f4
ftmod_libpri: Completely disable on_facility if AOC support is not available in libpri (= is too old).
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-10 01:28:30 +01:00
Stefan Knoblich
cc8d790cfd
Merge branch 'master' of ssh://git.freeswitch.org/freeswitch
2010-11-10 00:48:59 +01:00
Stefan Knoblich
b1cf0d9a15
ftmod_libpri: Check if a span really has a D-Channel.
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-10 00:47:16 +01:00
David Yat Sin
c9db28c25f
Merge branch 'master' of git.sangoma.com:smg_freeswitch
2010-11-09 16:54:24 -05:00
David Yat Sin
a0b164c132
freetdm: ISDN - Fix for not waking up the line on power-saving lines
2010-11-09 16:34:34 -05: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
Moises Silva
633599021a
freetdm: minor changes to ftmod_r2
2010-11-09 12:22:53 -05:00
Stefan Knoblich
ff7a617098
ftmod_libpri: Bail out with an error message if libpri is too old and selected trunk type is BRI or BRI_PTMP
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-09 15:51:30 +01:00
David Yat Sin
648eb58fc1
Merge branch 'master' of git.freeswitch.org:freeswitch
2010-11-08 16:13:25 -05:00
David Yat Sin
b36869498f
freetdm: Fix for ftmod_wanpipe failing to compile because some structures are not
...
compatible with std=c99
2010-11-08 16:11:06 -05:00
Stefan Knoblich
0a8c1a04c4
ftmod_libpri: Minor cleanups.
...
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2010-11-08 20:57:21 +01:00