-
Book Overview & Buying
-
Table Of Contents
FreeSWITCH Cookbook
Most companies have some form of dial-by-name directory. This recipe will show you how to add a company directory to your FreeSWITCH installation using mod_directory.
Enable and build mod_directory by following these steps:
Open freeswitch_src/modules.conf in a text editor.
Uncomment this line:
#applications/mod_directory
Save the file and exit.
Linux/Unix users issue the proper make command:
make mod_directory-installAllow mod_directory to be loaded when FreeSWITCH starts:
Open conf/autoload_configs/modules.conf.xml in a text editor.
Uncomment this line:
<!--<load module="mod_directory"/>-->
Save the file and exit.
Restart FreeSWITCH.
Start fs_cli and issue the command show application.
You should see an application named directory in the list. Next we need to add a simple dialplan extension that will let us test:
Open conf/dialplan/default/01_Custom.xml in a text editor.
Add these lines:
<extension name="dial by name"> <condition field...
Change the font size
Change margin width
Change background colour