pjsua crash when try to create_player

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Basically, I'm using Asterisk server and 2 users to make a SIP call between 2 computers. When I get a call, python pjsua crash (using most-void python package)

The trace error is:

Incoming call from <sip:debug_call@192.168.15.15>
in _start_call_sound_in
[Thu Jan 24 08:52:35 2019] 08:52:35.019    pjsua_aud.c  ...Unable to open file for playback: Not found (PJ_ENOTFOUND) [status=70006]
Unhandled exception in thread started by <function _worker_thread_main at 0x7f76765db9b0>
Traceback (most recent call last):
  File "/home/foo/.local/lib/python2.7/site-packages/pjsua.py", line 2934, in _worker_thread_main
    time.sleep(0.050)
  File "/home/foo/.local/lib/python2.7/site-packages/pjsua.py", line 2882, in _cb_on_incoming_call
    _lib._cb_on_incoming_call(acc_id, call_id, rdata)
  File "/home/foo/.local/lib/python2.7/site-packages/pjsua.py", line 2764, in _cb_on_incoming_call
    acc._cb.on_incoming_call( Call(self, call_id) )
  File "/home/foo/.local/lib/python2.7/site-packages/most/voip/api_backend.py", line 602, in on_incoming_call
    _start_call_sound_in()
  File "/home/foo/.local/lib/python2.7/site-packages/most/voip/api_backend.py", line 128, in _start_call_sound_in
    player_in_id = pj.Lib.instance().create_player(sound_file,loop=True)
  File "/home/foo/.local/lib/python2.7/site-packages/pjsua.py", line 2562, in create_player
    self._err_check("create_player()", self, err)
  File "/home/foo/.local/lib/python2.7/site-packages/pjsua.py", line 2706, in _err_check
    raise Error(op_name, obj, err_code, err_msg)
pjsua.Error: Object: Lib, operation=create_player(), error=Not found (PJ_ENOTFOUND)

The same code works in other computer with Ubuntu 16, but crash in mine and I don't know why.

My computer have the following elements:

O.S: Ubuntu 18.04.1 LTS bionic
Pjsip version: 2.2.1

Someone have an idea how can I find the source of the problem and how to debug it? 

Thanks in advance.
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux