slomkowski / mumsi

SIP to Mumble gateway/bridge using PJSUA stack.
Apache License 2.0
41 stars 33 forks source link

pjsua2 EINVALIDOP #11

Closed pzi42 closed 8 years ago

pzi42 commented 8 years ago

Hello, I#, testing mumsi on CentOS Linux release 7.2.1511 (Core) running in a VM (VBox).

I've done everything like it is told in the README-File, so builing mumsi was easy and quick. When starting mumsi I got

media.cpp pjsua_conf_add_port(mediaPool, (pjmedia_port *)port, &id) error: Invalid operation (PJ_EINVALIDOP) (status=70013) [../src/pjsua2/media.cpp:149]

I'm using pjproject-2.3-6.el7.x86_64 System Audio is ALSA; speaker-test makes the expected noise.

I have no idea where to search for the reason of this problem. With debug messages i found that it happens while executing

next you see output of 'mumsi', 'aplay -l' and 'speaker-test'. Any ideas what I can do?

[root@localhost ~]# su pzi --login Letzte Anmeldung: Dienstag, den 29. März 2016, 17:04:15 CEST auf pts/3

[pzi@localhost ~]$ cd src/mumsi-dist/mumsi/build/

[pzi@localhost build]$ ./mumsi config.ini 2016-03-29 17:07:01,736 [CRIT] : before sip 17:07:01.736 os_core_unix.c !pjlib 2.3 for POSIX initialized 17:07:01.738 sip_endpoint.c .Creating endpoint instance... 17:07:01.738 pjlib .select() I/O Queue created (0x22433f0) 17:07:01.738 sip_endpoint.c .Module "mod-msg-print" registered 17:07:01.738 sip_transport. .Transport manager created. 17:07:01.738 pjsua_core.c .PJSUA state changed: NULL --> CREATED 2016-03-29 17:07:01,748 [NOTICE] Pjsua: 17:07:01.748 pjsua_core.c .pjsua version 2.3 for Linux-3.10.1.71/x86_64/glibc-2.17 initialized 2016-03-29 17:07:01,748 [WARN] SipCommunicator: before pj_caching 2016-03-29 17:07:01,748 [WARN] SipCommunicator: after pj_caching 2016-03-29 17:07:01,748 [WARN] SipCommunicator: after mixer reset 2016-03-29 17:07:01,748 [ERROR] Pjsua: 17:07:01.748 media.cpp pjsua_conf_add_port(mediaPool, (pjmedia_port *)port, &id) error: Invalid operation (PJ_EINVALIDOP) (status=70013) [../src/pjsua2/media.cpp:149] terminate called after throwing an instance of 'pj::Error' Abgebrochen

[pzi@localhost build]$ aplay -l \ Liste der Hardware-Geräte (PLAYBACK) ** Karte 0: I82801AAICH [Intel 82801AA-ICH], Gerät 0: Intel ICH [Intel 82801AA-ICH] Sub-Geräte: 1/1 Sub-Gerät #0: subdevice #0 [pzi@localhost build]$

[pzi@localhost build]$ speaker-test

speaker-test 1.0.28

Wiedergabe-Gerät ist default Stream-Parameter sind 48000 Hz, S16_LE, 1 Kanäle Verwende 16 Oktaven rosa Rauschen Rate ist 48000 Hz (angefordert: 48000 Hz) Puffergröße von 2048 bis 16384 Periodengröße von 1024 bis 1024 Verwende maximale Puffergröße 16384 Perioden = 4 gesetzt: period_size = 1024 gesetzt: buffer_size = 16384 0 - Front Left Zeit pro Periode = 2,586007

slomkowski commented 8 years ago

I'm not sure, but I've probably encountered this error when I was deploying mumsi on some older distro (probably Debian 7). The solution was to install up-to-date (2.4.5) pjproject from source.

pzi42 commented 8 years ago

Thank you, your hint using version2.4.5 of pjproject was very helpfull. It was a simple to get an compile pjproject on my CentOS7 machine, but painfull to install. If had to learn a bit about pkgconfig, but copying libpjproject.pc to the right place was helpfull. So now mumsi is running.

Testing mumsi showed a problem with the regex in IncomingConnectionValidator. Therefor I will open an new issue