PJ_CONFIG_MAXIMUM_SPEED on Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi pjsip team!

Currently, you can't build pjsip on Mac OS X with PJ_CONFIG_MAXIMUM_SPEED.
This is since it defines PJ_IOQUEUE_MAX_HANDLES to 5000, however on Mac OS
X FD_SETSIZE is 1024 and PJ_IOQUEUE_MAX_HANDLES can't be greater
than FD_SETSIZE.

I'm currently making a homebrew formula (http://brew.sh/) for pjsip. This
will allow to install pjsip from the command line on Mac with the command
brew install pjsip.

https://github.com/mxcl/homebrew/pull/23408

Currently, my solution is to add the below to config_site.h, but it would
be great if we could avoid doing it in the formula. The best solution for
us would be if PJ_CONFIG_MAXIMUM_SPEED would work out of the box on Mac OS
X.

      #ifndef FD_SETSIZE
        #include <sys/types.h>
      #endif

      #if PJ_IOQUEUE_MAX_HANDLES>FD_SETSIZE
        #undef PJ_IOQUEUE_MAX_HANDLES
        #define PJ_IOQUEUE_MAX_HANDLES     FD_SETSIZE
      #endif

Also, PJ_CONFIG_MAXIMUM_SPEED sets PJSUA_MAX_CALLS but doesn't
modify PJSUA_MAX_PLAYERS, PJSUA_MAX_RECORDERS or PJSUA_MAX_CONF_PORTS. For
this reason we also include this in our config_site.h.

      #define PJSUA_MAX_CALLS              1024
      #define PJSUA_MAX_PLAYERS            1024
      #define PJSUA_MAX_RECORDERS          1024
      #define PJSUA_MAX_CONF_PORTS
(PJSUA_MAX_CALLS+PJSUA_MAX_PLAYERS+PJSUA_MAX_RECORDERS)

Thanks for your time!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131021/2310aaa6/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux