The Cisco That Just couldn’t

So I have an 1801 cisco that not behaving. It works GREAT for a period of time (sometimes hours, some times weeks) and then, all of a sudden, out of the blue, I can no longer access it over the LAN.

Both WANs still work fine, but there is no LAN. If I reload it. It comes back, and continues to work… for a period of time… (sometimes hours, some times weeks).

I started this blog post to try to diarize what I it is, what I have tried, and what I can do as I have no idea what to do next.

Here are some facts I found out so far

* Rebooting 1801 allows everything to work properly.
* Upgraded firmware on 1801 did not solve issue
* Upgraded firmware on attached switch did not solve anything
* rebooting SWITCH attached to router seems to fix the problem, possibly for a shorter period of time
* Shutting down the interface on the switch for a period of time and bringing it up fixes the problem, possibly for a shorter period of time
* When Down Pinging from the router to the switch is 0/5
* When Down Pinging from the switch to the router is 0/5

* RESULT OF: show ip interface fastEthernet 1
FastEthernet1 is up, line protocol is up
Internet protocol processing disabled

* on Switch Show Mac address-table yields no entires for GI1
* on Router Show Mac-address-table yields many entries for FI1 including the switch’s vlan mac

* on router Logs as follows

During StartUp
*Dec 2 12:45:00.127: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to down
*Dec 2 12:46:04.263: %DTP-5-TRUNKPORTON: Port Fa1 has become dot1q trunk
*Dec 2 12:46:05.759: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to up
*Dec 2 12:46:06.759: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1, changed state to up

When the line goes down there are NO entries


ciscoissue1 Posted in Uncategorized | Leave a comment

Asterisk / Free PBX, Alarm Panel, Contact ID and DTFM

I finally got the alarm panel to work with asterisk. Solution at the bottom

First some background:

SO I been battling with Alarm panels this week. Trying to get an ATA to connect to an alarm panel to provide monitoring to an office with no analog line.

I know every one says “DONT DO IT!” just like they say that about faxes but an analog line for 70+ dollars is pricy. But as long as I have low jitter, a good connection, and a high retry count it should work right?

Sadly capturing packets I ran into my first problem. SILENCE on the line. Couldn’t for the life of me figure this out. Finally it dawned on my. The panel was sending DTFM tones and they where converted into RFC2833. Ok switched everything to inband, but then the silence continued on the ASTERISK – PROVIDER leg.

After trying this and that I finally gave up, setup an new account and set it for INBAND. Added the account to FREEPBX and set it for only the monitoring center telephone number.

And that’s where things got weird.
Continue reading

Posted in FreePBX, VOIP | Tagged , , , , | Leave a comment

FreePBX – Set Account Code 2.5.1

There has been some popular demand for this module, so I fixed up some small bugs that have crept up since I built it.

Original Post and a bit of a story a FreePBX – Setting Account Codes .

Module now loads properly on newer distros
Moved it into “Application group”


Remember to upgrade after uploading it (if you installed 2.5.0)

Posted in FreePBX, linux, Software Development, VOIP | Leave a comment

OpenWRT on a DIR-515

Cheap Plug Server - dir 505To compile dir 505

This I my attempt for an inexpensive PLUG SERVER :) If you hurry they are selling them at Costco (Canada) for 30 bucks!

1) Checkout Code

svn co svn://

* IF you already checked it out and ran menuconfig the patch will not take affect! Check out a CLEAN version
* Don’t run as root, even with FORCE=1 it will fail later, so save yourself some trouble now!

2) store the following PATCH file in the same directory IE myfile.patch
(or another but adjust the patch command line patch)

CREDIT: Original patch from DANZ ( was stored in “reverse”. Updated patch below. Also missing lines added.

**NOTE** I since fried my DIR 515.. and then trying to access the serial port used to big wires and ripped the traces of the board :( but for those that wanted a downloadble file here it is…**

DIR-515 Patch

Index: target/linux/ar71xx/image/Makefile
--- target/linux/ar71xx/image/Makefile (revision 36849)
+++ target/linux/ar71xx/image/Makefile (working copy)
@@ -168,6 +168,7 @@
@@ -345,6 +346,14 @@
$(call MkuImageLzma/initramfs,$(2),$(3) $(cameo7240_mtdlayout))

+define Image/Build/Cameo9330
+ $(call Image/Build/CameoHornet,$(1),$(2),$(3),$(cameo9330_mtdlayout),1048576,6422528,$(4))
+define Image/Build/Cameo9330/initramfs
+ $(call MkuImageLzma/initramfs,$(2),$(3) $(cameo9330_mtdlayout))
define Image/Build/Cameo933x
$(call Image/Build/CameoHornet,$(1),$(2),$(3),$(cameo933x_mtdlayout),917504,2818048,$(4))
@@ -413,6 +422,8 @@
-o $(call factoryname,$(1),$(2))

+$(eval $(call SingleProfile,Cameo9330,$(fs_squash),DIR505A1,dir-505-a1,DIR-505-A1,ttyATH0,115200,"HORNET-PACKET-DIR505A1-3"))
+$(eval $(call SingleProfile,Cameo933x,$(fs_squash),TEW712BR,tew-712br,TEW-712BR,ttyATH0,115200,"HORNET-RT-TEW712BR-3"))

define Image/Build/UBDEV
$(call MkuImageLzma,$(2),$(3) $(ubdev_mtdlayout))
Index: target/linux/ar71xx/config-3.3
--- target/linux/ar71xx/config-3.3 (revision 36849)
+++ target/linux/ar71xx/config-3.3 (working copy)
@@ -32,6 +32,7 @@
Index: target/linux/ar71xx/base-files/lib/
--- target/linux/ar71xx/base-files/lib/ (revision 36849)
+++ target/linux/ar71xx/base-files/lib/ (working copy)
@@ -324,6 +324,9 @@
+ *DIR-505-A1)
+ name="dir-505-a1"
+ ;;
*"TL-WR1041N v2")
Index: target/linux/ar71xx/base-files/lib/upgrade/
--- target/linux/ar71xx/base-files/lib/upgrade/ (revision 36849)
+++ target/linux/ar71xx/base-files/lib/upgrade/ (working copy)
@@ -102,6 +102,7 @@
ap81 | \
ap83 | \
+ dir-505-a1 | \
dir-600-a1 | \
dir-615-c1 | \
dir-615-e4 | \
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
--- target/linux/ar71xx/base-files/etc/uci-defaults/network (revision 36849)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network (working copy)
@@ -136,6 +136,8 @@

