lizhong zhu
2008-Aug-28 04:01 UTC
[asterisk-users] can not load chan_dahdi.so from asterisk!
hello, all of users: i have a problem with loading chan_dahdi.so. when i start asterisk, it always reports the can not open channel 1 in ... here is my setting: in etc/system/dahdi.conf: # Global data fxsks=1 fxsks=2 fxoks=3 fxoks=4 loadzone = us defaultzone = us --------------------- in my chan_dahdi.conf--------------- group=0 signalling=fxs_ks context=from-internal channel => 1 channel => 2 signalling=fxo_ks context=demo channel => 3 channel => 4 ----------dmesg---------------- dahdi: Registered Span 1 ('WCTDM/4') with 4 channels dahdi: Span ('WCTDM/4') is new master Freshmaker version: 71 Freshmaker passed register test Module 0: Installed -- AUTO FXO (FCC mode) Module 1: Installed -- AUTO FXO (FCC mode) Module 2: Installed -- AUTO FXS/DPO Module 3: Installed -- AUTO FXS/DPO Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules) --------------------------------- one error is that there is no transcode under /dev/dahdi, i do not why. [root at new-host-13 dahdi]# ls 1 2 3 4 channel ctl pseudo timer [root at new-host-13 dahdi]# and load from asterisk: ============Connected to Asterisk SVN-trunk-r140246 currently running on new-host-13 (pid = 2664) Verbosity is at least 50 new-host-13*CLI> module load chan_dahdi.so Unable to load module chan_dahdi.so Command 'module load chan_dahdi.so' failed. == Parsing '/etc/asterisk/chan_dahdi.conf': == Found == Parsing '/etc/asterisk/users.conf': == Found [Aug 28 11:25:57] WARNING[2797]: chan_dahdi.c:1139 dahdi_open: Unable to specify channel 1: No such device or address [Aug 28 11:25:57] ERROR[2797]: chan_dahdi.c:8346 mkintf: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 [Aug 28 11:25:57] ERROR[2797]: chan_dahdi.c:13646 build_channels: Unable to register channel '1' new-host-13*CLI> =========================any one has idea for that problem? the second question is about modprobe the modules. is the ztcfg command still workable for DAHDI? it always opens zaptel.conf file. what is the steps to load modules: --- like this------ modprobe dahdi modprobe wctdm ztcfg -vvvvvvvvvvvvvvv; but my one open zaptel.conf file, i installed zaptel before. it should open dahdi.conf. i am still investgating DAHDI for further testing. thanks! zhu --------------------------------- ???????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080828/b2dbb7dc/attachment.htm
Tzafrir Cohen
2008-Aug-28 06:53 UTC
[asterisk-users] can not load chan_dahdi.so from asterisk!
On Thu, Aug 28, 2008 at 12:01:57PM +0800, lizhong zhu wrote:> hello, all of users: > i have a problem with loading chan_dahdi.so. when i start asterisk, it always reports the can not open channel 1 in ... > here is my setting: in etc/system/dahdi.conf: > # Global data > fxsks=1 > fxsks=2 > fxoks=3 > fxoks=4 > loadzone = us > defaultzone = us > --------------------- in my chan_dahdi.conf--------------- > group=0 > signalling=fxs_ks > context=from-internal > channel => 1 > channel => 2 > signalling=fxo_ks > context=demo > channel => 3 > channel => 4 > ----------dmesg---------------- > dahdi: Registered Span 1 ('WCTDM/4') with 4 channels > dahdi: Span ('WCTDM/4') is new master > Freshmaker version: 71 > Freshmaker passed register test > Module 0: Installed -- AUTO FXO (FCC mode) > Module 1: Installed -- AUTO FXO (FCC mode) > Module 2: Installed -- AUTO FXS/DPO > Module 3: Installed -- AUTO FXS/DPO > Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules) > --------------------------------- > one error is that there is no transcode under /dev/dahdi, i do not why.You don't really need it.> [root at new-host-13 dahdi]# ls > 1 2 3 4 channel ctl pseudo timer > [root at new-host-13 dahdi]# > and load from asterisk: > ============> Connected to Asterisk SVN-trunk-r140246 currently running on new-host-13 (pid = 2664) > Verbosity is at least 50 > new-host-13*CLI> module load chan_dahdi.so > Unable to load module chan_dahdi.so > Command 'module load chan_dahdi.so' failed. > == Parsing '/etc/asterisk/chan_dahdi.conf': == Found > == Parsing '/etc/asterisk/users.conf': == Found > [Aug 28 11:25:57] WARNING[2797]: chan_dahdi.c:1139 dahdi_open: Unable to specify channel 1: No such device or address > [Aug 28 11:25:57] ERROR[2797]: chan_dahdi.c:8346 mkintf: Unable to open channel 1: No such device or address > here = 0, tmp->channel = 1, channel = 1 > [Aug 28 11:25:57] ERROR[2797]: chan_dahdi.c:13646 build_channels: Unable to register channel '1' > new-host-13*CLI> > =========================> any one has idea for that problem?If this is Asterisk 1.4: Is chan_dahdi built to use dahdi or zaptel? Compare the following two: strings /usr/lib/asterisk/modules/chan_dahdi.so | grep dahdi strings /usr/lib/asterisk/modules/chan_dahdi.so | grep zaptel Also, what is the output of: cat /proc/dahdi/*> the second question is about modprobe the modules. is the ztcfg > command still workable for DAHDI?No, you should use dahdi_cfg -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
David A. Bandel
2008-Aug-28 13:24 UTC
[asterisk-users] can not load chan_dahdi.so from asterisk!
On Wed, Aug 27, 2008 at 11:01 PM, lizhong zhu <zhulizhongum at yahoo.com.cn> wrote:> hello, all of users: > i have a problem with loading chan_dahdi.so. when i start asterisk, it > always reports the can not open channel 1 in ... > here is my setting: in etc/system/dahdi.conf: > # Global data > fxsks=1 > fxsks=2 > fxoks=3 > fxoks=4 > loadzone = us > defaultzone = usTzafrir answered most of this. You will also need to modprobe one of the echo cancellers (unless you don't need one) and have a line like: echo_canceller=mg2,1-4 echo cancellers look like this: dahdi_echocan_mg2 if you want different echo cancellers for each line, you can do that as well: echo_canceller=mg2,1 echo_canceller=none,2 ... Without the echo cancellers, dahdi_cfg won't configure the lines. At least, that's how it's been working (or not) for me in /trunk Ciao, David A. Bandel -- Focus on the dream, not the competition. - Nemesis Air Racing Team motto