PJSUA/PJSIP - Unable to increase support to 32 accounts/transports/calls

谁说我不能喝 提交于 2019-12-10 11:50:39

问题


I've tried various attempts using config_site.h during build, and had little to no improvement... Still stuck at 8 accounts. Code is:

import pjsua

lib = pjsua.Lib()
lib.init()
lib.start()

transport = lib.create_transport(pjsua.TransportType.UDP)
for x in range(10):
    lib.create_account_for_transport(transport)

And:

Assertion failed: (pjsua_var.acc_cnt < (sizeof(pjsua_var.acc)/sizeof(pjsua_var.acc[0]))), function pjsua_acc_add, file ../src/pjsua-lib/pjsua_acc.c, line 401.

回答1:


This issue seems not only to be a PJSUA/PJSIP issue, but a platform specific issue (Mac OS X) as the (nearly) identical steps were performed on Ubuntu 15.10 and it was able to create additional accounts with no issue.

Steps completed on working Ubuntu 15.10 install:

sudo ./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
sudo make dep && make
sudo make
cd pjsip-apps/src/python
sudo make
sudo python setup.py install

Note: Issues during make dep (pjsip) and sudo make (python lib) required running sudo make and sudo python setup.py install again to properly complete install.

These same steps, completed on a Mac OS X 10.11 platform, does not allow for additional transports nor additional accounts to be created. Will attempt a second question specifically addressing transports.



来源:https://stackoverflow.com/questions/34403656/pjsua-pjsip-unable-to-increase-support-to-32-accounts-transports-calls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!