essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« on: September 02, 2012, 06:36:09 pm » |
|
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!!
|
|
|
|
|
Logged
|
|
|
|
|
posde
|
 |
« Reply #1 on: September 02, 2012, 06:49:08 pm » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« Reply #2 on: September 03, 2012, 07:51:54 am » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|
posde
|
 |
« Reply #3 on: September 03, 2012, 11:57:19 am » |
|
What does apt-cache search dahdi return?
|
|
|
|
|
Logged
|
|
|
|
essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« Reply #4 on: September 03, 2012, 08:39:00 pm » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|
posde
|
 |
« Reply #5 on: September 04, 2012, 02:53:12 pm » |
|
essem,
do an apt-get update, followed by apt-cache search dahdi, and see if you find something you like.
|
|
|
|
|
Logged
|
|
|
|
essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« Reply #6 on: September 05, 2012, 12:12:57 am » |
|
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!
|
|
|
|
|
Logged
|
|
|
|
|
posde
|
 |
« Reply #7 on: September 05, 2012, 11:06:55 am » |
|
Ignore the deb-cache error, and try apt-get update and the search again.
|
|
|
|
|
Logged
|
|
|
|
essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« Reply #8 on: May 04, 2013, 07:33:02 pm » |
|
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!
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #9 on: May 05, 2013, 12:25:41 am » |
|
a think that you need to install asterisk-dahdi
|
|
|
|
|
Logged
|
|
|
|
essem_9
Regular Poster
 
Posts: 29
Fascinated by LMCE
|
 |
« Reply #10 on: May 05, 2013, 07:28:21 pm » |
|
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!!
|
|
|
|
|
Logged
|
|
|
|
|
posde
|
 |
« Reply #11 on: May 05, 2013, 08:01:42 pm » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
cfernandes
|
 |
« Reply #12 on: May 06, 2013, 12:06:45 pm » |
|
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
|
|
|
|
|
Logged
|
|
|
|
|