Steve's Blog

Xen, Asterisk, and a TDM400P

When you throw them all together, you have a nice virtualised VoIP server with excellent support for up to 4 FXO or 4 FXS modules per card! Although this seems quite simple, giving direct hardware access to a virtualised machine is not the most simple thing to do. This being the case, I’ve documented how to do it over here.

Let me know if there’s more that should be added!

X-Plane/MSFS/VATSIM/IVAO Australia charts Updated

It’s been a while since I’ve posted due to lots of work lately. For those interested, I’m in the middle of doing a 500-600 user VoIP rollout at work as well as the normal stuff. It takes a lot of time to get this stuff right ;).

In the mean time, Airservices Australia have released updates to their Australian DAPS (the SID/STARs for Australian Airports). To reflect this, I’ve updated my charts page with all the updated pages. It seems the biggest change that affects me from YMML is the DOSEL5 and LIZZI1 approach. Grab all the updates here.

Multiple PCM streams on Fedora Core (rawhide) using Alsa

Alsa has been a big step forwards for multimedia in Linux over the past few years, however there are still a number of tweaks that need to be done to optimise it fully. One of the things I found today was the capability to play multiple sounds at once. This comes in great when you’re using XMMS to play MP3s and still want to hear noises from programs such as gaim.

To enable this in Fedora Core, a little bit of tweaking is required to make it work. Firstly, you need to edit /etc/asound.conf to contain the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pcm.card0 {
    type hw
    card 0
}

pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer {
    type dmix
    ipc_key 1025
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 2048    #1024
        buffer_size 32768   #4096
        #periods 128
        rate 48000          #44100
    }

    bindings {
        0 0
        1 1
    }
}

After doing this, if you use esd in gnome to play the wonderful events such as warning beeps etc, you need to edit /etc/esd.conf to contain something like:

1
2
3
4
5
6
[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=

After this, reboot your PC, and away you go. Set everything such as gaim to use alsa (you may need to pick “command” and using “aplay %s” to make it work). Everything should be peachy from then on in!

Update: It seems this now works by default and was a bug in the setup for multi-soundcard systems on the particular version I was using during the Fedora 6 testing :)</body></html>

More problems with Powerbooks

Well, as if things weren’t bad enough with all the Superdrive issues that I’ve had, it’s now a possibility that my Powerbooks battery pack may explode. If you haven’t heard already, Apple is recalling around 1.8 million batteries made by Sony and used in Powerbook and iBook laptops.

This means that currently, my 1 year old G4 powerbook has: 3 dead pixels, a faulty SuperDrive, and a battery that could explode. Way to go Apple. At least they’re fixing the battery!