Is it possible to install a x100p analog card on a Openwrt x86 to use with Asterisk
Can someone help me?
Thank you
The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Is it possible to install a x100p analog card on a Openwrt x86 to use with Asterisk
Can someone help me?
Thank you
I want to use a x100p pci card with asterisk on my OpenWRT x86.
So i have compiled and installed asterisk and zaptel Zaptel module was correctly loaded but it does not create correct devices in /dev
It creates:
/dev/zapchannel
/dev/zapctl
/dev/zappseudo
not
/dev/zap/channel
/dev/zap/ctl
/dev/zap/pseudo
I have also tried to compile dahdi (dahdi replace zaptel in new asterisk version) but the result was similar.
It creates:
/dev/dahdi!channel
/dev/dahdi!ctl
/dev/dahdi!pseudo
not
/dev/dahdi/channel
/dev/dahdi/ctl
/dev/dahdi/pseudo
If someone want to help/try i have attached the makefile for dahdi in this ticket
https://dev.openwrt.org/ticket/8675
(Last edited by ramponis on 18 Jan 2011, 15:16)
I suppose you have to patch the sources to use the device nodes you expect to see. I bet other distros patched them too.
Yes, i agree, but can you help me?
I found this
http://kb.digium.com/entry/142/
What do you think about?
So they use udev to assign names to the device files but openwrt has no udev, thus they are created with their canonical name. I suppose you can create a hotplug2 rule to fixup the name.
Can you post me an example?
Thank you
Can this be usefull?
http://svn.dd-wrt.com:8000/dd-wrt/brows … udev.rules
See at line 188
(Last edited by ramponis on 18 Jan 2011, 17:15)
I also want add dahdi into OpenWRT, but I cann't even compile success from your file from that ticket. Could you please give me a guidence? Thanks.
what file do you want to compile?
It works
I have compiled asterisk 1.4.20 with zaptel to run a x100p
You have to install:
zaptel14-libtonezone
zaptel14-util
asterisk 1.4.20
You can download them from here (compiled and tested for Atom cpu):
http://www.megaupload.com/?d=4ZY9CMVV
Edit /etc/init.d/asterisk
adding command "ztcfg" to set the x100p before starting asterisk
like this...
start() {
ztcfg
[ -f $DEFAULT ] && . $DEFAULT
[ -d $DEST/var/run ] || mkdir -p $DEST/var/run
...
You have to add these lines to /etc/hotplug2.rules
DEVICENAME ~~ (zappseudo) {
nothrottle
makedev /dev/zap/pseudo 0644
next
}
DEVICENAME ~~ (zapctl) {
nothrottle
makedev /dev/zap/ctl 0644
next
}
DEVICENAME ~~ (zapchannel) {
nothrottle
makedev /dev/zap/channel 0644
next
}
DEVICENAME ~~ (zap1) {
nothrottle
makedev /dev/zap/1 0644
next
}
DEVICENAME ~~ (zaptimer) {
nothrottle
makedev /dev/zap/timer 0644
next
}
Reboot and then you have to configure asterisk...
(Last edited by ramponis on 28 Sep 2011, 09:37)
The discussion might have continued from here.