本文介绍了PJSUA / PJSIP - 无法进一步支持32账户/运输/电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过构建过程中使用config_site.h各种尝试,并有几乎没有起色......还停留在8账户。 code是:

 进口pjsuaLIB = pjsua.Lib()
lib.init()
lib.start()运输= lib.create_transport(pj​​sua.TransportType.UDP)
对于在范围X(10):
    lib.create_account_for_transport(运输)

 断言失败:(pjsua_var.acc_cnt≤(的sizeof(pjsua_var.acc)/ sizeof的(pjsua_var.acc [0]))),功能pjsua_acc_add,文件../src/ pjsua-LIB / pjsua_acc.c,线401。


解决方案

这个问题似乎不仅是一个PJSUA / PJSIP的问题,而是一个平台,具体问题(Mac OS X中)为进行的(几乎)相同的步骤的Ubuntu 15.10 键,它能够没有问题创建其他帐户。

步骤完成了对工作的Ubuntu 15.10 安装:

 须藤的./configure CFLAGS = -fPIC CXXFLAGS = -fPIC
须藤使DEP和放大器;&安培;使
须藤使
CD PJSIP-应用/ src目录/蟒蛇
须藤使
sudo的蟒蛇的setup.py安装

请注意:使DEP (PJSIP)和须藤使(蟒蛇LIB)需要运行<$ C中的问题$ C> sudo的化妆和 sudo的蟒蛇setup.py安装再次以正确完成安装。

这些相同的步骤,完成了一个 Mac OS X的10.11 的平台,不允许更多的传输也不额外的帐户创建。将尝试第二个问题专门针对传输。

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.
解决方案

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.

这篇关于PJSUA / PJSIP - 无法进一步支持32账户/运输/电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 18:12