[OpenSIPS-Users] Opensips 1.10 and embedded ARM system

Ovidiu Sas osas at voipembedded.com
Thu Nov 14 17:20:18 CET 2013


Hello Samuel,

OpenSIPS is already built for a handfull of embedded devices via the
optware feeds:
http://www.nslu2-linux.org/

If you want to take a look at the master makefile for cross compiling
opensips, you can find it here:
http://svn.nslu2-linux.org/svnroot/optware/trunk/make/opensips.mk

I ran opensips on arm without any issue, so it might be that your
build is not sane.
Generate a core file and use gdb to investigate.

Regards,
Ovidiu Sas

On Thu, Nov 14, 2013 at 11:10 AM, Samuel Muller <sml at l33.fr> wrote:
> Hello,
>
> I would like any advice on how-to build opensips for an ARM system ?
>
> here are my points :
>
> 1. cross-compiling ok, after patching some files :
>
> ~$ file opensips
> ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses
> shared libs), for GNU/Linux 2.0.0, not stripped
>
> 2. I could not use any module that uses libxml2 (compil failed, even
> if libs are ok) ? :(
>
> 3. I'm really short in disk space ( ~ 6Mb), how to strip at the
> maximum opensips and its modules ?
> logs available only in stdout
>
> 4. install seems to be ok, considering private and shared memory tuning
> opensips is launched with a very small config, just for test purpose
> (configured as pure stateless proxy):
>
> ./opensips -m 8 -M 1 -f ../etc/opensips.cfg -d -D -E
>
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/signaling.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module /apps/isas/lib/sl.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module /apps/isas/lib/tm.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module /apps/isas/lib/rr.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module /apps/isas/lib/maxfwd.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/sipmsgops.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module /apps/isas/lib/uri.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/options.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/ratelimit.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/db_text.so
> Nov 14 16:18:50 [2381] DBG:core:yyparse: loading module
> /apps/isas/lib/dispatcher.so
> ...
>
> everything seems to be ok, but it crashes at the very first request it
> has to manage :(
> I think that request could be the first OPTIONS request from the
> dispatcher module.
>
> Nov 14 16:19:23 [2381] DBG:core:handle_sigs: status = 11
> Nov 14 16:19:23 [2381] INFO:core:handle_sigs: child process 2383
> exited by a signal 11
> Nov 14 16:19:23 [2381] INFO:core:handle_sigs: core was not generated
> Nov 14 16:19:23 [2381] INFO:core:handle_sigs: terminating due to SIGCHLD
> Nov 14 16:19:23 [2382] INFO:core:sig_usr: signal 15 received
>
> hardware resources looks fine :
>
> ~$ top
>
> Mem: 26604K used, 18936K free, 0K shrd, 0K buff, 16212K cached
> Load average: 0.20, 0.11, 0.03    (State: S=sleeping R=running, W=waiting)
>
>   PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
>  3644 admin    S       3028  3640  0.0  6.6 opensips
>  3643 admin    S       3016  3640  0.0  6.6 opensips
>  3642 admin    S       3016  3640  0.0  6.6 opensips
>  3640 admin    S       3008  1685  0.0  6.6 opensips
>  3641 admin    S       3004  3640  0.0  6.5 opensips
>
> ~$ free
>               total         used         free       shared      buffers
>   Mem:        45540        26556        18984            0            0
>  Swap:            0            0            0
> Total:        45540        26556        18984
>
>
> Any idea/advice are welcome ... thanks,
>
>
>
> Samuel MULLER
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



-- 
VoIP Embedded, Inc.
http://www.voipembedded.com



More information about the Users mailing list