Show Posts
|
|
Pages: [1] 2
|
|
1
|
LinuxMCE / Users / Re: network redirection
|
on: May 29, 2013, 04:56:47 am
|
|
My cable modem connects to a firewall. All traffic passes through this firewall. Behind the firewall i have a Layer 3 switch. This layer 3 switch has two networks (VLANs). Outside VLAN (VLAN2) which connects to LinuxMCE's external interface (eth0). This VLAN gets IP address from the firewall. An inside VLAN (VLAN80) which connects to LinuxMCE's internal subnet (192.168.80.x/24).
On LMCE I have changed the DHCP server scope on the internal subnet to start from 192.168.80.10. I have given my L3 switch a static IP address 192.168.80.2/24 on VLAN80. Any packets sent to VLAN80 of Layer 3 switch gets NAT'ed to VLAN2. So basically my L3 switch and LMCE are configured similarly.
When a client connects to the LMCE network (VLAN80) it gets an IP address from LMCE. Also LMCE is the default gateway. The static route can ensure that LMCE does not NAT the packet but passes it to the Layer3 switch which NATs it out.
Hope this helps!
|
|
|
|
|
2
|
LinuxMCE / Users / Re: network redirection
|
on: May 05, 2013, 07:55:53 pm
|
|
iberium, I have a different router that connects to my Internet and LMCE. The router has two IP addresses one through my cable modem and another via LMCE. So my router for example gets an IP address 192.168.80.150/24.
On LMCE I have created a static route to the destination. Test it out with: sudo ip r a 1.1.1.1/24 via 192.168.80.150
where 1.1.1.1/24 is the destination and 192.168.80.150 is your secondary router on the same LAN as LMCE. Since the router is connected to the Internet as well it NAT's out the packets just like LMCE would do.
One thing I have noticed, if you make any changes to the DHCP server file or network interfaces file, they can get overridden if you make any changes via the admin site. I think there are scripts that re-write whole file.
If the ip r command works we can add it in the /etc/network/interfaces file and hopefully it persists.
|
|
|
|
|
3
|
LinuxMCE / Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
|
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!!
|
|
|
|
|
4
|
LinuxMCE / Users / Delay Command between ON/OFF in Lighting Scenario
|
on: May 04, 2013, 07:45:49 pm
|
|
Hello Everyone, I am trying to Inject a delay of 10 seconds between a light switch turning ON and then OFF. No matter what value i put in there it seems to be just a second or two. If I press the button in my Lighting scenario, it turns ON the switch and in the second or so it turns it OFF. I have attached a screenshot of my scenario. Any thoughts would be appreciated
Thanks!!
|
|
|
|
|
5
|
LinuxMCE / Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
|
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!
|
|
|
|
|
7
|
LinuxMCE / Users / Re: Why are you using LinuxMCE?
|
on: September 05, 2012, 12:27:11 am
|
|
Linux is my OS at work and home. However i am challenged in the coding department and would love to pick up on that. Taking baby steps with shell scripting.
I have been running MythTV, Asterisk, FreeNAS, Server (Webserver, zoneminder, wordpress etc) for a couple of years. Since I was looking to combine my 3 servers in to one single one; that's when i stumbled upon LMCE. Not only did it cover my existing needs but also got me hooked on to home automation. Thanks to all those who have contributed to this distro...
|
|
|
|
|
8
|
LinuxMCE / Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
|
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!
|
|
|
|
|
10
|
LinuxMCE / Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
|
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
|
|
|
|
|
11
|
LinuxMCE / Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
|
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
|
|
|
|
|
12
|
LinuxMCE / Users / Asterisk + 10.04 + Dahdi + TDM800p
|
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!!
|
|
|
|
|
13
|
LinuxMCE / Users / Re: Z-Wave Compatible Yale Locks
|
on: September 02, 2012, 05:59:56 am
|
|
JaseP, Thanks for the info. I have a borrowed Aeon USB which I will try and report back.
Armor Gnome, I had successfully added the Aeon USB on my 8.10 system. The Aeon had the Yale Lock config but LMCE did not pick it up. Now I have all the components and I specifically bought the Vera for my Yale lock. Let's see how it works out.
|
|
|
|
|
14
|
LinuxMCE / Users / Re: Z-Wave Compatible Yale Locks
|
on: September 02, 2012, 03:57:54 am
|
|
JaseP, I now have the Vera lite. It is talking to my Yale lock (draining the battery with the Beta code). I can open and close the lock from Vera lite.
Vera lite is plugged in to my 192.168.80.0/24 network but LinuxMCE did not recognize it or configure it. I was initially running 8.10 release and now i am currently on 10.04 Beta. How is your Vera talking to LinuxMCE? Per their documentation, they have implemented DCE so it should be able to communicate with LMCE.
Do i need to plug an Aeon USB stick in my LMCE to communicate over Z-wave? I was hoping that is not required and all communication takes over ip.
Thanks in advance!
|
|
|
|
|
15
|
LinuxMCE / Users / Re: Asterisk + TDM800p + 8.10 configuration
|
on: May 03, 2012, 05:08:52 pm
|
Just an update on this configuration. I first wanted to verify if the card works since it has be laying around for sometime. Installed the latest PBX in Flash (purple) and the card does not work out of the box. The DAHDI configuration files had to be generated and then asterisk was able to pick up the various channels on the port. I had supplied additional power to the card as required for FXS's port to show up. Created a trunk with the right channel into which the POTS is plugged in. Was able to make outgoing calls. Tried numerous configs but could NOT get incoming to work Out of curiosity I plugged the card back in to LMCE 8.10. The version of asterisk uses Zaptel (renamed to DAHDI in new releases due to trademark concerns). apt-get install zaptel installed the package. There are some binaries that check for the card and builds configuration files. Had to get some sample configuration off the Internet to have a complete set of files. Created trunks in the FreePBX GUI (Advanced-->Configuration-->Phone Setup) and was able to make outgoing calls. Incoming was NOT successful as with PBX in Flash. The only difference between the two setups was I had a lot of echo in LMCE. In LMCE I was not able to get power to the card. Will purchase a connector to extend power to the card to see if the echo goes away. I have spent a lot of time trying to figure out how to get incoming calls without success. On the asterisk CLI I don't see anything when i try calling from my cell. I am using Comcast Digital Voice. Any insights will be appreciated. I used the following website for reference ( http://www.cadvision.com/blanchas/Asterisk/). Refer to the zaptel how-to.
|
|
|
|
|