Freeswitch


Install Freeswitch on your Ubuntu Server with one command

From your root, enter the following line

wget -qO- http://installfs.tomcarlson.com | /bin/bash

Issue a command to freeswitch from the command line

#!/bin/bash
# fscli.sh
# Usage: ./fscli.sh sofia status

if [ $# -eq 0 ]
then
/usr/local/freeswitch/bin/fs_cli
else
COMMAND="/usr/local/freeswitch/bin/fs_cli -x \""$@"\""
eval $COMMAND
fi

SIP Softphone for Windows

I just installed Blink. You can get Windows/Linux Help here.

I'm struggling a bit right now. I'm unable to call my PC except immediately after I force it to re-register. Blink seems to require a STUN server to traverse the firewall at my office. There's no way to actually specify a stun server. Instead, it queries my freeswitch server for a SRV record _stun._udp.my_fs_server.com and that SRV record is supposed to point it to a STUN server.

So, while Blink may be harder to use than some, it's forcing me to set up my freeswitch server right. I've added _stun._udp.my_fs_server.com and _stun._tcp.my_fs_server.com port 3478 to point to stunserver.org At some point, I intend to run my own stun server.

I'm learning a lot from the logs that Blink produces.

  • Linux: ~/.blink/logs/config
  • Windows XP: C:\Documents and Settings\USERNAME\Application Data\Blink\
  • Windows Vista and 7: C:\Users\USERNAME\AppData\Roaming\Blink\

After I added SRV records for my freeswitch server, Blink seems to be accepting calls well.

  • _sip._tcp my_fs_server.com 10 5 5060 my_fs_server.com
  • _sip._udp my_fs_server.com 10 5 5060 my_fs_server.com
  • _stun._tcp my_fs_server.com 10 5 3478 stunserver.org
  • _stun._udp my_fs_server.com 10 5 3478 stunserver.org

Chat

Trying to get this to work from fs_cli. Not working with Blink for some reason, but freeswitch claims it sent it.

chat sip|1000@my_fs_server.com|1001@my_fs_server.com|Hello, what's going on?

Presence

Also trying to get this to work from fs_cli. Also not working with Blink for some reason, but freeswitch claims it sent it.

presence in 1001@my_fs_server.com|dnd|Do not disturb.
presence out 1000@my_fs_server.com|unavailable|'Currently out for a pot of hot coffee.'