A short foreword:
Many installed PBX’s are capable of H.323, but it will be difficult to upgrade them to understand SIP. So a challenge to interconnect sipx with existing PBX via H.323 protocol appears. Below is an example implementation via freeswitch/mod_h323.
The principal idea (Thanks Josh) of how to do it documented here: http://wiki.sipfoundry.org/display/sipXecs/Custom+FreeSWITCH+programming
The goal is to make the following scheme to work.
sipX =====sip===== FS =====h323===== PBX
- Compile FS with mod_h323 on the sipx server.
- Create separate FS sofia profile and dial plan.
- Configure sipx dialplan.
Step 1. Compile FS with mod_h323.
The main idea of recompiling FS on the sipx server is documented here:
The difference is that before actually compiling FS with mod_h323 one should compile prerequisite libraries (ptlib, and h323plus). It is documented here: http://wiki.freeswitch.org/wiki/Mod_h323
So the whole sequence will be:
- Download FS source http://wiki.freeswitch.org/wiki/Download_FreeSWITCH
- Compile ptlib and h323plus libraries as described in http://wiki.freeswitch.org/wiki/Mod_h323
- In FS source directory edit file
- Configure FS with different prefix like this:
make, verify that mod_h323 is compiled.
make installto install FS into configured “prefix” directory.
- Edit file
/usr/bin/freeswitch.shso that sipx startup scripts will start this newly compiled FS.
/usr/local/freeswitchshould be changed to
/usr/local/freeswitch_customon lines 47, 118, 120:
- Backup original
/usr/bin/freeswitch.shfile with different name, you’ll be able to return to default FS instance at any time.
Now you should be able to stop old and then start new FS instance by