News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Asterisk + 10.04 + Dahdi + TDM800p

Started by essem_9, September 02, 2012, 07:36:09 PM

Previous topic - Next topic

essem_9

Hello Everyone,
Based on the forums I gather the asterisk files are in a database and there is no FreePBX. I was hoping to try my TDM800p card which has 4 FXO and 4 FXS ports.

I went and installed dahdi drivers and it seems to recognize my card. It also generated the config files under /etc/dahdi. Following are my questions:

1. Do the files in /etc/dahdi need to be in the database
2. module show does not show the dahdi module loaded (after reboots). I have unchecked it in /etc/asterisk/modules.conf. Should it show up?

Following are some outputs:
home@dcerouter:~$ dmesg |grep dahdi
[   19.512668] dahdi: Telephony Interface Registered on major 196
[   19.512670] dahdi: Version: 2.2.1
[   24.842523] dahdi: Registered tone zone 0 (United States / North America)

home@dcerouter:~$ lsmod
wctdm24xxp             63965  0
dahdi_voicebus         37065  1 wctdm24xxp
dahdi                 196138  4 wctdm24xxp,dahdi_voicebus
crc_ccitt               1339  1 dahdi

home@dcerouter:~$ sudo dahdi_scan
active=yes
alarms=OK
description=Wildcard TDM800P Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM800P
location=PCI Bus 16 Slot 10
basechan=1
totchans=8
irq=21
type=analog
port=1,FXS FAILED
port=2,FXS FAILED
port=3,none
port=4,none
port=5,FXO
port=6,FXO
port=7,none
port=8,none

I do have a phone line plugged in to Port 5.

I think I can figure out the configuration for Dahdi (thanks to google) but I wanted to know how the database part plays in with dahdi and what i need to do. Also I installed phpmyadmin and was not able to get to it via 192.168.80.1/phpmyadmin.

Thanks in advance!!


Marie.O

did you create the chan_dahdi module? what happens when you manually
module load chan_dahdi


or chan_dahdi.so. I can never remember the right syntax.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

essem_9

posde,
Thanks for the information. The module is not there. I looked under "/usr/lib/asterisk/modules/" and it does not show up. The logs indicate the same. Have spent some time on google and it seems that DAHDI needs to be installed before asterisk. I need to issue some make commands on asterisk.

Any pointers on how i can move forward? It seems that DAHDI is installed and working correctly but asterisk needs to pick it up and install the module.

Regards,
Shiv

Marie.O

What does apt-cache search dahdi return?

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

essem_9

Following is the output:
home@dcerouter:~$ sudo apt-cache search dahdi
dahdi - utilities for using the DAHDI kernel modules
dahdi-dkms - DAHDI telephony interface (dkms kernel driver)
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver

I had compiled DAHDi from source. Did try apt-get install as well. The result is the same. The chan_dahdi.so module is not in /usr/lib/asterisk/modules.

home@dcerouter:~$ sudo cat /var/log/asterisk/full |grep dahdi
[Sep  2 09:11:06] WARNING[3272] loader.c: Error loading module 'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: cannot open shared object file: No such file or directory


Marie.O

essem,

do an apt-get update, followed by apt-cache search dahdi, and see if you find something you like.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

essem_9

posde,
On the update i get the following error. Is that expected.

W: Failed to fetch file:/usr/pluto/deb-cache/./Packages.gz  File not found

E: Some index files failed to download, they have been ignored, or old ones used instead.
home@dcerouter:~$ sudo apt-cache search dahdi
dahdi - utilities for using the DAHDI kernel modules
dahdi-dkms - DAHDI telephony interface (dkms kernel driver)
dahdi-linux - DAHDI telephony interface - Linux userspace parts
dahdi-source - DAHDI telephony interface - source code for kernel driver

Appreciate your help! Thanks!

Marie.O

Ignore the deb-cache error, and try apt-get update and the search again.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

essem_9

Hello Everyone,
I am trying to pick up where i left off with this topic. Not sure if i should have started a new post. 

I messed up my 10.04 beta asterisk install last time i was trying to get this to work. Since everything else was working i left it as is. I did a fresh install of 10.04 and I am trying to get my TDM800p telephony card to work with LMCE. I seem to be running in to the same issue I had last time.

My card is detected by the system and the modules loaded

dcerouter_1035275:/# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM800P Board 1
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM800P
location=PCI Bus 16 Slot 10
basechan=1
totchans=8
irq=21
type=analog
port=1,FXS FAILED
port=2,FXS FAILED
port=3,none
port=4,none
port=5,FXO
port=6,FXO
port=7,none
port=8,none
[2]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: HRtimer) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=9
totchans=0
irq=0


dcerouter_1035275:/# lsmod |grep dahdi
dahdi_echocan_oslec     1282  2
echo                    4525  1 dahdi_echocan_oslec
dahdi_transcode         5751  0
dahdi_dummy             2312  0
dahdi_voicebus         37065  1 wctdm24xxp
dahdi                 196138  5 dahdi_echocan_oslec,dahdi_transcode,dahdi_dummy,wctdm24xxp,dahdi_voicebus
crc_ccitt               1339  1 dahdi

In ran dahdi_genconf and it seemed to generate the configuration in /etc/asterisk/dahdi-channels.conf
dcerouter_1035275:/# dahdi_cfg -v
DAHDI Tools Version - 2.2.1

DAHDI Version: 2.2.1
Echo Canceller(s): OSLEC
Configuration
======================


2 channels to configure.

Setting echocan for channel 5 to oslec
Setting echocan for channel 6 to oslec

In /etc/asterisk/modules.conf I have uncommented load => chan_dahdi.so

I have rebooted the server and when i log in to the asterisk CLI, I don't see dahdi loaded. There are no "dahdi show" commands.

Please correct me if i am wrong, but i should be able to see the module loaded in asterisk cli, right? My first hurdle would be to get that to work. The second hurdle would be to figure out how to create a dahdi trunk and corresponding inbound and outbound routes.

Any help will be appreciated.

Thanks!

cfernandes

a think that you need to install  asterisk-dahdi 

essem_9

cfernandes,
Thanks!! It worked..The dahdi module loaded...following is the output of dahdi show

dcerouter*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret        Blocked    State     
pseudo            default                    default                         In Service

I am not sure what the output should look like but it says In Service

Any pointers on how should i setup a Dahdi trunk and outbound/inbound routes? I am aware how it can be done via FreePBX. I will be more than happy to document all the information in the Wiki.

Truly appreciate your help, Thanks!!

Marie.O

atm there is no support for hw cards in the LinuxMCE configuration utility. You might want to touch bases with Foxy on IRC, so that the hw routing can be incorporated.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

cfernandes

Like Posde said ,

no support for this hardware but , you can manualy configure  this .

basicaly you need to

edit /etc/asterisk/chan_dahdi.conf, and assign a specific context to our channel(s)

like this

[channels]
language=pt_BR
context=from-trunk
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=2