pjsip
文章平均质量分 56
Jason_Ptcc
这个作者很懒,什么都没留下…
展开
-
解决办法:error=Too many objects of the specified type (PJ_ETOOMANY)
在某种异常情况下,pjsip客户端会出现重注册失败,此时如果注册失败的该用户呼叫,就会出现错误:operation=make_call(), error=Too many objects of the specified type (PJ_ETOOMANY)解决办法: pjsua提供一种方法:class AccountInfo: """This describes原创 2013-04-03 10:09:07 · 2184 阅读 · 0 评论 -
解决办法:Python在liux64位操作系统编译pjsua出错
问题如题解决方法:python原有make文件build/os-auto.mak如下:export OS_CFLAGS := $(CC_DEF)PJ_AUTOCONF=1 -O2 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1所以会报fPIC编译错误,所以只要在后面加上fPIC即可,如下:vi build/os-auto.makexpo原创 2013-03-28 15:37:23 · 1067 阅读 · 1 评论 -
PJSIP:没有声卡实现多路会话放音
一台设备一般只有一个声卡,因此在一台设备上多路放音可以按照以下方法:1、禁用声卡:调用函数:set_null_snd_dev()2、然后就可以用play file模式模拟通话,具体代码如下:import sysimport waveimport pjsua as pjimport threadimport _pjsuafrom time import sleep原创 2013-03-26 13:40:46 · 2735 阅读 · 0 评论 -
Pjsip如何播放本地wav(python实例)
import sysimport waveimport pjsua as pjimport threadimport _pjsuafrom time import sleep LOG_LEVEL=3current_call = NoneC_QUIT = 0THIS_FILE = "SIPSender.py" # Logging callbackd原创 2013-03-26 13:42:41 · 2286 阅读 · 0 评论 -
Pjsip:用户注册多线程实例
# -*- coding: cp936 -*-import pjsua as pjimport threading,timeimport sysdef log_cb(level, str, len): print str,class TestAccountCallback(pj.AccountCallback): iRegStatus = 0原创 2013-05-23 09:33:09 · 3838 阅读 · 0 评论 -
pjsip:播放媒体文件陷阱
最近在play wav时候发现,即使单路呼叫,也会占用大量CPU资源,于是官网求助:How can I reduce the CPU usage/maximize the performance of my application?。。。。。。4、Avoid resampling. Resampling is a CPU intensive process, thus itshou原创 2013-05-15 16:39:50 · 1835 阅读 · 3 评论