Thursday, December 30, 2010

Cisco 2811 and Asterisk/FreePBX

A few months ago I had to install an analog fax machine in one of our offices (could we forget about fax machines on a global scale, by the way?).
We use a FreePBX server and SIP-based Grandstream phones, and we don't have a phone line in that office, so I wanted to use our VOIP system. Luckily, we had an idle Cisco 2811 in that office with this config:

System image file is "flash:c2800nm-advipservicesk9-mz.124-9.T7.bin"
Cisco 2811 (revision 53.51) with 237568K/24576K bytes of memory.

Processor board ID XXXXXXXXXX
2 FastEthernet interfaces
1 Serial(sync/async) interface
3 ISDN Basic Rate interfaces
1 Virtual Private Network (VPN) Module
4 Voice FXS interfaces



Here's what the config looks like on the IOS side:

!
voice-port 1/1/0
input gain 10
output attenuation 10
no comfort-noise
cptone HU
!
dial-peer voice 399 voip
destination-pattern .T
session protocol sipv2
session target ipv4:192.168.13.248
session transport udp
dtmf-relay rtp-nte
codec g711ulaw
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
!
dial-peer voice 100 pots
destination-pattern 3399
port 1/1/0
authentication username 3399 password 01234567891234
!
sip-ua
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
mwi-server ipv4:192.168.13.248 expires 3600 port 5060 transport udp unsolicited
registrar ipv4:192.168.13.248 expires 300
sip-server ipv4:192.168.13.248
!



and on the Asterisk side:

[3399]
deny=0.0.0.0/0.0.0.0
secret=xxxxxxx
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=
pickupgroup=
dial=SIP/3399
mailbox=3399@device
permit=0.0.0.0/0.0.0.0
callerid=device <3399>
call-limit=50


A few things the IOS is bitchy about:
  • you must have a SIP secret. Our standard phones login without one, but IOS needs a secret.
  • the SIP username must be at least 4 chars long. We use 3 char names by default, so I had to prepend an additional '3' character.
As for the config: 192.168.13.248 is the FreePBX server of course, and you might have to play around with the destination-pattern.

Monday, October 25, 2010

Shameless advertising

Okay, so here's the deal: you should sign up on www.tozsdezz.hu and start trading. There's a fat chance to win that ride. Seriously.

Tuesday, September 28, 2010

SQL hell

Okay, so Microsoft sucks hard on this one:
KB968749 - SQL Server 2005 setup fails when MSXML Core Services 6.0 Service Pack 2 has already been installed

Solution: call support, pinky promise it'll be free...
Solution2: Google MSICUU2.exe. Some russian FTP mirrors still have it.

Another three hours well spent...

Monday, September 27, 2010

MSAV 2010


I recently found Microsoft Security Essentials, and gave it a try: nice, light, the first update takes forever plus one day. But after that, it's kinda cool, so I'll stick with it for a while.

Anybody remember Microsoft Antivirus? You know, msav.exe from way back in 1993. Hope this project will have a longer life...

On a related note: I just found out that you can run the Malicious Software Removal Tool anytime, called mrt.exe. Provides a nice GUI and all that jazz, although it's even slower than Spybot...

Sunday, September 26, 2010

John Wayne - Texas Funerals

(Turn me up)
I went into a bar just the other night.
Boy I got into one hell of a fight
I think I broke my jaw
The very next morning
Somebody stole my car
My wife left home about a week ago
She stole the kids and she took all my doe.
She pee’d on the carpet and she shot my horse
Now I think I’ve gone better to bad to worse.

Texas and whiskey;
Whiskey from Texas
Texas, Texas Whiskey

Well I went to Daddy’s funeral just the other day
It’s been just 3 short days since he’s passed away
Seems he died of having to much to drink
And that’s how his truck ended up in the drink

Texas and Whiskey
Funerals and Texas
Whiskey and funerals
Texas and Whiskey
Funerals; Texas Funeral

Monday, September 20, 2010

New Aleksandra Kaniak movie!

Check this out:
http://www.imdb.com/title/tt1067583/
On a related note, i watched Art of passion again...

ESXi, the root of all evil

ESXi in itself is a nice idea, a cool tool and everything. I really like it. Until stuff goes bad. And it goes bad.

Yesterday I had a great time, migrating an ESXi 3.5 installation from a RAID1 set on a HP DL360 G6 to a RAID5 on a HP DL360 G5. The G6 uses a P410i controller, while the G5 uses a P400, so I wasn't sure that it'll be a plug-n-play migration... But lo and behold, i tried it and it worked (after a block level full backup, of course). Migrating from RAID1 to 5 was just a cool run with dd, no sweat.

