2009年9月19日 星期六

to increase PJSUA_MAX_CALLS, PJ_IOQUEUE_MAX_HANDLES

centos 5.3


compiling "pjproject-1.4": (PJSUA_MAX_CALLS, PJ_IOQUEUE_MAX_HANDLES)


cp pjproject-1.4/pjlib/include/pj/config_site.sample.h pjproject-1.4/pjlib/include/pj/config_site.h


vim pjproject-1.4/pjlib/include/pj/config_site.h


#define PJ_CONFIG_MAXIMUM_SPEED 1




Compiling Error:


PJ_IOQUEUE_MAX_HANDLES cannot be greater than FD_SETSIZE


/etc/security/limits.conf


* soft nofile 99999


* soft nofile 99999


[root@ip172 i686-pc-linux-gnu]# grep -R FD_SETSIZE /usr/include/* |grep 1024


/usr/include/bits/typesizes.h:#define __FD_SETSIZE 1024


/usr/include/linux/posix_types.h:#define __FD_SETSIZE 1024


/usr/include/valgrind/vki-linux.h:#define __VKI_FD_SETSIZE 1024




vim /usr/include/bits/typesizes.h


/usr/include/bits/typesizes.h:#define __FD_SETSIZE 10240

沒有留言: