1141 Commits

Author SHA1 Message Date
Moises Silva
4ece7e6ffd freetdm: ftmod_wanpipe - remove debug idle messages for good, not worth the noise 2011-10-06 17:55:45 -04:00
yannick
f1257ab8b5 ftdm: fixing reset on in-use channel causing infinite state loop. 2011-10-06 17:36:50 -04:00
Moises Silva
3d456185e4 freetdm: Added SS7 variables for location number (pending SIP-X header integration) 2011-10-06 12:48:07 -04:00
Moises Silva
c82f1ecabd freetdm: Added SS7 variables for location number (pending SIP-X header integration) 2011-10-06 12:46:30 -04:00
David Yat Sin
2cf9b21e06 Added cid-name-in-display-ie option 2011-10-05 14:38:15 -04:00
David Yat Sin
ba2b3fcabb Added cid-name-in-display-ie option 2011-10-05 14:37:14 -04:00
David Yat Sin
621337ff15 freetdm: Increased T310 to 120 sec on network side, added check for ces when handling Restarts 2011-10-04 13:20:58 -04:00
David Yat Sin
36619284e9 freetdm: typo in print 2011-09-30 17:15:36 -04:00
David Yat Sin
7a598e8f33 Added option for Dynamic TEI on BRI PTP 2011-09-30 16:45:46 -04:00
James Zhang
ccc81f3207 ftdm: change max_path length from 255 to 4096 2011-09-30 16:03:08 -04:00
root
595454126b freetdm: changing call reference to generic header; removing location area code 2011-09-30 13:09:13 -04:00
James Zhang
dbd6bb9a83 fixing bug 1625 - relay status not reported properly in the cli 2011-09-30 11:52:33 -04:00
James Zhang
f43eecbab3 ftdm_ss7: Adding OPC and Call Reference Number to SIP x-headers 2011-09-30 10:25:21 -04:00
Moises Silva
5f0d27fdb4 freetdm: Fix SS7 ISUP T10 (Overlap digit timeout) - issue #1445 2011-09-28 19:18:34 -04:00
Moises Silva
b828442052 freetdm: Fix SS7 ISUP T10 (Overlap digit timeout) - issue #1445 2011-09-28 19:17:40 -04:00
Moises Silva
ac693947f9 freetdm: Fix SS7 T35 timer 2011-09-28 13:27:15 -04:00
Moises Silva
1ba6d277fa freetdm: Fix SS7 T35 timer 2011-09-28 13:24:54 -04:00
Moises Silva
b004bcfc6d Merge remote-tracking branch 'fsorig/master'
Conflicts:
	src/mod/endpoints/mod_sofia/mod_sofia.c
	src/mod/endpoints/mod_sofia/sofia_glue.c
2011-09-28 12:19:48 -04:00
James Zhang
d9fe71f024 freetdm: changing git user to be James Zhang - last commit of mtp2 relay fixing was mine 2011-09-27 15:46:40 -04:00
yannick
5ca31e9fbf freetdm: resolve mtp2 on relay always down problem 2011-09-27 15:44:20 -04:00
Moises Silva
4c64d53efb freetdm: Manually merged relay code from branch jz.smg_ss7 (based on releases.3.3)
- Added relay and other misc commands
        - Misc fixes in hardware blocks, hw alarm etc
	- Fix crash on shutdown in relay
2011-09-21 15:32:48 -04:00
Moises Silva
8bf6312a0e freetdm: set proper flags when a given layer (ISUP, MTP3 etc) is started
and verify such flags on shutdown to avoid segfault when shutting down
         a layer that was never started - fix issue #741
2011-09-21 15:31:12 -04:00
Moises Silva
d89f3afdc2 freetdm: Manually merged relay code from branch jz.smg_ss7 (based on releases.3.3)
- Added relay and other misc commands
        - Misc fixes in hardware blocks, hw alarm etc
	- Fix crash on shutdown in relay
2011-09-21 15:15:19 -04:00
David Yat Sin
b2fa7e3139 freetdm: Fix for sending CPG without sending ACM prior to that 2011-09-20 19:17:04 -04:00
David Yat Sin
bb942e2329 freetdm: Fix for sending CPG without sending ACM prior to that 2011-09-20 19:15:05 -04:00
David Yat Sin
8df1872fbe freetdm:Support for transmission of Caller ID Name on NI-2 2011-09-19 13:51:41 -04:00
Moises Silva
8a3c697794 Merge branch 'master' into smgmaster 2011-09-15 12:57:25 -04:00
Moises Silva
4cdd74dccd freetdm: ss7 test pattern should be SANGOMA 2011-09-15 12:51:01 -04:00
Moises Silva
199e4397b5 freetdm: do not warn on io status changes, leave as debug messages 2011-09-15 12:50:30 -04:00
Moises Silva
efc3de5934 Merge branch 'master' into smgmaster 2011-09-15 12:09:20 -04:00
Moises Silva
d6f3a02b94 freetdm: fix compile issue with previous commit (undeclared function) 2011-09-15 12:08:32 -04:00
Moises Silva
9aa887fe2b freetdm: SS7 - CIC value stored in freetdm_ss7_cic variable (cherry-picked from releases.3.3)
Conflicts:

	libs/freetdm/mod_freetdm/mod_freetdm.c
	libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c
2011-09-15 12:04:23 -04:00
Moises Silva
ccdd76b126 Merge branch 'master' into smgmaster 2011-09-15 09:53:55 -04:00
Moises Silva
b06f58a14b freetdm: do not warn on io status changes, leave as debug messages 2011-09-14 10:46:32 -04:00
Moises Silva
4cdf9f2491 freetdm: ftmod_wanpipe - Added misc IO debugging code (define WP_DEBUG_IO to use) 2011-09-12 15:23:21 -04:00
Stefan Knoblich
09a61f5025 [FreeTDM] Add (experimental) ftmod_misdn
Add I/O plugin for mISDN stack that is included in the linux kernel
since version 2.6.27.

The in-kernel mISDN stack uses a socket based interface (AF_ISDN),
data and control commands are exchanged via datagram messages.

This makes writing a driver that doesn't use a separate (per-span)
thread to handle all incoming events a bit tricky, because responses
to control messages and incoming data are mixed and interfacing
with the synchronous FreeTDM I/O API is problematic.

B(*)/D-channel handling:

The current version uses misdn_wait() to poll() for activity on
the non-blocking channel sockets and misdn_read() to receive and
handle all pending events up to the first PH_DATA_IND (data) message
(which is what the caller of the read method is actually after).

In case no data has been received, misdn_read() returns FTDM_SUCCESS
with *datalen = 0, which is OK for all the signalling modules tested
(ftmod_libpri and (out-of-tree) ftmod_isdn).

To send data, misdn_write() is called, which just sends a PH_DATA_REQ
message to the mISDN channel socket.

(*) B-channels use a per-channel timerfd as a timing reference for
'ready-for-write' poll()ing in misdn_wait().

This is a workaround for a limitation of mISDN sockets, which do not
support POLLOUT waiting on b-channel sockets (in a useful way).

Sending/receiving of data works the same way as on d-channels, otherwise.

The module has received some minimal testing using a beronet
single-port HFC E1 and a HFC4-S quad-port BRI card on linux-3.0.x.

--- Limitations ---

 - Only the most basic features have been implemented (alarms,
   sending/receiving data/audio).

 - Spans are limited to E1 and BRI/BRI_PTMP trunk types.

 - D-Channels only work on 16 for PRI and 3 for BRI.

 - NT/TE mode information is not available from freetdm.conf /
   at configure_span()-time so the module assumes TE mode,
   which should be only a problem for cards that can change
   the port configuration (pin-out) from software.

 - Current design (b-channel timerfd / misdn_wait()/_read()/_write())
   should be fine for most SoHo use-cases
   (scalability / cpu usage / timing precision).

--- Requirements ---

 - mISDNif.h header (/usr/include/mISDN/mISDNif.h), provided by mISDNuser
   (http://isdn.eversberg.eu/download/lcr-1.7/mISDNuser-20100525.tar.gz).

 - Linux kernel with mISDN and timerfd enabled (>= 2.6.27)
   and libc with timerfd support.

mISDN options can be found in the:

"Device Drivers" -> "ISDN support" -> "Modular ISDN driver"

section of make menuconfig. Timerfd is usually enabled by default.

The FreeTDM configure script will check for missing mISDNif.h
header and timerfd support and print a message.

You should see the following in the summary screen on success:

	ftmod_misdn........................ yes

NOTE: Forcing mISDN support using the "--with-misdn" configure option,
      will cause the configure script to fail on the first missing
      dependency.

--- Usage ---

To use the module, make sure you have mISDN support in the kernel
(kernel modules loaded or kernel with built-in mISDN running),
the "misdn_info" application shipped with mISDNuser will output
a list of available mISDN ports on your system, e.g.:

Found 5 ports
  Port  0 'hfc-4s.1-1':      TE/NT-mode BRI S/T (for phone lines & phones)
                              2 B-channels: 1-2
                                B-protocols: RAW HDLC X75slp
  ...

  Port  4 'hfc-e1.2':        TE/NT-mode PRI E1  (for phone lines & E1 devices)
                             30 B-channels: 1-15 17-31
                                B-protocols: RAW HDLC X75slp

NOTE: ftmod_misdn will print an error message if mISDN support is not available,
      or if there are no ports installed.

- Example freetdm.conf settings

[span misdn BRI_1]
trunk_type => BRI_PTMP
b-channel => 0:1,2
d-channel => 0:3

[span misdn PRI_1]
trunk_type => E1
b-channel => hfc-e1.2:1-15,17-31
d-channel => hfc-e1.2:16

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2011-09-08 00:16:02 +02:00
Stefan Knoblich
e1a6fd27e0 ftmod_libpri: Always try to close the d-channel to avoid a possible deadlock in case something fails in the I/O module's channel open function.
Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de>
2011-09-01 01:48:03 +02:00
David Yat Sin
fa858fa3cc chlog: freetdm: SS7 - added TX of CPG message in progress media state 2011-08-08 13:23:30 -04:00
Moises Silva
c6f5c96c6e freetdm: *shrug* 2011-08-06 21:38:04 -04:00
Moises Silva
f57c33f1ee OPENZAP-112 --resolve 2011-08-06 21:32:21 -04:00
Marc Olivier Chouinard
2ecf2d6e62 freetdm/libpri: Add support to change status of an individual channel or multiple channel. This allow to put bchannel out of service on an active T1 without affecting active call. Allow graceful out of service of T1 trunk.
NOTE: There is bugs in libpri, even latest 1.4.12 as of this writing if you use NI2.   So rightnow it only work in DMS100/ATT mode.  Email me to get the NI2 patch (really stupid error).
NOTE2: The way libpri is build doesn't allow to do advance feature with the SERVICE feature, so if you put an channel out of service, and the far end send an restart, it will be bring back in service.  Lot of changes in libpri is required to allow this.  I need to figure out what would be the best steps to take since I don't have commit access to libpri release.
NOTE3: You need to enable this feature by setting service_message_support to true on the span
2011-08-05 22:50:58 -04:00
Moises Silva
8735906a5d freetdm: fix typo in ftmod_sangoma_isdn.h causing compilation error 2011-08-03 20:12:26 -04:00
David Yat Sin
0b7d857545 freetdm: fixed errors introduced when Redirection Number was implemented 2011-08-03 17:28:56 -04:00
David Yat Sin
6fe23b69d2 freetdm: ISDN - added #ifdef for backward compatibility 2011-08-03 13:04:22 -04:00
David Yat Sin
473fd0ce89 freetdm: ISDN - allow reception of NOTIFY msg 2011-08-03 11:53:40 -04:00
David Yat Sin
65bac44b32 freetdm: ISDN - Added function to transmission of NOTIFY msg 2011-08-03 10:52:18 -04:00
Moises Silva
43a8683a4a Merge branch 'master' into smgmaster 2011-07-29 17:07:24 -04:00
Moises Silva
dcbfa9a876 Merge remote-tracking branch 'fsorig/master' 2011-07-29 17:06:00 -04:00
Moises Silva
d07d4896d4 Merge branch 'master' into smgmaster 2011-07-29 17:03:11 -04:00
Moises Silva
227971b340 freetdm: restrict GRS CLI request range to stay within sane boundaries 2011-07-29 17:02:12 -04:00