OpenWrt Forum Archive

Topic: FreeSWITCH package

The content of this topic has been archived between 30 Mar 2018 and 29 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

mazilo wrote:

BTW, do you have a patch to compile this zrtp library agains freeswitch?

You can use the following to patch the pre7 patch.
http://openwrt.pastebin.com/m575fb696

I changed the start up script boot time from 50 to 90 since it was interfering with dnsmasq and also redirected log and db output to /tmp to prevent unnecessary flash writes.

EDIT:  It's running, but I have yet to register anything or make calls.

(Last edited by KillaB on 3 Jun 2009, 07:33)

Hi KillaB,

I was trying to learn this cross-compiling OpenWRT on Ubuntu 8.09. I was wondering whether you or other guys can help me and others,

1. do a video screen capture of steps to cross compile a openwrt image for broadcom 47xx?
2. do a video scree capture of steps to compile an ipkg package. let's take freeswitch as an example.
3. if we need use external USB flash, how do we make chages to use that to install new packages.

I fee it's difficult to get a hang on this and if there's viedo screen capture, it probably helps me understand more.

I know that you guys don't have much time, but, just wondering whether you guys can help out and do this kind of knowlege transfer.

great appreciation!

peng

Peng,

If you know how to compile openwrt, adding another package to compile is as simple as running a make menuconfig to select the package as a module or built-in with firmware.

HI Mazilo,

would there be a choice to make an either built-in with firmware or independent .ipk?

I remember that i tried compiling successfully 2 or 3 years ago, but, I never get a good hang on this. I am still learning linux and would appreciate that somebody here to spare some efforts in creating a visual learning guide (either a screen capture video or pure screen capture), so I can follow and learn.

1. to compile a base OpenWRT (like those published in OpenWRt download page)
2. to compile a,say Peng's OpenWRT with my selected package from OpenWRT's package pool.
3. to compile a,say Peng's OpenWRt with my selected package from source package of others, like, RTPproxy, OpenSER, FreeSwitch, etc.
4. to compile an independent IPK for certain platform ,say, Broadcom47xxx.

Appreciate your help.
Peng

I finally managed to debrick my WGT634U device. Since then, I have managed to add a USB partition and configured OpenWRT to boot off from the USB partition on my WGT634U using instructions here. Now, my WGT634U device has plenty of disk/swap spaces to run and/or host freeswitch. However, when I tried to execute /etc/init.dfreeswitch start, I got the following error messages:

BusyBox v1.14.4 (2009-11-08 15:30:32 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r18352) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@WGT634U:~# /etc/init.d/freeswitch start
Error: stacksize 2097151 is too large: run ulimit -s 240 or run /usr/bin/freeswitch -waste.
auto-adjusting stack size for optimal performance....
Aborted

root@WGT634U:~# /usr/bin/freeswitch -waste
Aborted

root@WGT634U:~# ulimit -s 240
root@WGT634U:~# /etc/init.d/freeswitch start
Aborted

As you can see from the above, both /usr/bin/freeswitch -waste and/or ulimit -s 240 failed to launch freeswitch.

FYI, I used and compiled from very recent OpenWRT SVN trunk codes (r18352) for OpenWRT + freeswitch. I sure will appreciate if anyone out here can help me to resolve this issue.

Hi, all... just tried to compile Freeswitch for the brcm63xx using the wiki instructions and downloaded package files and got to the following error:

