Notes
Technology and OpenSource Notes
<< March 2010 >>
Sun Mon Tue Wed Thu Fri Sat
 
     

Notes

Sat, 20 Feb 2010

French for FreeSwitch

After Neuronnexion paid for Philippe Leroy and Sibylle Luperce to record french audio prompts for FreeSwitch, I updated mod_say_fr to match them.

There are more audio files to come, but I need to come up with proper filenames for them. I'll add them to the Archive.org repository at http://www.archive.org/details/FrenchAudioFilesForFreeswitch once this is ready.

We recorded non-France prompts in the archive, like septante, octante, nonante. I don't know the different locales (Belgium, Canada, ...) well enough to be able to do anything useful with them; but if someone does I'll be happy to update mod_say_fr to match. We could for example use a LOCALE channel variable to track the actual locale; this would also allow to use the proper monetary units by default.

posted: 2/20/2009 10:14:00 PM tags: freeswitch, french

permanent link

Tue, 20 Oct 2009

ejabberd clustering
I used the excellent notes at the reference article. Here are additional notes for Debian:

Also the primary server is the one where the web UI should be used; the other one(s) replicate the database.

Here's my complete /etc/default/ejabberd on jabber1:

SMP=auto
ERLANG_NODE=ejabberd

Here's my complete /etc/default/ejabberd on jabber2:

SMP=auto
ERL_OPTIONS=" -mnesia extra_db_nodes ['ejabberd@jabber1'] -s mnesia "
ERLANG_NODE=ejabberd

(If I get time I might rewrite this article into complete instructions using the reference article as a basis.)

posted: 10/20/2009 11:40:00 AM

permanent link

Tue, 29 Sep 2009

Bad Robot

Building on the example script in AnyEvent::XMPP I built a small robot which can send messages to either an individual user or a jabber chat room, from either stdin or a fifo. We use this at work to get alerts into a chat room we use for support activities.

Update: a more complex solution is used as the main driver for xmpp-agent.pl in CCNQ2.0

posted: 9/29/2009 03:17:00 AM

permanent link

Mon, 28 Sep 2009

Huawei E160E (Orange 3G+) on Debian Lenny
As seen on the Internet:

# /etc/chatscripts/orange
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT ERROR
'' ATZ
# Check SIM pin should return ready
OK-AT-OK 'AT+CPIN?'
## OK-AT-OK 'AT+CPIN="...."'
OK-AT-OK 'AT+CGDCONT=?'
OK-AT-OK 'AT+CGATT=?'
OK-AT-OK 'AT+CGREG=?'
# Verify we are connected to a network (will show the network name)
OK-AT-OK 'AT+COPS?'
OK-AT-OK 'AT+CGDCONT=3,"IP","orange.fr"'
OK-AT-OK 'AT&FE0Q0V1'
OK-AT-OK 'ATD*99***3#'
CONNECT ""
and
# /etc/ppp/peers/orange
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/orange"
debug
/dev/ttyUSB0
user "orange"
password "orange"
defaultroute
noipdefault
noccp
novj
then:
pon orange
(I'm not 100% sure "noccp" and "novj" are needed, but it works.)

Update: I've since installed Ubuntu "Netbook" on my Asus EeePC; the Huawei key is recognized and proper scripts provided for Orange.fr out of the box.

posted: 9/28/2009 06:15:00 AM

permanent link

Fri, 25 Sep 2009

Changing timezone in Debian

dpkg-reconfigure tzdata
posted: 9/25/2009 03:18:00 AM

permanent link

Mon, 07 Sep 2009

Xen and VLANs

Nothing you can't find elsewhere on the Internet in this post, just taking some notes.

This is for Debian Lenny (Xen 3.3). The idea is to connect eth0 to a switch that supports VLANs. The native VLAN is used, along with other VLANs.

Update: You must have an IP address specified for your eth0 interface. I lost a couple servers during their installation phase that way.

posted: 9/07/2009 06:05:00 AM

permanent link