Giter VIP home page Giter VIP logo

dahdi-linux's Introduction

The Asterisk(R) Open Source PBX

        By Mark Spencer <[email protected]> and the Asterisk.org developer community.
        Copyright (C) 2001-2021 Sangoma Technologies Corporation and other copyright holders.

SECURITY

It is imperative that you read and fully understand the contents of the security information document before you attempt to configure and run an Asterisk server.

See Important Security Considerations for more information.

WHAT IS ASTERISK ?

Asterisk is an Open Source PBX and telephony toolkit. It is, in a sense, middleware between Internet and telephony channels on the bottom, and Internet and telephony applications at the top. However, Asterisk supports more telephony interfaces than just Internet telephony. Asterisk also has a vast amount of support for traditional PSTN telephony, as well.

For more information on the project itself, please visit the Asterisk home page and the official documentation. In addition you'll find lots of information compiled by the Asterisk community at voip-info.org.

There is a book on Asterisk published by O'Reilly under the Creative Commons License. It is available in book stores as well as in a downloadable version on the asteriskdocs.org web site.

SUPPORTED OPERATING SYSTEMS

Linux

The Asterisk Open Source PBX is developed and tested primarily on the GNU/Linux operating system, and is supported on every major GNU/Linux distribution.

Others

Asterisk has also been 'ported' and reportedly runs properly on other operating systems as well, including Sun Solaris, Apple's Mac OS X, Cygwin, and the BSD variants.

GETTING STARTED

First, be sure you've got supported hardware (but note that you don't need ANY special hardware, not even a sound card) to install and run Asterisk.

Supported telephony hardware includes:

  • All Analog and Digital Interface cards from Sangoma
  • QuickNet Internet PhoneJack and LineJack
  • any full duplex sound card supported by ALSA, OSS, or PortAudio
  • any ISDN card supported by mISDN on Linux
  • The Xorcom Astribank channel bank
  • VoiceTronix OpenLine products

UPGRADING FROM AN EARLIER VERSION

If you are updating from a previous version of Asterisk, make sure you read the UPGRADE.txt file in the source directory. There are some files and configuration options that you will have to change, even though we made every effort possible to maintain backwards compatibility.

In order to discover new features to use, please check the configuration examples in the configs directory of the source code distribution. For a list of new features in this version of Asterisk, see the CHANGES file.

NEW INSTALLATIONS

Ensure that your system contains a compatible compiler and development libraries. Asterisk requires either the GNU Compiler Collection (GCC) version 4.1 or higher, or a compiler that supports the C99 specification and some of the gcc language extensions. In addition, your system needs to have the C library headers available, and the headers and libraries for ncurses.

There are many modules that have additional dependencies. To see what libraries are being looked for, see ./configure --help, or run make menuselect to view the dependencies for specific modules.

On many distributions, these dependencies are installed by packages with names like 'glibc-devel', 'ncurses-devel', 'openssl-devel' and 'zlib-devel' or similar.

So, let's proceed:

  1. Read this file.

There are more documents than this one in the doc directory. You may also want to check the configuration files that contain examples and reference guides in the configs directory.

  1. Run ./configure

Execute the configure script to guess values for system-dependent variables used during compilation. If the script indicates that some required components are missing, you can run ./contrib/scripts/install_prereq install to install the necessary components. Note that this will install all dependencies for every functionality of Asterisk. After running the script, you will need to rerun ./configure.

  1. Run make menuselect [optional]

This is needed if you want to select the modules that will be compiled and to check dependencies for various optional modules.

  1. Run make

Assuming the build completes successfully:

  1. Run make install

If this is your first time working with Asterisk, you may wish to install the sample PBX, with demonstration extensions, etc. If so, run:

  1. Run make samples

Doing so will overwrite any existing configuration files you have installed.

  1. Finally, you can launch Asterisk in the foreground mode (not a daemon) with:
        # asterisk -vvvc

You'll see a bunch of verbose messages fly by your screen as Asterisk initializes (that's the "very very verbose" mode). When it's ready, if you specified the "c" then you'll get a command line console, that looks like this:

        *CLI>

You can type "core show help" at any time to get help with the system. For help with a specific command, type "core show help ". To start the PBX using your sound card, you can type "console dial" to dial the PBX. Then you can use "console answer", "console hangup", and "console dial" to simulate the actions of a telephone. Remember that if you don't have a full duplex sound card (and Asterisk will tell you somewhere in its verbose messages if you do/don't) then it won't work right (not yet).

"man asterisk" at the Unix/Linux command prompt will give you detailed information on how to start and stop Asterisk, as well as all the command line options for starting Asterisk.

Feel free to look over the configuration files in /etc/asterisk, where you will find a lot of information about what you can do with Asterisk.

ABOUT CONFIGURATION FILES

All Asterisk configuration files share a common format. Comments are delimited by ';' (since '#' of course, being a DTMF digit, may occur in many places). A configuration file is divided into sections whose names appear in []'s. Each section typically contains two types of statements, those of the form 'variable = value', and those of the form 'object => parameters'. Internally the use of '=' and '=>' is exactly the same, so they're used only to help make the configuration file easier to understand, and do not affect how it is actually parsed.

Entries of the form 'variable=value' set the value of some parameter in asterisk. For example, in chan_dahdi.conf, one might specify:

	switchtype=national

