Freeswitch

From Smop.co.uk

Jump to: navigation, search

Contents

install freeswitch

  • Add deb repo:
  • apt-get install freeswitch
  • get some more packages:
    • apt-get install freeswitch-asr-tts freeswitch-codec-passthru-amr freeswitch-codec-passthru-g7231 freeswitch-codec-passthru-g729 freeswitch-lua freeswitch-perl freeswitch-python freeswitch-spidermonkey
    • Notes that freeswitch-asr-tts clashes with freeswitch over /opt/freeswitch/conf/autoload_configs/pocketsphinx.conf.xml (they are identical)
    • Change ESL password in /opt/freeswitch/conf/autoload_configs/event_socket.conf.xml
  • edit /etc/default/freeswitch and enable it
  • /etc/init.d/freeswitch start

install bluebox gui

  • warning - it chgrp/mod's all config + sounds)
  • git clone git://source.2600hz.org/bluebox.git bluebox
  • /opt/bluebox/preinstall.sh
    • Web user name [www-data]?
    • Softswitch conf dir [/opt/freeswitch/conf]?
  • Would you like to update odbc.ini permissions (Y/n)? n
  • Edit /opt/bluebox/bluebox/config/database.php if required
    • CREATE DATABASE bluebox;
    • GRANT ALL ON bluebox.* TO 'bluebox'@'127.0.0.1' IDENTIFIED by '...';"
  • apt-get install php5-curl (otherwise you get a "reduced functionality" warning)
    • You must restart (not just reload) apache)
  • Add something like this to apache:
Alias /bluebox /opt/bluebox
<Directory /opt/bluebox>
  Allow from all
</Directory>
  • http://servername/bluebox
    • Accept license, next
    • Change timezone (Europe/London), install sample data, disallow statistics submission, next
    • Set admin account (root@example.com), next
    • Telephony driver = Freeswitch
    • Conf Directory = /opt/freeswitch/conf
    • Global Sound File Directory = /opt/freeswitch/sounds
    • ESL Auth should match the password in event_socket.conf.xml
    • Next
      • This errored "Unable to access /opt/freeswitch/conf"
      • chmod 775 /opt/freeswitch/conf; chgrp www-data /opt/freeswitch /opt/freeswitch/conf /opt/freeswitch/sounds
        • probably better to use a freeswitch group really (but freeswitch uses "daemon" group)

bluebox config diffs vs freeswitch

  • autoload_configs/bluebox_odbc.conf.xml (ODBC config - confidential)
  • autoload_configs/acl.conf.xml
    • removes sample "lan"
    • removes sample "domains"
    • adds five deny (net_list_1-5)
    • adds net_list_6 (allow, net_list_item_1, 0.0.0.0/0)
  • autoload_configs/conference.conf.xml is removed
  • autoload_configs/ivr.conf.xml is removed (loads ../ivr_menus)
  • autoload_configs/locations.xml is added (location_1=i.p.addr.ess)
  • autoload_configs/xml_cdr.conf.xml is removed (CDR curl logger)
  • dialplan/bluebox_dialplan.xml is added
  • directory/default.xml differs (groups removed, 2001-2006 hardcoded)
  • sip_profiles/bluebox_sipinterfaces.xml is added
  • sip_profiles/external.xml, internal.xml, internal_ipv6.xml removed
  • freeswitch.serial is added (tag number?)

notes

  • change default_password in vars.xml

SIP clients

  • Twinkle:
    • starts okay but dreadful quality after 2secs
  • Ekiga:
    • Loop detected
      • ifconfig br0 down (thanks Neil!)
  • Xlite:
    • Never starts (running on 64-bit box)
  • Xlite (mac)
    • Works but can't initiate call
Personal tools