http://wiki.freeswitch.org/wiki/FreeTDM
Change to a directory where the FreeSWITCH sources will be compiled
cd /usr/srcClone the FreeSWITCH repository into the above directory
git clone https://github.com/signalwire/freeswitch.gitPerform an initial bootstrap of FreeSWITCH so that a modules.conf file is created
./bootstrap.shAdd the mod_freetdm to modules.conf so that an out-of-source build will be performed
mod_freetdm|https://github.com/freeswitch/freetdm.git -b masterConfigure, build and install FreeSWITCH
./configure
make
make installThe following commands will build and install only mod_freetdm
make mod_freetdm
make mod_freetdm-installTo run mod_freetdm within FreeSWITCH, perform the following two steps
Add mod_freetdm to freeswitch/conf/autoload_configs/modules.conf.xml
Add freetdm.conf.xml to freeswitch/conf/autoload_configs