In order to indicate to Asterisk that the switch they are connecting to is of the type "national". In general, the parameter will apply to instantiations which occur below its specification. For example, if the configuration file read:

	switchtype = national
	channel => 1-4
	channel => 10-12
	switchtype = dms100
	channel => 25-47

The "national" switchtype would be applied to channels one through four and channels 10 through 12, whereas the "dms100" switchtype would apply to channels 25 through 47.

The "object => parameters" instantiates an object with the given parameters. For example, the line "channel => 25-47" creates objects for the channels 25 through 47 of the card, obtaining the settings from the variables specified above.

SPECIAL NOTE ON TIME

Those using SIP phones should be aware that Asterisk is sensitive to large jumps in time. Manually changing the system time using date(1) (or other similar commands) may cause SIP registrations and other internal processes to fail. If your system cannot keep accurate time by itself use NTP to keep the system clock synchronized to "real time". NTP is designed to keep the system clock synchronized by speeding up or slowing down the system clock until it is synchronized to "real time" rather than by jumping the time and causing discontinuities. Most Linux distributions include precompiled versions of NTP. Beware of some time synchronization methods that get the correct real time periodically and then manually set the system clock.

Apparent time changes due to daylight savings time are just that, apparent. The use of daylight savings time in a Linux system is purely a user interface issue and does not affect the operation of the Linux kernel or Asterisk. The system clock on Linux kernels operates on UTC. UTC does not use daylight savings time.

Also note that this issue is separate from the clocking of TDM channels, and is known to at least affect SIP registrations.

FILE DESCRIPTORS

Depending on the size of your system and your configuration, Asterisk can consume a large number of file descriptors. In UNIX, file descriptors are used for more than just files on disk. File descriptors are also used for handling network communication (e.g. SIP, IAX2, or H.323 calls) and hardware access (e.g. analog and digital trunk hardware). Asterisk accesses many on-disk files for everything from configuration information to voicemail storage.

Most systems limit the number of file descriptors that Asterisk can have open at one time. This can limit the number of simultaneous calls that your system can handle. For example, if the limit is set at 1024 (a common default value) Asterisk can handle approximately 150 SIP calls simultaneously. To change the number of file descriptors follow the instructions for your system below:

PAM-BASED LINUX SYSTEM

If your system uses PAM (Pluggable Authentication Modules) edit /etc/security/limits.conf. Add these lines to the bottom of the file:

root            soft    nofile          4096
root            hard    nofile          8196
asterisk        soft    nofile          4096
asterisk        hard    nofile          8196

(adjust the numbers to taste). You may need to reboot the system for these changes to take effect.

GENERIC UNIX SYSTEM

If there are no instructions specifically adapted to your system above you can try adding the command ulimit -n 8192 to the script that starts Asterisk.

MORE INFORMATION

See the doc directory for more documentation on various features. Again, please read all the configuration samples that include documentation on the configuration options.

Finally, you may wish to visit the support site and join the mailing list if you're interested in getting more information.

Welcome to the growing worldwide community of Asterisk users!

        Mark Spencer, and the Asterisk.org development community

Asterisk is a trademark of Sangoma Technologies Corporation

dahdi-linux's People

Contributors

alecdavis avatar aligera avatar bkuhls avatar datachomper avatar dfskoll avatar duncanpatterson avatar ffontaine avatar interlinked1 avatar jkroonza avatar john-tho avatar jsloan256 avatar kthmorgan avatar laf0rge avatar listout avatar oron-peled avatar push143smart avatar seanbright avatar sruffell avatar ssethsangoma avatar sysnux avatar tuxpowered avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dahdi-linux's Issues

Can't compile with latest CentOS Kernel 4.18.0-490 - netif_napi_add issue

OS: CentOS
Kernel: 4.18.0-490
Version: 3.2.0

Issue:
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.c: In function ‘wctc4xxp_net_register’:
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.c:697:54: error: macro "netif_napi_add" passed 4 arguments, but takes just 3
netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
^
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.c:697:2: error: ‘netif_napi_add’ undeclared (first use in this function); did you mean ‘netif_napi_del’?
netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
^~~~~~~~~~~~~~
netif_napi_del
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.c:697:2: note: each undeclared identifier is reported only once for each function it appears in
At top level:
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.c:583:1: warning: ‘wctc4xxp_poll’ defined but not used [-Wunused-function]
wctc4xxp_poll(struct napi_struct *napi, int budget)
^~~~~~~~~~~~~
make[4]: *** [scripts/Makefile.build:318: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp/base.o] Error 1
make[3]: *** [scripts/Makefile.build:558: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wctc4xxp] Error 2
make[2]: *** [Makefile:1616: module/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi] Error 2
make[2]: Leaving directory '/usr/src/kernels/4.18.0-490.el8.x86_64'
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux'
make: *** [Makefile:9: all] Error 2

Latest updates in alma 9.4 break dahdi compiles again

DAHDI Tools Version - 3.4.0
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'

1 error(s) detected

Asterisk 18.18.1
[root@47FAFE8 ~]# cd /usr/src/dahdi-linux-complete-3.4.0+3.4.0
[root@47FAFE8 dahdi-linux-complete-3.4.0+3.4.0]# uname -r
5.14.0-362.8.1.el9_3.x86_64
[root@47FAFE8 dahdi-linux-complete-3.4.0+3.4.0]# make
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 5.14.0-362.8.1.el9_3.x86_64 kernel installed.
make[1]: *** [Makefile:72: modules] Error 1
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux'
make: *** [Makefile:9: all] Error 2

