Archive Page 12

Here’s how you can make and receive Skype calls from Asterisk without purchasing Skype for Asterisk from Digium. We’ll use stsProxy and SipToSis. The main benefits of this method is that you can access Skype as a normal user, you don’t have to create a business user for the SIP interface needed by Asterisk, and you can have as many Skype “channels”, as you want, for free.

In this example we will use 2 Skype users with 2 channels for each user. The whole system will look like this:

» …continue reading ‘Skype for Asterisk howto’

Here’s how you can record calls to mp3 files with Asterisk.

Insert these to extensions.conf:

1
2
3
4
5
6
7
8
9
[globals]
MONITOR_EXEC=/usr/local/bin/asterisk-wav2mp3

[macro-record]
exten => s,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}-${MACRO_CONTEXT}-${DIALEDPEERNUMBER})
exten => s,n,Set(POSTFIX=$["${CALLFILENAME}" =~ "\/([0-9a-zA-Z#_\-]+)$"])
exten => s,n,Set(CALLFILENAME=$["${CALLFILENAME}" : "([0-9a-zA-Z#_\-]+)"]${IF($[${LEN(${POSTFIX})}=0]?:
_${POSTFIX})})
exten => s,n,Monitor(wav,${CALLFILENAME},m)

Recording start example:
exten => 555,1,Dial(SIP/1234,,M(record))

The script asterisk-wav2mp3 can be downloaded here. Make sure it’s runnable (chmod +x asterisk-wav2mp3). This script creates a stereo mp3 out of two mono wav files. You’ll need SOX and Lame encoder for this to work.

If you have 2 or more outbound lines, and want to prioritize them, use this macro:

1
2
3
4
5
6
7
exten => 1234,1,Macro(dialWithFallback,555666)

[macro-dialWithFallback]
exten => s,1,Dial(SIP/line1/${ARG1})
exten => s,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?tryLine2)
exten => s,n,Hangup()
exten => s,n(tryLine2),Dial(SIP/line2/${ARG1})

In this case, 555666 will be called first on line1, and if it fails (channel unavailable), it will be called using line2.

Figyelés

Samsung Galaxy S lagfix

I have an SGS since September and it was often pretty slow, especially when installing/upgrading applications in the Android Market. I’ve found out that the problem is with the RFS file system on the phone.

First I updated my phone to Android 2.2 using Kies. This installed the JPH 2.2 firmware. Then I rooted my phone using this method. After rooting, I’ve installed the Voodoo kernel (5.2 stable) using Odin (this is the phone flashing software for Windows, downloadable from several sites, look for v1.3).

When the phone rebooted, I got the Voodoo kernel error message: system is not available. I backed up everything with the built-in ClockWorkMod backup tool and flashed the phone with an original JPH systemfs.rfs which I downloaded from samfirmware.com (2.2 JPH firmware .tar contains this file). After this I restored my data using ClockWorkMod and booted the phone, now the RFS -> ext4 conversion worked fine, but several programs didn’t work, like the camera, and I had no ring or alarm sounds played when needed.

The problem was with that the Voodoo kernel doesn’t support JPH firmwares, so I flashed the phone with the JPY 2.2.1 firmware (excluding the kernel). After flashing and booting the phone, system partition RFS -> ext4 conversion was done and everything worked perfectly. No ClockWorkMod restore was needed, but I lost most of my apps preferences (but no data was lost, I still have my phonebook, messages, wallpaper etc.).

Now my phone runs about 2-3 times faster, everything loads up instantly and the lag is almost completely gone. It feels like switching from a Pentium3 750mhz box to a Pentium4 2.4ghz one :)

Tulip experiment

Which substance makes a flower to live longer? Our highly experienced science team tested adding the following to a glass of water: 2 small drops of sodium hypochlorite, salt, nothing (clean water), commercial plant food, sugar, and copper (old Hungarian 2 forint coin).

Let’s see which flower lives longer!

1st day:

3rd day:

4th day:

6th day:

Tada.wav: clean water pwnz all, no need to hassle with other shit.

Panni’s Xmas party

My bday party

Fondue

ZMNE

The new room of the HA5KDR radio club at the National Defense University.

About me

Nonoo
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with. ... »

Twitter

Listening now

My favorite artists