Thank you for the pointer to the script, I also found this http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso both of which should get me started.
Meanwhile, if anybody is interested in using the binary tar file I built, please follow the link to my Google Drive folder:
https://drive.google.com/folderview?id=0BynKhKMPo3RbMVRfeGVoR1VzZ0E&usp=sharing
Installation:
pfsense# mv freeswitch_071813.tbz /usr/local pfsense# mv freeswitch.sh /usr/local/etc/rc.d pfsense# chmod a+x /usr/local/etc/rc.d/freeswitch.sh pfsense# cd /usr/local pfsense# tar xvjf freeswitch_071813.tbz pfsense# pkg_add -r ncurses jpeg jbigkitLast step is important as freeswitch depends on couple of additional shared libraries that are not part of the pfsense 2.1 RC0 dist. You can verify that there are no missing libraries by:
pfsense# cd /usr/local/freeswitch/mod pfsense# ldd ./mod_spandsp.so ./mod_spandsp.so: libfreeswitch.so.1 => /usr/local/freeswitch/lib/libfreeswitch.so.1 (0x800f2c000) libthr.so.3 => /lib/libthr.so.3 (0x800875000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x8012a5000) librt.so.1 => /usr/lib/librt.so.1 (0x8013c5000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x8014ca000) libm.so.5 => /lib/libm.so.5 (0x8015ed000) libjbig.so.1 => /usr/local/lib/libjbig.so.1 (0x80170d000) libz.so.5 => /lib/libz.so.5 (0x80181a000) libutil.so.8 => /lib/libutil.so.8 (0x80192f000) libssl.so.6 => /usr/lib/libssl.so.6 (0x801a3f000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x801b94000) libncurses.so.5.9 => /usr/local/lib/libncurses.so.5.9 (0x801e36000) libjpeg.so.11 => /usr/local/lib/libjpeg.so.11 (0x801f55000) libodbc.so.2 => /usr/local/lib/libodbc.so.2 (0x80208b000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x8021fb000) libc.so.7 => /lib/libc.so.7 (0x800648000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x8023f8000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x802607000) libtinfo.so.5.9 => /usr/local/lib/libtinfo.so.5.9 (0x802715000)