as you can see it has the kernel installed that its telling me is not installed, any suggestions?

Can't compile Dahdi Linux on 6.0.0-kali5-amd64

Running Kali
6.0.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.10-2kali1 (2022-12-06) x86_64 GNU/Linux (newest)
with asterisk

need to install dahdi but running into

`
make -C linux all
make[1]: Verzeichnis „/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux“ wird betreten
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Verzeichnis „/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware“ wird betreten
make[2]: Verzeichnis „/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware“ wird verlassen
make -C /lib/modules/6.0.0-kali5-amd64/build M=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Verzeichnis „/usr/src/linux-headers-6.0.0-kali5-amd64“ wird betreten
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/apilib/bt/octapi_bt0.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/apilib/largmath/octapi_largmath.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/apilib/llman/octapi_llman.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/oct612x-user.o
LD [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/oct612x/oct612x.o
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_allocate_buffers’:
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c:3864:17: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^~~~~~~~~~~~~~~~~~~~
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c:3864:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_increase_latency’:
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c:3943:9: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
3943 | pci_free_consistent(wc->dev, T4_BASE_SIZE(wc) * oldbufs * 2,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-6.0.0-kali5-common/scripts/Makefile.build:254: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o] Fehler 1
make[3]: *** [/usr/src/linux-headers-6.0.0-kali5-common/scripts/Makefile.build:470: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp] Fehler 2
make[2]: *** [/usr/src/linux-headers-6.0.0-kali5-common/Makefile:1876: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi] Fehler 2
make[2]: Verzeichnis „/usr/src/linux-headers-6.0.0-kali5-amd64“ wird verlassen
make[1]: *** [Makefile:74: modules] Fehler 2
make[1]: Verzeichnis „/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux“ wird verlassen
make: *** [Makefile:9: all] Fehler 2

`

would be great to get some help here

In Rocky Linux 8.8 or 9.2 got compilation failures related with netif_napi_add function

When using either the DAHDI linux complete 3.2.0 tar.gz file or the master branch sources, trying to compile on Rocky Linux 8.9 or 9.2 fails with error messages like these:

linux/drivers/dahdi/wctc4xxp/base.c: In function ‘wctc4xxp_net_register’:
linux/drivers/dahdi/wctc4xxp/base.c:665:9: error: too many arguments to function ‘netif_napi_add’
665 |         netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
    |         ^~~~~~~~~~~~~~
In file included from ./include/net/inet_sock.h:19,
                 from ./include/linux/udp.h:16,
                 from /linux/drivers/dahdi/wctc4xxp/base.c:38: 
./include/linux/netdevice.h:2519:1: note: declared here
2519 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
     | ^~~~~~~~~~~~~~

Linux 5.17+: remove direct writes to `dev_addr`

Linux 5.17 commits adeef3e32146 ("net: constify netdev->dev_addr") and d07b26f5bbea ("dev_addr: add a modification check") make netdev->dev_addr const, and add a runtime check that it is not being modified by casting off the const.

There are a number of examples of this through the dahdi tree:

memcpy(dev->dev_addr, "\x00\x01", 2);
get_random_bytes(dev->dev_addr + 2, ETH_ALEN - 2);

memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));

