Sonntag, 6. Januar 2008

HOWTO_ Ringtones for Grandstream BT-101

Grandstream's VoIP-Phone BT-101 allows up to 192 kBytes of custom ringtones, divided into a maximum of three 64 kByte blocks. As it is using the ULAW compression, one block can be up to 8 seconds long, which allows the following ringtone combination:
  • 3 ringtones, each up 8 seconds long
  • 1 ringtone with up to 8 sec, 1 ringtone with up to 16 sec
  • 1 ringtone with up to 24 seconds
Generation
Grandstream supports two ringtone generation tools, one sox based for Linux and Solaris, and another one for Windows. I first tried the Windows tool, but you have to provide 16 bit, 8kHz mono WAV files, otherwise it fails with error. Additionally, sound quality was more than poor.
So I fell back to the Linux tool, for which I first had to install the distribution specific sox (apt-get install sox under Debian). Then I created a 16-bit, 44kHz stereo ringtone with 3,5 seconds, copied the file to the tool directory and typed the following command:
./sox.linux ring.wav ring.ring


Upload to phone
At boottime the phone connects to the configured TFTP update server and looks for updates - including ringtones. The custom ringtones have to be named ring1.bin, ring2.bin and ring3.bin. It first tries to download ring1.bin and installs it if found. Depending on that ringtone's length, it will continue looking for tone 2 and 3.
I renamed ring.ring to ring1.bin and copied it into an empty directory (I could also use ring3.bin, but I wanted to overwrite the first ringtone, the other one's were alright). I configured my TFTP-Server Pumpkin to use that directory, started it, reconfigured the BT-101 to use my local PC as TFTP-Server and rebooted the phone. The ringtone was immediately installed and I could selected it using the phone's menu.

TECH_ Sambashares with UTF-8

Debian running with Samba 3 and Windows XP client.

Configure Debian to use UTF-8 locale by typing dpkg-reconfigure locale and select de_DE.UTF-8 and enable it as default. Set LC_CTYPE in the file /etc/environment to de_DE.UTF-8. Relogin to enable the new settings.

Configure Samba by setting unix encoding to UTF-8 in the file /etc/samba/smb.conf and restart the daemon by typing /etc/init.d/samba restart.

If puTTy won't display umlauts or other non-ASCII characters, enable UTF-8 in Window -> Translation.

You still have files named in another encoding? Use the tool convmv to convert for example ISO-8859-15:
convmv -f ISO-8859-15 -t UTF-8 -r --notest /dir/to/convert/recursively > renamed_files.txt

Reflog

Informationstechnische Howtos, Hinweise und Merkwürdiges

Batchlib v1.0 2008-03-29

Aktuelle Beiträge

HOWTO_ O2 DSL Surf &...
Der O2 DSL Surf & Phone-Router ist für die...
cypressor - 12. Feb, 19:57
Uptweak Windows XP Home...
There are a lot of annoying limitations in Windows...
cypressor - 9. Okt, 19:30
BATCHLIB_ Batchlib package...
Download Batchlib package v1.0 (5 KB zip file) What...
cypressor - 29. Mrz, 19:10
BATCHLIB_ Batchlib library...
The batchlib library string.cmd is part of the batchlib...
cypressor - 29. Mrz, 18:10

Homepage Ticker

Links

Status

Online seit 4256 Tagen
Zuletzt aktualisiert: 28. Jun, 11:32
RSS XML 1.0 Button-Get-Firefox

batch
batchlib
howto
tech
video
Profil
Abmelden
Weblog abonnieren