This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
telephony:asterisk_md3200_x100p_dahdi [2025/04/29 11:12] – prppedro | telephony:asterisk_md3200_x100p_dahdi [2025/04/29 11:47] (current) – prppedro | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
# Asterisk: DAHDI with X100P Clone (Ambient MD3200) | # Asterisk: DAHDI with X100P Clone (Ambient MD3200) | ||
Line 10: | Line 12: | ||
Asterisk has excellent support on DAHDI. Zapata Telephony Project, or Zaptel, was written by Jim Dixon a long time ago, incubated by the Asterisk community. Now, Sangoma keeps maintaining it, even though both digital and analogue trunk lines are becoming nearly extinct animals, with the onset of SIP technology, now prevalent. | Asterisk has excellent support on DAHDI. Zapata Telephony Project, or Zaptel, was written by Jim Dixon a long time ago, incubated by the Asterisk community. Now, Sangoma keeps maintaining it, even though both digital and analogue trunk lines are becoming nearly extinct animals, with the onset of SIP technology, now prevalent. | ||
- | |||
## Setup Overview | ## Setup Overview | ||
+ | |||
+ | Gear: | ||
+ | * i7-3770 | ||
+ | * 16 GB of RAM | ||
+ | * Proxmox v8 | ||
My first idea was to do a PCI passthrough of that card to a virtual machine. That would provide optimal isolation and keep both the kernel module and Asterisk fairly isolated from the host. Unfortunately, | My first idea was to do a PCI passthrough of that card to a virtual machine. That would provide optimal isolation and keep both the kernel module and Asterisk fairly isolated from the host. Unfortunately, | ||
Line 17: | Line 23: | ||
Then I decided to run Asterisk inside a LXC container, passing through the device descriptors to the container. Despite that, we **do not** need to make it privileged. | Then I decided to run Asterisk inside a LXC container, passing through the device descriptors to the container. Despite that, we **do not** need to make it privileged. | ||
- | ## The Actual Process | + | ## The Actual Process |
- | This as kernel | + | ### Kernel |
- | It should be installed at the host. | + | First, clone the project repository somewhere. |
- | ### Installing | + | ```bash |
+ | git clone https:// | ||
+ | ``` | ||
+ | |||
+ | Or, if you're not crazy, get latest release tarball [here](https:// | ||
+ | |||
+ | On Proxmox, once you have `build-essentials` and standard compilation tools, installing it should be as easy as doing this: | ||
+ | |||
+ | ```bash | ||
+ | apt install pve-headers # kernel headers | ||
+ | make | ||
+ | make install | ||
+ | ``` | ||
+ | |||
+ | This will install the modules. But you'll still have to make sure `wcfxo` gets the card, not `netjet`. By default, the card binds to it, and the easiest way of getting rid of it is restarting the machine. Just make sure you got a file inside `/ | ||
+ | |||
+ | ``` | ||
+ | blacklist netjet | ||
+ | ``` | ||
+ | |||
+ | Once rebooted, the card should be bound to `wcfxo`. Something you can confirm with `lspci -nnk` command: | ||
+ | |||
+ | ``` | ||
+ | $ lspci -nnk | ||
+ | [...] | ||
+ | 04:00.0 Communication controller [0780]: Tiger Jet Network Inc. / ICP DAS Tiger3XX Modem/ISDN interface [e159: | ||
+ | Subsystem: Intel Corporation Digium X100P/X101P analogue PSTN FXO interface [8086: | ||
+ | Kernel driver in use: wcfxo | ||
+ | Kernel modules: netjet, wcfxo | ||
+ | [...] | ||
+ | ``` | ||
+ | |||
+ | Why is it detected as an ISDN card? No idea. Probably because some ISDN cards do use the same chip. But this driver does nothing to us. The card isn't ISDN and this driver doesn' | ||
+ | |||
+ | **Either way**, now we have a X100P clone card added to the system. Check endpoints at `/ | ||
+ | |||
+ | |||
+ | ### Asterisk | ||
+ | |||
+ | You may use any Linux of your choice, I guess. Though I suppose the easiest route is to use any standard RPM or DEB-based distro. As per my default behaviour, I went with Debian. Particularly Bookworm, the currently stable version. | ||
+ | |||
+ | Make sure you're passing on the correct devices to the container: | ||
+ | ``` | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ``` | ||
+ | |||
+ | It goes in the resource tab at PVE, like this: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Install `dahdi-tools`: | ||
+ | |||
+ | ```bash | ||
+ | apt install dahdi-tools | ||
+ | ``` | ||
+ | |||
+ | This will allow you to generate configuration and run tests to confirm the card is working, and will save an incredible amount of time, if it's not, because next steps are a bit of an involved process. | ||
I've followed those instructions, | I've followed those instructions, | ||
https:// | https:// | ||
+ | |||
+ | FIXME **WIP** | ||
+ | |||