Setting Up Freeswitch On Debian 5 (Lenny) - Page 2


Enable the daemon.

vi /etc/default/freeswitch

and change the parameter to "true".


Start the freeswitch daemon:

/etc/init.d/freeswitch start

Basic configuration is done.

To verfiy if freeswitch is running/listening, run lsof command. You should see freeswitch listening.

lsof -i udp


Configuration layout

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


Creating a test extension:

Head over to this folder: /opt/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.

<user id="3333" mailbox="3333">
<param name="password" value="4321"/>
<param name="vm-password" value="1000"/>
<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"/>

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


/etc/init.d/freeswitch restart

Congratulations. You are done.



DB backend



Share this page:

0 Comment(s)