Los paquetes necesarios para compilar e instalar, ya deberíamos tenerlos si en alguna ocasión hemos instalado el asterisco.
Descargamos, compilamos e instalamos.
wget http://files.freeswitch.org/freeswitch-1.0.4.tar.gz tar xvfz freeswitch-1.0.4.tar.gz cd freeswitch-1.0.4 ./configure make make install make uhd-sounds-install make uhd-moh-install make hd-sounds-install make hd-moh-install make samples
Y echo esto, lo ejecutamos.
trantor:~# /usr/local/freeswitch/bin/freeswitch FreeSWITCH Version 1.0.4 (exportado) Started. Crash Protection [Disabled] Max Sessions[1000] Session Rate[30] SQL [Enabled] freeswitch@trantor.demerzel.org>
De manera predeterminada ya contamos con cierto número de usuarios creados así como de un dialplan ya configurado.
gabriel@trantor:~$ ls /usr/local/freeswitch/conf/directory/default 1000.xml 1002.xml 1004.xml 1006.xml 1008.xml 1010.xml 1012.xml 1014.xml 1016.xml 1018.xml brian.xml example.com.xml 1001.xml 1003.xml 1005.xml 1007.xml 1009.xml 1011.xml 1013.xml 1015.xml 1017.xml 1019.xml default.xml
Configuramos de manera rápida un softphone con el usuario 1000, clave 1234 y marcamos 9000 para escuchar algo de música en espera.
freeswitch@trantor.demerzel.org> 2009-10-06 12:54:25.958754 [NOTICE] switch_channel.c:602 New Channel sofia/internal/1000@192.9.215.24 [9c9fbe5a-60da-454e-9990-41d3319a6a0d] 2009-10-06 12:54:25.966756 [INFO] mod_dialplan_xml.c:315 Processing Gabriel->9000 in context default 2009-10-06 12:54:26.50745 [INFO] switch_core_session.c:1392 Sending early media 2009-10-06 12:54:26.58751 [INFO] mod_sofia.c:1506 Ring SDP: v=0 o=FreeSWITCH 1254825366 1254825367 IN IP4 192.9.215.24 s=FreeSWITCH c=IN IP4 192.9.215.24 t=0 0 m=audio 26300 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 a=sendrecv 2009-10-06 12:54:26.58751 [NOTICE] mod_sofia.c:1509 Pre-Answer sofia/internal/1000@192.9.215.24!
Seguiremos investigando más acerca de este prometedor software.