我目前正在尝试在python中使用pjsip
apipjsua
,因此研究这个Hello World示例:http://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World
我复制了代码,根据http://trac.pjsip.org/repos/wiki/Python_SIP/Accounts等集成了帐户配置。但是当我运行示例时,我得到以下输出:
Traceback (most recent call last):
File "/home/dmeli/workspace/eit.cubiephone.sip_test/eit/cubiephone/sip_test/hello.py", line 48, in <module>
acc = lib.create_account(acc_cfg)
File "/usr/local/lib/python2.7/dist-packages/pjsua.py", line 2300, in create_account
err, acc_id = _pjsua.acc_add(acc_config._cvt_to_pjsua(), set_default)
File "/usr/local/lib/python2.7/dist-packages/pjsua.py", line 900, in _cvt_to_pjsua
cfg.rtp_transport_cfg = self.rtp_transport_cfg._cvt_to_pjsua()
AttributeError: '_pjsua.Transport_Config' object has no attribute '_cvt_to_pjsua'
因为我不是一个真正的python专家,也从来没有使用过PJSIP,所以我真的无法找出错误所在。对我来说,它看起来实际上是pjsip
python包装器中的一个错误。但我知道什么?在
代码:
^{pr2}$发生错误的行pjsua.py公司名称:
cfg.rtp_transport_cfg = self.rtp_transport_cfg._cvt_to_pjsua()
(rtp_transport_cfg
似乎没有成员_cvt_to_pjsua()
??)在
有关进一步的工作,请查看pjsipapi(pjsua.py)他在等待秩序和结构!!!
相关问题 更多 >
编程相关推荐