Tuesday, June 30, 2009

My first ext4 dataloss!

I guess it was to be expected. Let's see:

1. Ubuntu Jaunty, kernel 2.6.29. Check.

2. An ext4 single partition (or at least a /home in a ext4 partition). Check.

3. Intel driver, using UXA. Check.

Bonus:

4. In a laptop after several sleep/power-up cycles. Check

5. Trying to save power by powering wireless up/down as needed. Check!!

Result: the laptop froze just as I had checked my last 5 minutes of work into Mercurial and was pushing it to my home server. Hard lockup. No emergency SysReq + Sync possible!! Upon reboot it was as if I had never saved the last 5 minutes of work.

Very interesting. Not much was lost and I could not detect any corruption. So I am kind of optimistic. I'll keep using ext4 for the time being.

I am considering making a fsync button, though!! ^_^

Thursday, January 1, 2009

Asterisk and a WGR614v9

I have a nice asterisk setup in a Buffalo Linkstation to get cheap international calls. It's worked nicely for several months.

On the other hand, the wireless router I used to have (a hand me down) had issues. A LAN port burned out, it provides 800.11b and the new laptop I have communicates poorly with it.

So with the new year I decided to get a new shiny WGR614 wireless router. Setting it up from my Linux network went fine. You are instructed to use http://www.routerconfig.net/ to get to the web setup provided by the router. So far so good.

But then Asterisk stopped working... strange. My VoIP provider (Sipphone) started giving 401 and 404 errors. As if my user and/or password were wrong. After many tries and false attempts to 'fix' asterisk and the router setup I stumbled on the answer.

Upgrade the firmware. That gives a nice new setting:

WAN Setup >> Disable SIP ALG


Voila!

Now I wonder. What was the router doing to mangle SIP packets such that other programs (Ekiga, for example) would work but not Asterisk?

But now it works, so I am happy.