memcpy(dev->dev_addr, "\x00\x01", 2);
get_random_bytes(dev->dev_addr + 2, ETH_ALEN - 2);
} else {
*(u16*)dev->dev_addr = htons(dlci);

Example build failure from OpenWrt with kernel 6.1:

                 from dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:24:
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c: In function 'wctc4xxp_net_register':
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:22: error: passing argument 1 of '__builtin_memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:469:27: note: in definition of macro '__fortify_memcpy_chk'
  469 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:9: note: in expansion of macro 'memcpy'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |         ^~~~~~
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:22: note: expected 'void *' but argument is of type 'const unsigned char *'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:469:27: note: in definition of macro '__fortify_memcpy_chk'
  469 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:9: note: in expansion of macro 'memcpy'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |         ^~~~~~

From d51c10d, the const is cast off, so would expect to hit the runtime check here:

memcpy((void *)netdev->dev_addr, our_mac, sizeof(our_mac));


I am not a dahdi user, only saw that the kernel module was failing to build for OpenWrt kernel 6.1, and wanted to fix that. This was the patch I came up with to address dev_addr writes in dahdi for OpenWrt, but I have not checked that functionality has not changed. I do not currently have the time to rebase, build test, and PR. Feel free to use these suggestions as you see fit. Not completely confident with the drivers/dahdi/datamods/hdlc_fr.c changes.
Thank you for working with this git repo once again!

From 3619bf1cc9c0cc67213cbda0db3534f8a64f5cc8 Mon Sep 17 00:00:00 2001
From: John Thomson <[email protected]>
Date: Wed, 14 Jun 2023 20:31:42 +1000
Subject: [PATCH 1/1] fix for const dev_addr for linux 5.17

Linux commit adeef3e32146 ("net: constify netdev->dev_addr")

dev_addr_set and _mod were introduced in linux 5.15 with
commit 48eab831ae8b ("net: create netdev->dev_addr assignment helpers")

                 from dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:24:
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c: In function 'wctc4xxp_net_register':
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:22: error: passing argument 1 of '__builtin_memcpy' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:469:27: note: in definition of macro '__fortify_memcpy_chk'
  469 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:9: note: in expansion of macro 'memcpy'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |         ^~~~~~
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:22: note: expected 'void *' but argument is of type 'const unsigned char *'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |                ~~~~~~^~~~~~~~~~
./include/linux/fortify-string.h:469:27: note: in definition of macro '__fortify_memcpy_chk'
  469 |         __underlying_##op(p, q, __fortify_size);                        \
      |                           ^
dahdi-linux-3.2.0/drivers/dahdi/wctc4xxp/base.c:646:9: note: in expansion of macro 'memcpy'
  646 |         memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
      |         ^~~~~~


---
 drivers/dahdi/datamods/hdlc_fr.c      | 6 +++---
 drivers/dahdi/datamods/hdlc_raw_eth.c | 4 ++--
 drivers/dahdi/voicebus/voicebus_net.c | 2 +-
 drivers/dahdi/wctc4xxp/base.c         | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

--- a/drivers/dahdi/datamods/hdlc_fr.c
+++ b/drivers/dahdi/datamods/hdlc_fr.c
@@ -1089,10 +1089,10 @@ static int fr_add_pvc(struct net_device
 	}
 
 	if (type == ARPHRD_ETHER) {
-		memcpy(dev->dev_addr, "\x00\x01", 2);
-                get_random_bytes(dev->dev_addr + 2, ETH_ALEN - 2);
+		eth_hw_addr_random(dev);
+		dev_addr_mod(dev, 0, "\x00\x01", 2);
 	} else {
-		*(u16*)dev->dev_addr = htons(dlci);
+		dev_addr_set(dev, htons(dlci));
 		dlci_to_q922(dev->broadcast, dlci);
 	}
 	dev->hard_start_xmit = pvc_xmit;
--- a/drivers/dahdi/datamods/hdlc_raw_eth.c
+++ b/drivers/dahdi/datamods/hdlc_raw_eth.c
@@ -98,8 +98,8 @@ int hdlc_raw_eth_ioctl(struct net_device
 		ether_setup(dev);
 		dev->change_mtu = old_ch_mtu;
 		dev->tx_queue_len = old_qlen;
-		memcpy(dev->dev_addr, "\x00\x01", 2);
-                get_random_bytes(dev->dev_addr + 2, ETH_ALEN - 2);
+		eth_hw_addr_random(dev);
+		dev_addr_mod(dev, 0, "\x00\x01", 2);
 		return 0;
 	}
 
--- a/drivers/dahdi/voicebus/voicebus_net.c
+++ b/drivers/dahdi/voicebus/voicebus_net.c
@@ -189,7 +189,7 @@ int vb_net_register(struct voicebus *vb,
 		return -ENOMEM;
 	priv = netdev_priv(netdev);
 	priv->vb = vb;
-	memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
+	dev_addr_set(netdev, our_mac);
 #	ifdef HAVE_NET_DEVICE_OPS
 	netdev->netdev_ops = &vb_netdev_ops;
 #	else
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -643,7 +643,7 @@ wctc4xxp_net_register(struct wcdte *wc)
 		return -ENOMEM;
 	priv = netdev_priv(netdev);
 	priv->wc = wc;
-	memcpy(netdev->dev_addr, our_mac, sizeof(our_mac));
+	dev_addr_set(netdev, our_mac);
 
 #	ifdef HAVE_NET_DEVICE_OPS
 	netdev->netdev_ops = &wctc4xxp_netdev_ops;

Debian 10 (Buster) - dahdi-linux 3.4.0 - Compile - error: missing binary operator before token "("

OS: Debian 10 (Buster)
Kernel: 5.10.0-0.deb10.29-amd64
dahdi-linux release: 3.4.0

Issue:
I downloaded a fresh copy of of dahdi-linux-3.4.0.tar.gz. I extracted it, and cd into the directory. I then ran make and it failed with the following error

/root/dahdi-linux-3.4.0/drivers/dahdi/xpp/xbus-sysfs.c:424:43: error: missing binary operator before token "("
  RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9,4)

Release file dahdi-linux-3.4.0.tar.gz changed

http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/

dahdi-linux-3.4.0.md5                              18-Jun-2024 03:01                  59
dahdi-linux-3.4.0.sha1                             18-Jun-2024 03:01                  67
dahdi-linux-3.4.0.sha256                           18-Jun-2024 03:01                  91
dahdi-linux-3.4.0.tar.gz                           01-Jul-2024 13:27             1751872
dahdi-linux-3.4.0.tar.gz.asc                       18-Jun-2024 03:01                 833

The tarball has a new timestamp. My yocto build indicates the contents of the tarball have changed, in that the checksum has a different value than it used to have.

~$ sha256sum -c dahdi-linux-3.4.0.sha256 
dahdi-linux-3.4.0.tar.gz: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match

It seems like something bad is going on here.

Installed, but cannot load dahdi module

Installed, but cannot load dahdi module.
dahdi v3.3

[root@localhost ~]# modprobe dahdi
modprobe: ERROR: could not insert 'dahdi': Exec format error

dmesg logs

dahdi: loading out-of-tree module taints kernel.
dahdi: module verification failed: signature and/or required key missing - tainting kernel
module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000002e026045, val ffffffffc0aecc40
module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000002e026045, val ffffffffc0aecc40
module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000002e026045, val ffffffffc0aecc40

BTW, was able to compile and install after making some changes in source.

Need a new stable release

Even the latest releases is unusable on any reasonable up to date kernel. We need a new release as a matter of urgency.

In Rocky Linux 9.2 got compilation failures related with PDE_DATA

When using either the DAHDI linux complete 3.2.0 tar.gz file or the master branch sources, trying to compile on Rocky Linux 9.2 fails with error messages like these (not necessarily all of them at the same attempt):

linux/drivers/dahdi/xpp/xbus-core.c:1842:50: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration]
1842 |         return single_open(file, xbus_proc_show, PDE_DATA(inode));
                                                        ^~~~~~~~
|                                                       NODE_DATA

Or

linux/drivers/dahdi/xpp/xbus-core.c:1842:50: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast [-Wint-conversion]
1842 |         return single_open(file, xbus_proc_show, PDE_DATA(inode));
|                                                       ^~~~~~~~~~~~~~~
|                                                       |
|                                                       int

Or

linux/drivers/dahdi/xpp/xbus-core.c:1949:28: warning: assignment to ‘void *’ from ‘ int’ makes pointer from integer without a cast [-Wint-conversion]
1949 |         file->private_data = PDE_DATA(inode);

Compile issue in alma/rocky 9.4

here is the error I am getting

/usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:472:19: error: initialization of ‘int (*)(const struct device *, struct kobj_uevent_env )’ from incompatible pointer type ‘int ()(struct device *, struct kobj_uevent_env *)’ [-Werror=incompatible-pointer-types]
472 | .uevent = astribank_uevent,
| ^~~~~~~~~~~~~~~~
/usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:472:19: note: (near initialization for ‘toplevel_bus_type.uevent’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:299: /usr/src/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.o] Error 1
make[2]: *** [scripts/Makefile.build:585: /usr/src/dahdi-linux/drivers/dahdi/xpp] Error 2
make[1]: *** [Makefile:1934: /usr/src/dahdi-linux/drivers/dahdi] Error 2

Bug : dahdi compilation error in rocky linux 9.2

Components/Modules:

Dahdi

Operating Environment

Os - rocky linux 9.2
Kernel version - kernel-5.14.0-284.25.1.el9_2.x86_64
Dahdi version - 3.2.0

Issue Description

Whenever we try to install dahdi in rocky linux 9.2 we are getting certain compilation errors .
Errors:

stdbool.h is not available in Rocky Linux 9.2 with Kernel 5.14.
Compilation failures are related to the netif_napi_add function.
Compilation failures are related to the function 'PDE_DATA'.
Installation steps:

cd /usr/src/
tar zxvf dahdi-linux-complete-3.2.0+3.2.0.tar.gz
cd dahdi-linux-complete-3.2.0+3.2.0
make && make install && make install-config

Relevant log output
Logs:

linux/drivers/dahdi/wctc4xxp/base.c: In function ‘wctc4xxp_net_register’:
linux/drivers/dahdi/wctc4xxp/base.c:665:9: error: too many arguments to function ‘netif_napi_add’
665 | netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
| ^~~~~~~~~~~~~~
In file included from ./include/net/inet_sock.h:19,
from ./include/linux/udp.h:16,
from /linux/drivers/dahdi/wctc4xxp/base.c:38:
./include/linux/netdevice.h:2519:1: note: declared here
2519 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
| ^~~~~~~~~~~~~~

linux/drivers/dahdi/xpp/xbus-core.c:1842:50: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration]
1842 | return single_open(file, xbus_proc_show, PDE_DATA(inode));
^~~~~~~~
| NODE_DATA

make all
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware'
make -C /lib/modules/5.14.0-284.25.1.el9_2.x86_64/build M=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory '/usr/src/kernels/5.14.0-284.25.1.el9_2.x86_64'
CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c:49:10: fatal error: stdbool.h: No such file or directory
49 | #include <stdbool.h>
| ^~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:321: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o] Error 1
make[3]: *** [scripts/Makefile.build:607: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp] Error 2
make[2]: *** [Makefile:1923: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-284.25.1.el9_2.x86_64'
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux'
make: *** [Makefile:9: all] Error 2
'make all' failed with 512.

wctc4xxp/base.c:661:54: error: macro "netif_napi_add" passed 4 arguments, but takes just 3

Hi everyone,

I'm encountering an error while attempting to install Dahdi 3.3.0 on both RHEL 8 and Rocky Linux, using both manual installation and the provided installation script from https://github.com/InterLinked1/phreakscript.Any guidance or assistance to resolve this issue would be greatly appreciated.

  CC [M]  /usr/src/dahdi-linux-3.3.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
/usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.c: In function 'wctc4xxp_net_register':
/usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.c:661:54: error: macro "netif_napi_add" passed 4 arguments, but takes just 3
  netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
                                                      ^
/usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.c:661:2: error: 'netif_napi_add' undeclared (first use in this function); did you mean 'netif_napi_del'?
  netif_napi_add(netdev, &wc->napi, &wctc4xxp_poll, 64);
  ^~~~~~~~~~~~~~
  netif_napi_del
/usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.c:661:2: note: each undeclared identifier is reported only once for each function it appears in
  LD [M]  /usr/src/dahdi-linux-3.3.0/drivers/dahdi/wct4xxp/wct4xxp.o
At top level:
/usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.c:552:1: warning: 'wctc4xxp_poll' defined but not used [-Wunused-function]
 wctc4xxp_poll(struct napi_struct *napi, int budget)
 ^~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:318: /usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp/base.o] Error 1
