### Description
### Troubleshooting
Reproduction
Debugging Data
```
(paste your debugging data here)
```
Log Messages
```
(paste your log messages here)
```
SIP Traffic
```
(paste your sip traffic here)
```
### Possible Solutions
### Additional Informatio
kamailio -v
version: kamailio 5.2.1 (x86_64/linux) 947769
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CAC
echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64/
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497298269___
Kamai
kamailio configuration snippet
# module app_java
loadmodule "app_java.so"
modparam("app_java", "class_name", "Kamailio")
modparam("app_java", "child_init_method", "child_init")
modparam("app_java", "java_options",
"-Djava.compiler=/usr/lib/jvm/java-11-openjdk-amd64/bin/javac
-Djava.class.path=/us
I have installed kamailio using apt-get and then downloaded the same version
kamailio sources.
I have then compiled app_java and copied the app_java.so into my kamailio
modules path
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on
#extract from kamailio.log
May 30 13:10:30 PROXY-TEST-01 kamailio: ERROR: [core/sr_module.c:498]:
load_module(): could not open module
:
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_java.so: undefined symbol:
JNI_CreateJavaVM
May 30 13:10:30 PROXY-TEST-01 kamailio: CRITICAL: [core/cfg.y:350
Indeed gcj was removed from gcc compiler suite for the release 7.1. The openjdk
compiler should be used instead.
I managed to build the module on opensuse by setting gcj = no in the Makefile,
and set a proper JAVA_HOME on the command line. The module seems to initialize
ok:
0(20759) DEBUG: [c
I recompiled the module forcing the header path in the sources (the version
matches since the source is the orig from which debian builds the package):
#include "/usr/lib/jvm/java-11-openjdk-amd64/include/jni.h"
now the error changed:
May 31 09:55:04 PROXY-TEST-01 /usr/sbin/kamailio[6191]: WARNIN
is there something that is not managing memory right ?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497625862___
Kam
i'd prefer to keep the paths as those are now because I hate things like
/usr/local/etc/kamailio/etc around the servers
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issueco
it would be nice to have an official kamailio debian repo with all the debs of
all the modules in the right paths
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-
As commented in the other issue: http://deb.kamailio.org/
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497655121___
About the other memory related bug - could you maybe try with the packages from
the kamailio repository, if you get the same error here?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/is
kamailio-java ... where is it ?
apt-cache search kamailio
kamailio-autheph-modules - authentication using ephemeral credentials for the
Kamailio SIP server
kamailio-berkeley-bin - Berkeley database module for Kamailio - helper program
kamailio-berkeley-modules - Berkeley database module for the Ka
I am using
deb http://deb.kamailio.org/kamailio51 buster main
deb-src http://deb.kamailio.org/kamailio51 buster main
yes I did apt-get update and imported the key
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://g
Afaik, the official debian repo as well as the deb.kamailio.org have same
packages. Not all modules are packaged due to missing dependencies or licensing
constraints. app_java was removed because the gcc compiler suite removed the
one for java. Nobody took the time to look for a proper alternati
I don't think there might be licensing problems using openjdk 11.0.3 2019-04-16
please make the deb
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497668030__
The licensing remark was in general, referring to the fact that `not all
modules are packaged` ... read carefully what I wrote.
Also, note the remark that you can also contribute by making a pull request to
the packaging specs. After all, this is an open source collaboration project,
everyone h
May 31 13:07:05 PROXY-TEST-01 /usr/sbin/kamailio[5924]: INFO: pike [pike.c:97]:
pike_init(): PIKE - initializing
May 31 13:07:05 PROXY-TEST-01 /usr/sbin/kamailio[5924]: INFO: pike
[ip_tree.c:81]: init_lock_set(): probing 256 set size
May 31 13:07:05 PROXY-TEST-01 /usr/sbin/kamailio[5924]: INFO: a
> The licensing remark was in general, referring to the fact that `not all
> modules are packaged` ... read carefully what I wrote.
>
> Also, note the remark that you can also contribute by making a pull request
> to the packaging specs. After all, this is an open source collaboration
> project
core> [core/route.c:872]: fix_actions(): fixing xlog()
May 31 15:15:03 PROXY-TEST-01 /usr/sbin/kamailio[16509]: CRITICAL:
[core/mem/q_malloc.c:144]: qm_debug_check_frag(): BUG: qm: prev. fragm. tail
overwritten(55c775816cd0, abcdefed)[0x7f64aa9c9d80:0x7f64aa9c9db8]! Memory
allocator was called
@xevilstar good to know that You want to contribute. First try to make app_java
work again. From what I know it was not possible to build it with gcj so I
removed the package.
I'm not the maintainer of that module and I have any interest in it. If you
manage to fix it and make it work properly
> @xevilstar good to know that You want to contribute. First try to make
> app_java work again. From what I know it was not possible to build it with
> gcj so I removed the package.
>
> I'm not the maintainer of that module and I don't have any interest in it. If
> you manage to fix it and make
@linuxmaniac here's the makefile
`include ../../Makefile.defs
auto_gen=
NAME=app_java.so
USE_GCJ ?= no
#DEFS += -DEXTRA_DEBUG
DIST = $(shell if [ -f "/etc/redhat-release" ]; then cat /etc/redhat-release |
sed "s/.*\([0-9]\)\.[0-9].*/\1/g"; fi)
ifeq ($(DIST),6)
JVM_PATH = $(shell dirname `find
@linuxmaniac I think that if you try to rebuild the debs and reinclude app_java
with this makefile with openjdk as dep what we'll obtain could be something
workable. and I could test it
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it
@linuxmaniac by the way I tried to send it to you through irc dcc transfer on
the kamailio freenode channel
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1969#issuecomment-497739
26 matches
Mail list logo