So it's done, I fire it up, ESXi boots nicely... and can't find it's own storage... After 30mins of quality Google time, this dude saved my ass:
http://cyborgworkshop.org/2008/09/14/adding-a-lun-with-an-existing-vmfs-into-an-esxi-node/

On a related note, ESXi sucks big time if you install it on the same disk as the storage. And since we don't use iSCSI or FC here, and I never succeeded in installing it on a USB drive, I had to do just that. That usually means that you can't upgrade your 3.5 to 4.0 for starters, and while I obtained 73GB free space from the RAID migration (which actually doubled my disk space), I can't partition and use it... So, guess I'll try the mentioned USB install method (just dd the little SOB to the drive and done). More info on that once it's done.

Wednesday, September 1, 2010

Another portal for nothing?

I started attending the Data Center University (by APC!) more than two years ago. Since than, I usually follow the activities of the APC/Schneider group, courtesy of their active email marketing.
I even attended some courses on the Energy University site, which is a nice project to make the world a better place. No harm in that.

Some time ago, Schneider started the Collaborative Project Portal http://collaborate.schneider-electric.com. Great name, maybe I can make the world a better place too, so let's sign up.

After the usual registration procedure, you are greeted by a screen of absolutely nothing, with a nice green "Create a new Project" button. With some digging around the site, you find the usual stuff: you can blog, upload documents, create a wiki, etc.

The first hard thing to achieve is to actually find another human being, and talk to her/him. Of course you can invite anyone, create groups and all, but what to do if you signed up by your lonely self? Should you request a random facilities expert from India to be colleagues?
After looking through the group chats, there's a new post every month. Can't say it's too fast to follow...

All in all, I think it's a great idea, but the Schneider guys made a great tool with no purpose. Let's see if someone can change that.

Wednesday, August 25, 2010

BCNE for cheap (maybe free?)

Good news: Brocade started a "Fast track" program for Cisco certified folks, so you can get the BCNE cert for USD99. It includes a web-based training program and a promo code for the VUE exam, so you get it free.
Plus: Brocade exams don't expire.
I think I'll look into this stuff.

Tuesday, August 17, 2010

Sexual hypocrite

Webcomic of the week: Treading Ground
http://www.treadingground.com/?p=195

ESD wrist strap for a living?

Since I started watching some Juniper hardware installation videos (and since I am a licensed hardware technician and all), I wanted to get an ESD wrist strap for daily work.
So I go to my favorite component store, where they tell me they are fresh out, come back next week. It'll cost me around 2500 HUF. Next week the same, repeated the process a few times, finally got bored.
Quite a few weeks later it hit me: eBay. The source of all shite. So I fire up ebay.co.uk, and Hongkong to the rescue: GBP 0.99, free shipping. That's like 1/10th of the price here.
Maybe I'll start importing this stuff for a living.

ZCNP IP DSLAM

Okay, most of the exam questions suck. Bad english, factual errors, subjective answers: repeat the exams a few times to get it right.
But at the end, you earn a sexy PDF...

Wednesday, August 11, 2010

Free as in beer

Surprise of the week: ZyXEL provides free networking certificates, namely the ZCNP. Both the exams and the online courses are free at http://education.zyxel.com.
The most interesting for me are the switching and the IP DSLAM courses and certs.
Be prepared though, these guys speak funny english...
More details if i pass the exams.

edit:
Use the notes, Luke!
Most of the material is on the notes tab, not on the slide. Also, the one who wrote the notes almost speaks proper english.

Sunday, July 4, 2010

eBay for fun

I just received the latest addition to my switch collection: the Intel 460T.

Official Intel documentation:
ftp://download.intel.com/support/express/switches/460/

And i found a password generator for this box:
http://redstack.net/blog/2008/05/19/intelr-switches-backdoor/


Also, i managed to corrupt the firmware of my Nortel Alteon iSD-302. Damn Gnome automounter...

Thursday, June 17, 2010

Counterfeit WIC-1T

My brand spankin' new (not) Cisco 1603R just arrived.., with a fake WIC-1T card.
I knew that the WIC-1ENET was a prime target for chinese garage operations, but this is news to me.
Compared to a genuine card it looks like crap, but it should work.

Guess who's back...

"It had been awhile. In fact, three hundred and sixty-five had come and went since that midnight run haulin' hog to Shakey Town on I-10."

Well, more than 3 years passed since kaniak.kicks-ass.net went down, but here we go again. If i find the old database, maybe i'll migrate the old entries to this site. We'll see.

On the Kaniak side, i'll see if i can host the pics and videos somewhere, since most of it is copyrighted stuff.

Anyways, i'b back -for better or worse-.