ucidef_set_interfaces_lan_wan "eth0" "eth1"
+dir-505-a1 |\
+dir-505-a1 |\
ucidef_add_switch "eth0" "1" "1"
ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
Index: target/linux/ar71xx/base-files/etc/
--- target/linux/ar71xx/base-files/etc/ (revision 36849)
+++ target/linux/ar71xx/base-files/etc/ (working copy)
@@ -60,6 +60,7 @@
+ dir-505-a1 |\
dir-600-a1 |\
Index: target/linux/ar71xx/generic/profiles/
--- target/linux/ar71xx/generic/profiles/ (revision 36849)
+++ target/linux/ar71xx/generic/profiles/ (working copy)
@@ -5,6 +5,17 @@
# See /LICENSE for more information.

+define Profile/DIR505A1
+ NAME:=D-Link DIR-505 rev. A1
+define Profile/DIR505A1/Description
+ Package set optimized for the D-Link DIR-505 rev. A1.
+$(eval $(call Profile,DIR505A1))
define Profile/DIR600A1
NAME:=D-Link DIR-600 rev. A1

Apply The Patch

patch -p0 < myfile.patch

Run MenuConfig

make menuconfig


Target System - Atheros AR7xxx/AR9xxx
Target Profile - D-Link DIR-505 rev. A1

If Target Profile is missing the DIR make sure you checked out a clean copy and apply the patch BEFORE running menu config.

Posted in linux, Network, Software | 8 Comments

Low Orbit Ion Cannon

Seems the worlds a buzz about the low orbit ion cannon. Even the FBI is all over it, as if it was a wepon of mass destruction. The Low Orbit Ion Cannon (LOIC) is a great peice of open source software but it is a perfect example of how a bit of information in the wrong hands can be big trouble.

First the FBI – i cant beleave how there are kids sitting in jail right now that the FBI has put there becuase they downloaded and used the LOIC, and what are they facing? 15 years!! You know how many times I get d-dosed and the provider says “Sorry for your luck, welcome to the internet”

Second are the script kiddies – How do i know they are script kiddies? They downloaded HACKING tools that are open soruce, then complain their antiviruse say its a viruse. READ the source code!

For those of you wanting to check it out goto

Posted in Android, Hack Tools | 1 Comment

MythTV on VMWARE – Debugging

After installing on centos (see Centos Compile post) i had lots of dead locks. Here is the stetup i use to reproduce them .
Continue reading

Posted in MythTV, Network, Software Development | Leave a comment

Centos Upgrade 6.0 to 6.2

To easly upgrade Centos 6.x to a newer 6.x simply issue the

yum update

Posted in Uncategorized | Tagged , | Leave a comment

Canada’s multitude of choices for telephone service

I as speaking with some pople the other day about the mass amount of choices we have as canadians for cell phone service, and it astounds me that people beleave this to be true. I mean sure, every other commercial on the radio is a cell phone company trying to push its own cell phone plan, but the reality is the chouices are not so plentiful.

Continue reading

Posted in Cell | Tagged , , | Leave a comment

Android E-Mail – To The Cloud

Had a question today “How do i add outlook emails into my android device”.

Well the easiest way i could think of is to get a GMail account. By getting a Gmail account, you can add your other e-mail accounts as an “import” feature, and setup alternative outgoing e-mail accounts and thus making your GMail a hub for all your incomming e-mail. To add these email accounts click on the Gear at the top right corner of your gmail screen, select Gmail Settings. Once in the setting screen select the Import Account tab.
Continue reading

Posted in Android, Windows | Tagged , , | Leave a comment

Creating KEYS for OpenVPN Server on Windows

Ok so to create a CA for your openvpn here is what you do
Continue reading

Posted in Uncategorized | Leave a comment