/bin/sh /Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr/libtool --silent --mode=link  mips-openwrt-linux-uclibc-gcc   -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -msoft-float  -DHAVE_CONFIG_H -D_REENTRANT -D_GNU_SOURCE  -I/Users/marca56/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/include -I/Users/marca56/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/include -I/Users/marca56/openwrt/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/Users/marca56/openwrt/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/include  -I/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/include -I/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/include/private  -I/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr/include  -I/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/xml/expat/lib  -version-info 2:8:2   -L/Users/marca56/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib -L/Users/marca56/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/lib -L/Users/marca56/openwrt/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/Users/marca56/openwrt/staging_dir/toolchain-mips_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -Wl,-rpath-link="/Users/marca56/openwrt/staging_dir/target-mips_uClibc-0.9.30.1/usr/lib" -o libaprutil-1.la -rpath /usr/lib crypto/apr_md5.lo crypto/uuid.lo crypto/apr_sha1.lo crypto/getuuid.lo crypto/apr_md4.lo encoding/apr_base64.lo hooks/apr_hooks.lo misc/apr_reslist.lo misc/apr_rmm.lo misc/apr_date.lo misc/apu_version.lo misc/apr_queue.lo uri/apr_uri.lo xml/apr_xml.lo strmatch/apr_strmatch.lo xlate/xlate.lo   -luuid -ldl -lm -lcrypt  -L/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/xml/expat/lib /Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/xml/expat/lib/libexpat.la /Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr/libapr-1.la -luuid -ldl -lm -lcrypt
libtool: link: cannot find the library `/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/xml/expat/lib/libexpat.la' or unhandled argument `/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/libs/apr-util/xml/expat/lib/libexpat.la'
make[5]: *** [libaprutil-1.la] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [libs/apr-util/libaprutil-1.la] Error 2
make[2]: *** [/Users/marca56/openwrt/build_dir/target-mips_uClibc-0.9.30.1/freeswitch-1.0.4/.built] Error 2
make[1]: *** [package/feeds/packages/freeswitch/compile] Error 2
make: *** [package/freeswitch-compile] Error 2
marca56:openwrt marca56$     

Is this a known bug and what would you suggest to move further?

BTW... this is is from the most recent trunk....

Thanks.

marc.

(Last edited by marca56 on 11 Nov 2009, 01:01)

Bumped. Anyone to help?

Mazzilo:

I decided to try OPKG on the buildbot binaries. They load properly but now I have the same issues that you reported.

I think there is an issue with the binary. Did you build your package from source?

marc.

marca56 wrote:

Did you build your package from source?

Yup and I built/compiled my own FreeSwitch + all supporting packages + firmware for my WGT634U device. I am hoping Zandbelt sees this and is able to help.

I have run strace freeswitch -conf /etc/freeswitch -mod /usr/lib/freeswitch -db /tmp/freeswitch/db -log /tmp/freeswitch/log > /tmp/freeswitch.strace.out. I don't suppose it is pruden to post a 14KB+ strace output file here; however, if anyone is interested to investigate why my freeswitch called ABORT, I will be more than happy to provide it through an e-mail.

Recent update on OpenWRT Makefile for FreeSwitch solved the problem I mentioned above. FreeSwitch v1.0.4 is now able to run on my WGT634U. I am not so excited with this because FreeSwitch  eats up a lot of RAM and CPU resources.

Hi, Mazilo:

1. what did you change in the makefile and can you post it here?
2. compared to Asterisk, how much more memory and footprint does Freeswitch take and are the modules you selected roughly the same?

Thanks.

marc.

marca56 wrote:

1. what did you change in the makefile and can you post it here?

I did not make any changes, except just did a scripts/feeds update on the root directory of my local OpenWRT SVN trunk to update all packages, including FreeSwitch (FS), in the feeds directory.

2. compared to Asterisk, how much more memory and footprint does Freeswitch take and are the modules you selected roughly the same?

First, I have not tried nor installed Asterisk on my WGT634U, yet. Also, I installed the default (not minimal) FS package. Then, I captured the process activities using top utility before/after FS was launched and excerpted both output below:

Before FS was launched:

Mem: 8152K used, 21360K free, 0K shrd, 164K buff, 1348K cached
CPU:   0% usr   0% sys   0% nic  98% idle   0% io   0% irq   0% sirq
Load average: 0.07 0.34 0.29 1/40 2065
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 2065  2063 root     R     1420   5%   1% top
  645     1 root     S     1416   5%   0% telnetd -l /bin/login.sh
  609     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  606     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  607     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  608     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  604     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  615     1 root     S     1516   5%   0% /bin/sh /usr/lib/ddns/dynamic_dns_upd
  372     1 root     S     1428   5%   0% syslogd -C16
 2055   645 root     S     1428   5%   0% /bin/ash --login
    1     0 root     S     1424   5%   0% init
  360     1 root     S     1424   5%   0% init
  374     1 root     S     1412   5%   0% klogd
 2063  2055 root     S     1412   5%   0% /bin/sh /usr/sbin/drop-caches
 2040   606 root     S     1412   5%   0% sleep 600
 2044   609 root     S     1412   5%   0% sleep 600
 2043   608 root     S     1412   5%   0% sleep 600
 2053   615 root     S     1412   5%   0% sleep 600
 2054   607 root     S     1412   5%   0% sleep 600
 2051   604 root     S     1412   5%   0% sleep 600

After FS was launch:

Mem: 22052K used, 7460K free, 0K shrd, 164K buff, 4756K cached
CPU:  30% usr  33% sys   0% nic  35% idle   0% io   0% irq   0% sirq
Load average: 1.27 0.96 0.57 1/63 2224
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 2176  2144 root     S    19536  66%  20% /usr/bin/freeswitch -conf /etc/freesw
 2175  2144 root     S    19536  66%  20% /usr/bin/freeswitch -conf /etc/freesw
 2157  2144 root     S    19536  66%  11% /usr/bin/freeswitch -conf /etc/freesw
 2185  2144 root     S    19536  66%  10% /usr/bin/freeswitch -conf /etc/freesw
 2177  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2145  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2178  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2143  2140 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2163  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2161  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2154  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2158  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2150  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2151  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2144  2143 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2165  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2172  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw
 2153  2144 root     S    19536  66%   0% /usr/bin/freeswitch -conf /etc/freesw

If you compare the two excerpts as shown above, you will notice, when FS is fully loaded, FS takes more RAM and CPU resources.

hello,

I need a ip voice app (client) for my mips Openwrt platform. I have been trying to compile linphone, but i have had a lot of problems, and until now i failed!... i wonder if with freeswitch (ipk packages availables) i can do a softphone like linphone, is that posible?... and do you know some documentation about it?

alejo:

In FS, there is a subproject for FSComm, which is a SIP endpoint (e.g., softphone) that uses the FS core components and has the start of a nice GUI. For OpenWRT, we don't include it because in our case, we are working on a PBX, not a softphone or other endpoint. I think it should be straightforward to actually include it for your purposes with a little hackery.

marc.

marc,

i have been trying to hack linphone, and i couldn' t..... do you think hacking FS comm would be easier, and FS comm doesn't have console interface, does it?... it is based at nokia QT, i red!

I think what alejo is looking for is a USB endpoint, and I believe you can use mod_portaudio for that.

(Last edited by KillaB on 23 Apr 2010, 02:30)

How is thaT? like a USB phone or a IP phone?¿...

alejo wrote:

How is thaT? like a USB phone or a IP phone?¿...

In your earlier posts it sounded like you were looking for support on USB phones, which is why I suggested mod_portaudio. I have no experience with it myself, but it should work.

Does anyone else think the freeswitch-tools package should be added to freeswitch-default?
I had to search dev.openwrt.org to find out what package fs_cli was hidden in.

KillaB wrote:

Does anyone else think the freeswitch-tools package should be added to freeswitch-default?

I would second that.

tools is included in collection-minimal, not sure when it was added though ...


FYI, I have detailed installation of FS with FusionPBX on OpenWRT (specifically on a Dockstar but only memory limits your device needs, 80mb RAM is enough in most cases)

Write up is on my blog at http://tech.psgv.ca for now, I will be adding the details to http://wiki.fusionpbx.com in the next little while. Still verifying that the instructions work in all situations. In the process I am also submitting fixes to http://dev.openwrt.org to get missing configuration files added to various FS modules. Eg. trac 9551/2/3 and 9574

Gerrit

Gerrit, nice work! Let's hope this will motivate more users to get involved, if not at least to make use of, FS.

Hello,

Is there anyone who is using FreeSwitch on your OpenWRT box?

YH