use Human::Brain
Wed, 30 Jun 2010
Routage des appels d'urgence
Version mise à jour d'un document que j'avais préparé dans le cadre d'améliorer le routage des appels d'urgence en France, proposant le concept d'une association dédiée.
posted: 6/30/2010 11:47:00 PM
tags: emergency
Mon, 07 Jun 2010
Title: CouchDB shared calendar
I've posted my version of jchrisa's Calendar CouchApp. It uses the new couchapp framework (evently, CouchDB sessions), CouchDB 0.11.0, and supports timezones, repeat events.
To get it:
git clone git://shimaore.net/git/cal2.git
You'll need to download and install CouchApp to use it.
posted: 6/07/2010 14:14:00 tags: couchdb, couchapp, calendarFri, 28 May 2010
Title: ejabberd configuration for dual-stack (IPv4, IPv6) host
%% Accept connections on the same port on IPv4 and IPv6:
{listen,
[
{{5222, "::"}, ejabberd_c2s, [ inet6,
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 524288},
starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
]},
{{5222, "0.0.0.0"}, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 524288},
starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
]},
{{5269, "::"}, ejabberd_s2s_in, [ inet6,
{shaper, s2s_shaper},
{max_stanza_size, 524288}
]},
{{5269, "0.0.0.0"}, ejabberd_s2s_in, [
{shaper, s2s_shaper},
{max_stanza_size, 524288}
]},
%% etc.
]}.
%% Try IPv6 first when doing s2s attempts:
{outgoing_s2s_options, [ipv6, ipv4], 10000}.
posted: 5/28/2010 12:52:00 PM
tags: ejabberd
Sat, 20 Feb 2010
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/2010 10:14:00 PM tags: freeswitch, frenchTue, 20 Oct 2009
ejabberd clustering
I used the excellent notes at the reference article. Here are additional notes for Debian:
- There's no need to modify /usr/sbin/ejabberd or /usr/sbin/ejabberdctl; the only changes should be in /etc/ejabberd/ejabberd.cfg and /etc/default/ejabberd
- I did "su ejabberd" instead of doing the testing under root (probably better, this way the database gets created with the proper userid). Also I only had to copy the .erlang.cookie file to /var/lib/ejabberd, no need to copy it under /root this way.
- The proper command to start erl (at step 4 on the second server) is then:
erl -sname ejabberd@jabber2 -mnesia dir \"$HOME\" \ -mnesia extra_db_nodes "['ejabberd@jabber1']" \ -s mnesia(assuming jabber1 and jabber2 are the servers' short names) - In /etc/default/ejabberd, the proper syntax is:
ERL_OPTIONS="-mnesia extra_db_nodes ['ejabberd@jabber1'] -s mnesia"
Extra double-quotes kept me busy for a while.
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 AMTue, 29 Sep 2009
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