Compile and Install FreeSWITCH & Sangoma_ISDN (FreeTDM)
FreeSWITCH Installation with Sangoma_isdn (FreeTDM)
Requirements:
- Mysysgit [Download]
- ToroiseGIT [Download]
- Microsoft Visual Studio [Download - Microsoft Visual C++ 2008 Express Edition]
- Wanpipe Windows Driver [Installation Guide and Driver]
- ISDN Signalling Module [Installation Guide and Module]
1) Go into the directory you would like the FreeSWITCH source to be downloaded to, then right click. From the new menu simply click on "Git Clone...".

2) In the URL box put the URL of the FS Git "git://git.freeswitch.org/freeswitch.git".

3) ToroiseGIT will then begin to clone the FreeSWITCH git.

4) Once the git clone is completed , you will see the screen below.

5) Next go into the FreeSWITCH folder and open the FreeSWITCH project file for your version of Visual Studio. If you are using the 2008 express version use the file called "Freeswitch.2008.express". Once the project is open just right click on it as shown below and select Build Solution from the menu. This will take a few minutes to build.

6) Open the command prompt and go to the card directory in the wanpipe driver you have installed previously on the system. Once in there run the command "Setup.exe install_devel_files" to install development files.
7) Once FreeSWITCH is built then go into the FreeSWITCH source directory again and then open libs\freetdm. Once in the Freetdm directory just simply open the project file for your version of Visual Studio. If you are using the 2008 express version use the file called "freetdm.2008". Once the project is open just right click on it and select Build Solution from the menu. This will take a few minutes to build.

7) Once the project is built just simply right click on the "ftmod_sangoma_isdn" and select build to build the sangoma_isdn module for freetdm.

8) In the FreeSWITCH directory go to "libs/freetdm/Debug/mod/" and copy everything there into "Debug/Mod" in the FreeSWITCH directory.
9) Next in the FreeSWITCH directory go to "libs/freetdm/Debug" and copy all the .pdb or program debug database files into "Debug/Mod" in the FreeSWITCH directory.
10) Next in the FreeSWITCH directory go to "libs/freetdm/Debug" and copy all the .dll files into "Debug" in the FreeSWITCH directory.
11) Next in the FreeSWITCH directory copy the file in "libs/freetdm/Debug/ftmod_wanpipe.dll" to "Debug/mod/" in the FreeSWITCH directory.
12) Next in the FreeSWITCH directory copy the file in "libs/freetdm/Debug/ftmod_sangoma_isdn.dll" to "Debug/mod/" in the FreeSWITCH directory.
13) Next in the FreeSWITCH directory go to "Debug" and copy all the .pdb or program debug database files into "Debug/Mod" in the FreeSWITCH directory.
14) Next in "C:\Program Files\sangoma\sng_isdn\lib" copy all " libsng_isdn.* " files to "Debug" in the FreeSWITCH directory.
15) Once all the files are copied just simply go into the FreeSWITCH directory then go to the "Debug" directory and run the file called "FreeSwitch.exe" to start FreeSWITCH.
16) To bring up the ISDN stack load the Freetdm module by running "load mod_freetdm" from the FreeSWITCH cli.
NOTE: You will also need freetdm.conf to be placed in FreeSWITCH Folder/Debug/conf/ and freetdm.conf.xml to be placed in FreeSWITCH Folder/Debug/conf/autoload_configs/. Sample configs are below.







