在Windows上出现错误pjsua

时间:2016-02-22 16:06:52

标签: python sip pjsip

我想开始编程我的SIP客户端,我开始用pjsua的例子来测试REGISTRATION CODE

Traceback (most recent call last):
File "D:\work\zscenter\registration.py", line 49, in <module>
 lib.create_transport(pj.TransportType.UDP, pj.TransportConfig(5080))
File "C:\Python27\lib\site-packages\pjsua.py", line 2301, in create_transport
err, tp_id = _pjsua.transport_create(type, cfg._cvt_to_pjsua())
File "C:\Python27\lib\site-packages\pjsua.py", line 536, in _cvt_to_pjsua
cfg.qos_type = self.qos_type
AttributeError: '_pjsua.Transport_Config' object has no attribute 'qos_type'
Exception AttributeError: "'NoneType' object has no attribute 'destroy'" 
in     <bound method Lib.__del__ of <pjsua.Lib instance at 0x0212AE40>> ignored

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

我安装了最新版本并且工作正常,谢谢