Tuesday, December 6, 2011

FreeSWITCH 1.0.6 Official Release


Here is the much awaited FreeSWITCH™ latest release 1.0.6 tarball located below:
Follow the instructions below to be a proud user:

wget http://files.freeswitch.org/freeswitch-1.0.6.tar.gz
tar xvfz freeswitch-1.0.6.tar.gz
cd <freeswitch dir>








./configure
make
make install




Starting in Unix-based Systems

cd /usr/local/freeswitch/bin
./freeswitch



Configuration layout

 FunctionLocation 
 SIP accounts /usr/local/freeswitch/conf/directory/*.* 
 VoIP Gateways (Trunks) /usr/local/freeswitch/conf/sip_profiles/external 
 Dialplan /usr/local/freeswitch/conf/dialplan/default/* 
 Configure Telephony Cards /usr/local/freeswitch/conf/autoload_configs/openzap.conf.xml



Locations:
      Selected layout:

      prefix:          /usr/local/freeswitch
      exec_prefix:     ${prefix}
      bindir:          ${exec_prefix}/bin
      libdir:          ${exec_prefix}/lib
      modulesdir:      /usr/local/freeswitch/mod
      sysconfdir:      /usr/local/freeswitch/conf
      runtimedir:      /usr/local/freeswitch/run
      logfiledir:      /usr/local/freeswitch/log



Creating a test extension:

Head over to this folder: /usr/local/freeswitch/conf/directory/default. This folder contains the extensions parameters for the default/Internal profile.


cd /opt/freeswitch/conf/directory/default

We will create an extension 3333 with password 4321.



vim /usr/local/freeswitch/conf/directory/default/3333.xml

Paste this into it.
<include>
  <user id="3333">
    <params>
      <param name="password" value="4321"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="3333"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Extension 3333"/>
      <variable name="effective_caller_id_number" value="3333"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>




Save & exit.




chown freeswitch:www-data 3333.xml




Configure your hard/softphone & the phone LCD/interface should state that you have 1 registered account. If it doesn't restart the freeswitch or more elegantly reload the configuration of freeswitch.

Reloading configuration. Run this on the freeswitch cli (i.e /opt/freeswitch/bin/fs_cli):

freeswitch@internal> reloadxml

or

/etc/init.d/freeswitch restart

Congratulations. You are done.


Shutting Down FreeSWITCH™

To exit the FreeSwitch CLI, simply type 'shutdown' or '...'. Note, this will shutdown FreeSwitch. If you do not wish to shutdown FreeSwitch, it is suggested to start the process inside of a "screen" session; In Windows, FreeSWITCH™ may be started as a service. It is not recommended that you start FreeSWITCH™ as a service until you are certain your configuration is valid. Also if started from a remote login session (IE SSH) it is not advised to terminate the connection with FS left in the foreground.

No comments:

Post a Comment