Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - essem_9

Pages: [1] 2 3
1
Users / Re: only one nic - still everything possible
« on: July 24, 2013, 05:20:07 pm »
I am not sure if it is the best solution to to have two subnets on the same VLAN (eth0). I have a VLAN capable wired switch and following is what i do:
1. Create two VLANs: VLAN 1 and VLAN 80 on the wired switch port
2. Plug LMCE's eth0 in to that port
3. Install vlan package on LMCE (apt-get install vlan)
4. Modify /etc/network/interfaces as follows

# --- External NIC ---
iface eth0 inet dhcp
   pre-up sysctl -q -e -w  net.ipv6.conf.eth0.disable_ipv6=1

# --- Internal NIC ---
iface eth0.80 inet static
   address 192.168.80.1
   netmask 255.255.255.0
   pre-up sysctl -q -e -w  net.ipv6.conf.eth0.80.disable_ipv6=1

#####
# Activating interfaces
#####
auto eth0 eth0.80 lo

5. In my case I actually have a two ethernet NICs, however i am running out of wired ports on my wired switch hence use just one. Since i have two ethernet NICs I had to do the following to avoid LMCE getting confused.
Navigate to sudo vim /etc/udev/rules.d/70-persistent-net.rules
Change the name eth1 to eth2

6. Reboot the LMCE. It should come up with two interfaces: eth0 and eth0.80. Since the wired switch is trunked with VLAN1 and VLAN 80, we essentially have two networks and all works well

2
Users / Re: network redirection
« on: May 29, 2013, 05: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!

3
Users / Re: network redirection
« on: May 05, 2013, 08: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.




4
Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
« on: May 05, 2013, 08: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!!

5
Users / Delay Command between ON/OFF in Lighting Scenario
« on: May 04, 2013, 08: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!!


6
Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
« on: May 04, 2013, 08: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
Hello twodogs,
I did try it on my 10.04 system which I haven't updated in a while. It had the same behavior. Waiting for the final release and will reinstall the system and test it out.

Regards,
Shiv

8
Users / Re: Why are you using LinuxMCE?
« on: September 05, 2012, 01: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...


9
Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
« on: September 05, 2012, 01: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
Users / Re: Z-Wave Compatible Yale Locks
« on: September 03, 2012, 10:29:03 pm »
In the US it retails for about $255 on amazon

11
Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
« on: September 03, 2012, 09: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


12
Users / Re: Asterisk + 10.04 + Dahdi + TDM800p
« on: September 03, 2012, 08: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

13
Users / Asterisk + 10.04 + Dahdi + TDM800p
« on: September 02, 2012, 07: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!!


14
Users / Re: Z-Wave Compatible Yale Locks
« on: September 02, 2012, 06: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.



15
Users / Re: Z-Wave Compatible Yale Locks
« on: September 02, 2012, 04: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!

Pages: [1] 2 3