problem with pjsip and null sound + errors on compiling

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

 



Hello,

My name is Adrian and I have a problem with pjsip module via python.
I want to make call, with no sound (i want to disable it) but i get an
error.
Registration is working fine, but when I try to make a call (simplecall.py):

18:12:15.328   pjsua_core.c  pjsua version 1.8-trunk for
x86_64-unknown-linux-gnu initialized
 18:12:15.330    pjsua_acc.c  Registration sent
 18:12:15.330  pjsua_media.c  Error retrieving default audio device
parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
[status=420006]
Exception: Object: {Account <sip:**@**>}, operation=make_call(),
error=Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
 18:12:15.818    pjsua_acc.c  Unable to create/send REGISTER: Object is busy
(PJSIP_EBUSY) [status=171001]

when I use:
lib.set_null_snd_dev()
=>
18:14:18.355 sip_endpoint.c  Module "mod-msg-print" registered
 18:14:18.355 sip_transport.  Transport manager created.
 18:14:18.355  pjsua_media.c  Opening null sound device..
python: ../src/pjmedia/conference.c:693: pjmedia_conf_get_master_port:
Assertion `conf != ((void *)0)' failed.
Aborted (core dumped)

i`m using
Linux laptop 2.6.34.6-54.fc13.x86_64 #1 SMP Sun Sep 5 17:16:27 UTC 2010
x86_64 x86_64 x86_64 GNU/Linux
Python 2.6.4
pjsip from svn (latest)

tried with:
./configure --disable-sound

user.mak:
export CFLAGS += -fPIC
export LDFLAGS +=

compile python module:
sudo make
=>
In file included from _pjsua.c:20:
_pjsua.h: In function ?PyObj_pjsua_acc_config_import?:
_pjsua.h:1747: error: ?pjsua_acc_config? has no member named ?require_timer?
_pjsua.h: In function ?PyObj_pjsua_acc_config_export?:
_pjsua.h:1797: error: ?pjsua_acc_config? has no member named ?require_timer?

commented two lines in _pjsua.h:
//cfg->require_timer = obj->require_timer;

compile worked and installed.

i tried to disable PJ_ASSERT_RETURN from config.h (pjlib/include/pj)

define PJ_ENABLE_EXTRA_CHECK    0

then recompile && make dep && make && sudo make in py

but still i get same error.

Can anyone help me deal with this? I`ve been searching on the internet for
past 2 days and tried everything i found, but nothing.

Thanks in advance.

Va salut,

CRISTEA, Adrian
Software developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100923/71c3f7d1/attachment.html>


[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