make[2]: *** [scripts/Makefile.build:558: /usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctc4xxp] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC [M]  /usr/src/dahdi-linux-3.3.0/drivers/dahdi/oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
  CC [M]  /usr/src/dahdi-linux-3.3.0/drivers/dahdi/wctdm24xxp/base.

Im testing on

Red Hat Enterprise Linux 8.9
4.18.0-513.18.1.el8_9.x86_64

Can't compile under fedora with 6.3.4 kernel

CC [M] /usr/src/phones/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.o /usr/src/phones/dahdi-linux/drivers/dahdi/xpp/xbus-sysfs.c:467:19: error: initialization of Ç int (*)(const struct device *, struct kobj_uevent_env *) Ç from incompatible pointer type Ç int (*)(struct device *, struct kobj_uevent_env *) Ç [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;] 467 | .uevent = astribank_uevent, | ^~~~~~~~~~~~~~~~

modpost: "__divmoddi4" & modpost: "__divdi3" - Unable to finish compiling of dahdi-linux-complete-3.4.0+3.4.0.

Hello,

I have been working on upgrading a 32 bit linux server (Slackware 15.0 / Kernel: 5.15.161-smp #1 SMP / gcc Ver: 11.2.0). I am able to compile other software including Asterisk with no issues. There are no errors or warnings encountered during the process until this point. Here is the issue I am running into:

MODPOST /root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers
ERROR: modpost: "__divmoddi4" [/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: modpost: "__divdi3" [/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/xpp/xpp.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:133: /root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers] Error 1
make[3]: *** Deleting file '/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers'
make[2]: *** [Makefile:1826: modules] Error 2

I have tried unsuccessfully to pass parameters to the compiler and linker to see if this could be compiled standalone with gcc libs, as someone had suggested online. Any suggestions or assistance would be appreciated.
Thank you,
-Mike K.

TDM410p

Hi,
Is there a support for the tdm410?
Dec 20 17:22:31 ns sh[25951]: DAHDI_CHANCONFIG failed on channel 1: Invalid argument (22) Dec 20 17:22:31 ns sh[25951]: Selected signaling not supported Dec 20 17:22:31 ns sh[25951]: Possible causes: Dec 20 17:22:31 ns sh[25951]: #011FXS signaling is being used on a FXS interface (use a FXO signaling variant) Dec 20 17:22:31 ns sh[25951]: #011RBS signaling is being used on a E1 CCS span Dec 20 17:22:31 ns sh[25951]: #011Signaling is being assigned to channel 16 of an E1 CAS span Dec 20 17:22:31 ns systemd[1]: dahdi.service: Main process exited, code=exited, status=1/FAILURE Dec 20 17:22:31 ns systemd[1]: dahdi.service: Failed with result 'exit-code'. Dec 20 17:22:31 ns kernel: dahdi_ioctl_chanconfig: No channel for number 1 Dec 20 17:22:31 ns systemd[1]: Failed to start dahdi.service - The DAHDI drivers allow you to use your linux computer to accept incoming data and voice interfaces.

Thanks for your help.

Can't compile Dahdi Linux on kernel 5.19.0-76051900-generic

Keep getting the following error:

root/dahdi-linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_allocate_buffers’:
/root/dahdi-linux/drivers/dahdi/wct4xxp/base.c:3864:17: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^~~~~~~~~~~~~~~~~~~~
/root/dahdi-linux/drivers/dahdi/wct4xxp/base.c:3864:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3864 | alloc = pci_alloc_consistent(wc->dev, numbufs * T4_BASE_SIZE(wc) * 2,
| ^
/root/dahdi-linux/drivers/dahdi/wct4xxp/base.c: In function ‘t4_increase_latency’:
/root/dahdi-linux/drivers/dahdi/wct4xxp/base.c:3943:9: error: implicit declaration of function ‘pci_free_consistent’ [-Werror=implicit-function-declaration]
3943 | pci_free_consistent(wc->dev, T4_BASE_SIZE(wc) * oldbufs * 2,

Please advise.

Wct4xxp 0000:04:08.0: Interrupts not detected

Hello,

I currently have the following setup working perfectly:

  • HP ProLiant ML110 Gen9
  • Debian 9
  • DAHDI 2.11.1
  • Asterisk 16.4.0
  • Digium Wildcard TE220

However, when I try to upgrade to the following configuration:

  • HP ProLiant ML110 Gen9
  • Debian 11
  • DAHDI 3.2.0 or 3.4.0
  • Asterisk 20.8.1
  • Digium Wildcard TE220

The Digium Wildcard TE220 card does not work and gives the message:

wct4xxp 0000:04:08.0: Interrupts not detected.

I have tested using the same card on different servers with the same configurations:

ProLiant ML110 G7 (Work)

  • Debian 11
  • DAHDI 3.2.0
  • Asterisk 20.8.1
  • Digium Wildcard TE220

ProLiant ML110 G3 (Work)

  • Debian 11
  • DAHDI 3.2.0
  • Asterisk 20.8.1
  • Digium Wildcard TE220

I even tested this configuration:

  • HP ProLiant ML110 Gen9 (Not Working)
  • Debian 12
  • DAHDI 3.4.0
  • Asterisk 20.8.1
  • Digium Wildcard TE220

Both the ProLiant ML110 G7 and ProLiant ML110 G3 work perfectly without any issues.

For some reason, the combination of (ML110 Gen9, Debian 11+, DAHDI 3.2.0+, TE220) does not work. I have the DAHDI configurations as follows:

/etc/dahdi/modules

wct4xxp

/etc/dahdi/system.conf

span=1,1,0,cas,hdb3
cas=1-15:1101
cas=17-31:1101

span=2,0,0,cas,hdb3
cas=32-46:1101
cas=48-62:1101

echocanceller=mg2,1-62

loadzone        = br
defaultzone     = br

kernel:
5.10.0-30-amd64.

dahdi_cfg -vvvvvvvvv

DAHDI Tools Version - 3.2.0

DAHDI Version: 3.2.0
Echo Canceller(s): HWEC
Configuration
======================

SPAN 1: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CAS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 04)
Channel 05: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 06)
Channel 07: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 07)
Channel 08: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 08)
Channel 09: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 09)
Channel 10: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 10)
Channel 11: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 11)
Channel 12: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 12)
Channel 13: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 13)
Channel 14: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 14)
Channel 15: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 15)
Channel 17: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 17)
Channel 18: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 18)
Channel 19: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 19)
Channel 20: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 20)
Channel 21: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 21)
Channel 22: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 22)
Channel 23: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 23)
Channel 24: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 24)
Channel 25: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 25)
Channel 26: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 26)
Channel 27: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 27)
Channel 28: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 28)
Channel 29: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 29)
Channel 30: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 30)
Channel 31: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 31)
Channel 32: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 32)
Channel 33: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 33)
Channel 34: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 34)
Channel 35: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 35)
Channel 36: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 36)
Channel 37: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 37)
Channel 38: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 38)
Channel 39: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 39)
Channel 40: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 40)
Channel 41: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 41)
Channel 42: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 42)
Channel 43: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 43)
Channel 44: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 44)
Channel 45: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 45)
Channel 46: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 46)
Channel 48: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 48)
Channel 49: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 49)
Channel 50: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 50)
Channel 51: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 51)
Channel 52: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 52)
Channel 53: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 53)
Channel 54: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 54)
Channel 55: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 55)
Channel 56: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 56)
Channel 57: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 57)
Channel 58: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 58)
Channel 59: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 59)
Channel 60: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 60)
Channel 61: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 61)
Channel 62: CAS / User (Default) (Echo Canceler: mg2) (Slaves: 62)

60 channels to configure.

Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2
Setting echocan for channel 32 to mg2
Setting echocan for channel 33 to mg2
Setting echocan for channel 34 to mg2
Setting echocan for channel 35 to mg2
Setting echocan for channel 36 to mg2
Setting echocan for channel 37 to mg2
Setting echocan for channel 38 to mg2
Setting echocan for channel 39 to mg2
Setting echocan for channel 40 to mg2
Setting echocan for channel 41 to mg2
Setting echocan for channel 42 to mg2
Setting echocan for channel 43 to mg2
Setting echocan for channel 44 to mg2
Setting echocan for channel 45 to mg2
Setting echocan for channel 46 to mg2
Setting echocan for channel 48 to mg2
Setting echocan for channel 49 to mg2
Setting echocan for channel 50 to mg2
Setting echocan for channel 51 to mg2
Setting echocan for channel 52 to mg2
Setting echocan for channel 53 to mg2
Setting echocan for channel 54 to mg2
Setting echocan for channel 55 to mg2
Setting echocan for channel 56 to mg2
Setting echocan for channel 57 to mg2
Setting echocan for channel 58 to mg2
Setting echocan for channel 59 to mg2
Setting echocan for channel 60 to mg2
Setting echocan for channel 61 to mg2
Setting echocan for channel 62 to mg2

cat /proc/interrupts

           CPU0       CPU1       CPU2       CPU3
  0:          8          0          0          0   IO-APIC   2-edge      timer
  1:          5          0          0          0   IO-APIC   1-edge      i8042
  8:          0          0          0          0   IO-APIC   8-edge      rtc0
  9:          0          1          0          0   IO-APIC   9-fasteoi   acpi
 12:          0          0          0          6   IO-APIC  12-edge      i8042
 16:          0          0          0          0   IO-APIC  16-fasteoi   wct2xxp
 18:          0          0         62          0   IO-APIC  18-fasteoi   i801_smbus, ehci_hcd:usb1, ehci_hcd:usb3
 19:          0         50          0          0   IO-APIC  19-fasteoi   xhci-hcd:usb4, hpilo
 25:          0          0          0          0   PCI-MSI 16384-edge      PCIe PME
 26:          0          0          0          0   PCI-MSI 18432-edge      PCIe PME
 28:          0          0          0          0   PCI-MSI 32768-edge      PCIe PME
 29:          0          0          0          0   PCI-MSI 34816-edge      PCIe PME
 30:          0          0          0          0   PCI-MSI 36864-edge      PCIe PME
 31:          0          0          0          0   PCI-MSI 38912-edge      PCIe PME
 33:          0          0          0          0   PCI-MSI 49152-edge      PCIe PME
 34:          0          0          0          0   PCI-MSI 51200-edge      PCIe PME
 35:          0          0          0          0   PCI-MSI 53248-edge      PCIe PME
 36:          0          0          0          0   PCI-MSI 55296-edge      PCIe PME
 37:          0          0          0          0   PCI-MSI 458752-edge      PCIe PME
 38:          0          0          0          0   PCI-MSI 462848-edge      PCIe PME
 39:          0          0          0          0   PCI-MSI 466944-edge      PCIe PME
 40:          0          0          0          0   PCI-MSI 532480-edge      uhci_hcd:usb2
 41:       6490          0          0          0   PCI-MSI 512000-edge      ahci[0000:00:1f.2]
 43:          0          0          2          0   PCI-MSI 65536-edge      ioat-msix
 45:          0          0          0          2   PCI-MSI 67584-edge      ioat-msix
 46:          2          0          0          0   PCI-MSI 69632-edge      ioat-msix
 47:          0          2          0          0   PCI-MSI 71680-edge      ioat-msix
 48:          0          0          2          0   PCI-MSI 73728-edge      ioat-msix
 49:          0          0          0          2   PCI-MSI 75776-edge      ioat-msix
 50:          2          0          0          0   PCI-MSI 77824-edge      ioat-msix
 51:          0          2          0          0   PCI-MSI 79872-edge      ioat-msix
 52:          0          0        235          0   PCI-MSI 1048576-edge      eno1-tx-0
 53:          0          0          0       2026   PCI-MSI 1048577-edge      eno1-rx-1
 54:          1          0          0          0   PCI-MSI 1048578-edge      eno1-rx-2
NMI:          0          0          0          0   Non-maskable interrupts
LOC:      50166      24851      35865     120181   Local timer interrupts
SPU:          0          0          0          0   Spurious interrupts
PMI:          0          0          0          0   Performance monitoring interrupts
IWI:          0          0          0          0   IRQ work interrupts
RTR:          1          0          0          0   APIC ICR read retries
RES:        194        170         91         94   Rescheduling interrupts
CAL:       1716       3120       2970       3338   Function call interrupts
TLB:          2         16          2          1   TLB shootdowns
TRM:          0          0          0          0   Thermal event interrupts
THR:          0          0          0          0   Threshold APIC interrupts
DFR:          0          0          0          0   Deferred Error APIC interrupts
MCE:          0          0          0          0   Machine check exceptions
MCP:          2          3          3          3   Machine check polls
ERR:          0
MIS:          0
PIN:          0          0          0          0   Posted-interrupt notification event
NPI:          0          0          0          0   Nested posted-interrupt event
PIW:          0          0          0          0   Posted-interrupt wakeup event

dmesg

[   10.593113] dahdi: loading out-of-tree module taints kernel.
[   10.593329] dahdi: module verification failed: signature and/or required key missing - tainting kernel
[   10.596520] dahdi: Version: 3.4.0
[   10.596732] dahdi: Telephony Interface Registered on major 196
[   10.734042] wct4xxp 0000:04:08.0: Firmware Version: c01a016c
[   10.736638] wct4xxp 0000:04:08.0: FALC Framer Version: 2.1 or earlier
[   10.736754] wct4xxp 0000:04:08.0: Found a Wildcard: Wildcard TE220 (4th Gen)
[   10.798833] wct4xxp 0000:04:08.0: firmware: direct-loading firmware dahdi-fw-oct6114-064.bin
[   10.798844] VPM450: echo cancellation for 64 channels
[   13.572753] tg3 0000:02:00.0 eno1: Link is up at 1000 Mbps, full duplex
[   13.572760] tg3 0000:02:00.0 eno1: Flow control is off for TX and off for RX
[   13.572763] tg3 0000:02:00.0 eno1: EEE is disabled
[   13.572782] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
[   15.471722] wct4xxp 0000:04:08.0: VPM450: hardware DTMF disabled.
[   15.471725] wct4xxp 0000:04:08.0: VPM450: Present and operational servicing 2 span(s)
[   16.008063] wct4xxp 0000:04:08.0: TE2XXP: Span 1 configured for CAS/HDB3
[   16.008187] wct4xxp 0000:04:08.0: SPAN 1: Primary Sync Source
[   18.085304] wct4xxp 0000:04:08.0: Interrupts not detected.
[   18.085543] wct4xxp 0000:04:08.0: TE2XXP: Span 2 configured for CAS/HDB3
[   18.085588] wct4xxp 0000:04:08.0: Setting yellow alarm span 2
[   20.165306] wct4xxp 0000:04:08.0: Interrupts not detected.

Considering that the card works on the same machine with an older version, it should work with a newer version.

Can anyone help me?

Thank you!

In Rocky Linux 9.2 got "Fatal error: stdbool.h: No such file or directory"

When using the DAHDI linux complete 3.2.0 tar.gz file, trying to compile on Rocky Linux 9.2 fails with error messages like these:

make all
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware'
make[2]: Leaving directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/firmware'
make -C /lib/modules/5.14.0-284.25.1.el9_2.x86_64/build M=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory '/usr/src/kernels/5.14.0-284.25.1.el9_2.x86_64'
  CC [M] /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o
/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.c:49:10: fatal error: stdbool.h: No such file or directory
   49 | #include <stdbool.h>
      | ^~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.build:321: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp/base.o] Error 1
make[3]: *** [scripts/Makefile.build:607: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi/wct4xxp] Error 2
make[2]: *** [Makefile:1923: /usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux/drivers/dahdi] Error 2
make[2]: Leaving directory '/usr/src/kernels/5.14.0-284.25.1.el9_2.x86_64'
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-3.2.0+3.2.0/linux'
make: *** [Makefile:9: all] Error 2
'make all' failed with 512.

The running Linux kernel version looks like this:

Linux localhost.localdomain 5.14.0-284.25.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 2 14:53:30 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.