Freeswitch Module

From OpenSimulator

Revision as of 17:00, 17 April 2009 by Robsmart (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The FreeSwitch module enables voice in opensim with no changes required to the SL or Hippo clients (must be over 1.22 for SL and 0.5 for Hippo)


FreeSwitch Config

Install and compile Freeswitch, making sure you enable the xml_curl module and also the siren14 codec.

the xml_curl module configuration should point to an opensim region that has the freeswitch voice module enabled (voice also needs to be enabled in the estate setting for all regions)

example xml_curl.conf.xml


 <configuration name="xml_curl.conf" description="cURL XML Gateway">
 <bindings>
       <binding name="example">
               <param name="gateway-url" value="http://youropensimregion:9000/api/freeswitch-config" bindings="directory"/>
               <param name="disable-100-continue" value="true"/>
       </binding>
       <binding name="local">
               <param name="gateway-url" value="http://youropensimregion:9000/api/freeswitchdialplan.xml" bindings="dialplan"/>
               <param name="disable-100-continue" value="true"/>
       </binding>
 </bindings>
 </configuration>



OpenSim Config

Add the following section to OpenSim.ini. You will also need to enable voice in the regions estate settings. Make sure the freeswitch server is started BEFORE bringing the region up.

   [FreeSwitchVoice]
   enabled = true
   ;FreeSwitch server is going to contact us and ask us all
   ;sorts of things.
   freeswitch_server_user = freeswitch
   freeswitch_server_pass = password
   freeswitch_api_prefix = /api
   ;The  IP address of your opensim voice region
   freeswitch_service_server = youropensimexternalIP
   ;the port your region is running on
   freeswitch_service_port = 9000 
   ;your freewitch IP address
   freeswitch_realm = 192.168.0.2
   freeswitch_sip_proxy = 192.168.0.2:5060
   freeswitch_attempt_stun = false
   freeswitch_stun_server = 192.168.0.2
   freeswitch_echo_server = 192.168.0.2
   freeswitch_echo_port = 50505
   freeswitch_well_known_ip = 192.168.0.2
   freeswitch_default_timeout = 5000
   freeswitch_subscribe_retry = 120
Personal tools
General
About This Wiki