Good morning List!
I have an issue with my kamcmd from kamailio 5.2.3 on CentOS 7.6 with
kamailio-rpms.
The kamcmd util can not find my registrations via command
kamcmd uac.reg_enable auth_username FFFFFFFFFFFF
kamcmd uac.reg_info l_username +49XXXXXXXX
and soone. Only global commands for uac works.
Whats going wrong with my kamcmd? Any ideas? Thank for your hints!
# kamcmd uac.reg_dump
{
l_uuid: 49XXXXXXX
l_username: +49XXXXXXXX
l_domain: sip-trunk.telekom.de
r_username: +49XXXXXXXX
r_domain: sip-trunk.telekom.de
realm: sip-trunk.telekom.de
auth_username: FFFFFFFFFFFF
auth_password: ***************
auth_proxy: sip:reg.sip-trunk.telekom.de
expires: 360
flags: 20
diff_expires: 129
timer_expires: 1561103682
reg_init: 1561101919
reg_delay: 3
}
# kamcmd uac.reg_enable auth_username FFFFFFFFFFFF
error: 404 - Record not found
--
Kind regards
Mit freundlichen Grüßen
*Karsten Horsmann*
I can only compile down to JDK 1.6 java 6 but still get same error below from the web interface.
But get the following error when pointing to JDK1.5 java 5 which would imply some parts of the code was built with 1.6. BTW I downgraded Ant to 1.9 (Apache Ant(TM) version 1.9.14 compiled on March 12 2019).
Buildfile: /opt/OpenIMSCore/FHoSS/build.xml
init:
[mkdir] Created dir: /opt/OpenIMSCore/FHoSS/bin
compile:
[javac] /opt/OpenIMSCore/FHoSS/build.xml:48: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 202 source files to /opt/OpenIMSCore/FHoSS/bin
[javac] /opt/OpenIMSCore/FHoSS/src/de/fhg/fokus/hss/auth/AuthenticationVector.java:49: cannot access de.fhg.fokus.diameter.DiameterPeer.data.AVP
[javac] bad class file: /opt/OpenIMSCore/FHoSS/lib/jdp.jar(de/fhg/fokus/diameter/DiameterPeer/data/AVP.class)
[javac] class file has wrong version 51.0, should be 49.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import de.fhg.fokus.diameter.DiameterPeer.data.AVP;
[javac] ^
[javac] 1 error
BUILD FAILED
/opt/OpenIMSCore/FHoSS/build.xml:48: Compile failed; see the compiler error output for details.
Any insight would be appreciated.
Thanks,
Martin
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Woscek, Martin W.
Sent: Tuesday, June 18, 2019 2:38 PM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: [SR-Users] FHoSS db web interface failing for retrievals
Hi all,
We can enter user data into our HSS, we just cant retrieve data.
Just to verify, FHoSS is based on Java 1.7 and java.lang.CharSequence is in Java 1.7?
What we have:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
The error:
HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 116 in the jsp file: /pages/user/imsu_search_result.jsp
Generated servlet error:
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Thanks,
_Martin
Hello guys,
I'm kind of confused as to what module exactly i need to user, let me
explain:
I have a service for DIDs and SMS from s.ms, i created a python script that
connects to the service using xmpp to their jabber server with a user and a
password, i.e.: xmpp_client.py MY-NUMBER(a)s.ms MY-PASSWORD
What i do with that script is basically connect and wait to receive SMS,
which i then insert in the proxy db (silo) and they get delivered by msilo.
I have several numbers and doing this for every number seems stupid, so i
started looking for a better solution, since the end user will be receive
the message via SIP MESSAGE on they sip client.
i came across kamailio/opensips' jabber and xmpp modules, but i'm not sure
which (if any) to use, and even HOW to, or the actual architecture, since
the documentation keeps talking about a local xmpp server?
I would REALLY appreciate some help here.
Thanks!
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
Hey All,
I'm doing some upgrades and noticed database table version numbers
have increased.
database table adjustments:
| address | production ver 3 | upgrade 5.2 ver 6 | need to add
accountcode and notes column
| dispatcher | production ver 3 | upgrade 5.2 ver 4 | need to add attr column
| trusted | production ver 5 | upgrade 5.2 ver 6 | need to add
ruri_pattern and priority column
I run mysql master/slave so I'm concerned about the master database
not having the correct version numbers or can I just update the
version number in the table when I do the upgrade of the kamailio
versions?
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Chasing the Azeotrope
Hi all,
We can enter user data into our HSS, we just cant retrieve data.
Just to verify, FHoSS is based on Java 1.7 and java.lang.CharSequence is in Java 1.7?
What we have:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
The error:
HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 116 in the jsp file: /pages/user/imsu_search_result.jsp
Generated servlet error:
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Thanks,
_Martin
Hi folks,
I am doing some experiments with Kamailio and Cgrates. To be precise I am
testing evapi module. When in testing environment I do not have any
problem. After redirecting some production traffic to this kamailio, It
crashes in at random times (few minutes to 20). I didn't find any pattern
here.
CGRateS doesn't write anything in logs.
I'm on the last 4.4 Kamailio (compiled recently). CGRateS is on the last
version.
Can you please point to how to continue with debugging?
Thanks
Efelin
Here is the problem in syslog:
kamailio[9594]: : <core> [mem/f_malloc.c:599]: fm_free(): BUG: fm_free: bad
pointer 0x97894818 (out of memory block!), called from tm: h_table.c:
free_cell_helper(185) - abortingkamailio[9608]: CRITICAL: <core>
[pass_fd.c:277]: receive_fd(): EOF on 16
kamailio[9588]: ALERT: <core> [main.c:743]: handle_sigs(): child process
9594 exited by a signal 6
kamailio[9588]: ALERT: <core> [main.c:746]: handle_sigs(): core was not
generated
kamailio[9588]: INFO: <core> [main.c:768]: handle_sigs(): terminating due
to SIGCHLD
kamailio[9604]: INFO: <core> [main.c:823]: sig_usr(): signal 15 received
kamailio[9606]: INFO: <core> [main.c:823]: sig_usr(): signal 15 received
kamailio[9603]: INFO: <core> [main.c:823]: sig_usr(): signal 15 received
bt full
#0 0xb77d1424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7673661 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb7676a92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#3 0x082611a3 in fm_free (qmp=0x56779000, p=0x2d4e4f49, file=0x970932ee
"tm: h_table.c",
func=0x970935b7 "free_cell_helper", line=185, mname=0x97092d20 "tm") at
mem/f_malloc.c:601
qm = 0x56779000
f = 0x56df046c
__FUNCTION__ = "fm_free"
#4 0x96fd0559 in free_cell_helper (dead_cell=0x56d935c4, silent=0,
fname=0x970b90ca "timer.c",
fline=648) at h_table.c:185
b = 0x56df0490 "CANCEL sip:00444123456@192.168.1.3:5060
SIP/2.0\r\nVia: SIP/2.0/UDP
192.168.1.2;branch=z9hG4bKb6ae.5d03d7e94e5ec25f34930629f434a006.1\r\nMax-Forwards:
66\r\nFrom: \"0044454321\" <sip:0044454321@i"...
i = 1
rpl = 0x9797e818
tt = 0xbfe44c68
foo = 0x970ccb14
cbs = 0x0
cbs_tmp = 0x56d12b68
__FUNCTION__ = "free_cell_helper"
#5 0x9706884f in wait_handler (ti=31715179, wait_tl=0x56d9360c,
data=0x56d935c4) at timer.c:648
p_cell = 0x56d935c4
ret = 0
#6 0x08241e20 in timer_list_expire (t=31715179, h=0x567a3b68,
slow_l=0x567a5394, slow_mark=1772)
at timer.c:873
tl = 0x56d9360c
ret = 0
#7 0x08242211 in timer_handler () at timer.c:938
saved_ticks = 31715179
run_slow_timer = 0
i = 748
__FUNCTION__ = "timer_handler"
#8 0x0824266b in timer_main () at timer.c:977
No locals.
#9 0x080f0005 in main_loop () at main.c:1699
i = 3
pid = 0
si = 0x0
si_desc = "udp receiver child=2
sock=192.168.1.2:5060\000\270\301\310V\270\301\310V\000\000\000\000\000\000\000\020c\000\000\000\001\000\000\000\000\000\000\000\374Q\344\277HO\344\277\341`&\b\230\071\220\227\004\000\000\000٧5\b$\271\065\bn\000\000\000\324\247\065\b\n\000\000\000\363\320\372\060",
'\000' <repeats 11 times>
nrprocs = 3
woneinit = 1
__FUNCTION__ = "main_loop"
#10 0x080f6b3a in main (argc=13, argv=0xbfe45374) at main.c:2644
cfg_stream = 0x8491008
c = -1
r = 0
tmp = 0xbfe4577c ""
tmp_len = 1
port = 0
proto = 0
options = 0x8350e74
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:"
ret = -1
seed = 1759582648
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xbfe452a0
p = 0x805cc8c "[\201Ä4;"
st = {st_dev = 14, __pad1 = 0, st_ino = 6161, st_mode = 16877,
st_nlink = 2, st_uid = 109,
st_gid = 111, st_rdev = 0, __pad2 = 0, st_size = 60, st_blksize =
4096, st_blocks = 0,
st_atim = {tv_sec = 1560160293, tv_nsec = 983219454}, st_mtim =
{tv_sec = 1560165082,
tv_nsec = 861178334}, st_ctim = {tv_sec = 1560165082, tv_nsec =
861178334},
__unused4 = 0, __unused5 = 0}
__FUNCTION__ = "main"
Hi all,
I'm trying to run a kamailio DMQ node inside a docker container. All
works fine but i have one issue with DMQ. Since the kamailio process
inside the container is behind a nat i have set the advertise address to
the external ip, this works fine for the via headers but DMQ keeps
sending the internal interface in the KDMQ notification_peer messages.
The external ip is in there as well. Example:
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.10.10.13;branch=z9hG4bK2dcb.c6326de2000000000000000000000000.0
To:
<sip:notification_peer@10.10.10.94:5060>;tag=616b7acb681ed5e9cbc485b3faa09d62.0a3d
From:
<sip:notification_peer@10.10.10.13:5060>;tag=e8f29c06c4b85a188f6533f08d60feb6-ff29
CSeq: 10 KDMQ
Call-ID: 17042656602ca532-23367(a)x.x.x.x
Content-Type: text/plain
Server: kamailio (5.1.4 (x86_64/linux))
Content-Length: 222
sip:10.10.10.13:5060;status=active
sip:10.10.10.12:5060;status=active
sip:10.10.10.92:5060;status=active
sip:10.10.10.93:5060;status=active
sip:10.10.10.94:5060;status=active <-- entry for container external ip
sip:172.17.0.2:5060;status=disabled <-- entry for container internal ip
I tried to strip this entry using the replace_body_atonce in the
tm:local-request route. This works fine for the KDMQ request, but when i
try to remove the same line from 200OK responses that are send out as a
response to incomming KDMQ messages this seems to fail. I use the
following code:
# Working code (for outgoing KDMQ requests):
event_route [tm:local-request]
{
if(is_method("KDMQ") && $rU == "notification_peer")
replace_body_atonce("sip:172.17.0.*:5060;status=.*", "");
}
# Failing code (for 200OK responses):
reply_route
{
xlog("L_ALERT", "REPLY: Sending out reply, tU is $tU rs is $rs\n");
if ($rs == "200" && $tU == "notification_peer")
{
replace_body_atonce("sip:172.17.0.*:5060;status=.*", "");
}
}
I'm running kamailio 5.1.4. Is there a way to strip a line from the body
of a local generated 200OK response? Or is there a way to avoid that DMQ
inserts the internal container ip in the first place.
Thanks,
Jan Hazenberg
Hello!
I use rabbitmq module to get destination IP for the next call routing, but
this module blocks sip request in case of RabbitMQ server is unreachable
(timeout_sec/usec does not run out here).
- Is there any solution to avoid such behavior and force function
rabbitmq_publish_consume() to return an error code and continue script
execution?
- Is this connected with the nature of rabbitmq-c client? ("Currently
librabbitmq offers no async API, but sync API, with a timeout.")
--
BR,
Denys Pozniak
The infrastructure hosting the main server for Kamailio project will go
under scheduled maintenance during June 18, 2019 (tomorrow). The work is
expected to start around 7:00am UTC and can last for a few hours.
During the maintenance interval, the services related to Kamailio
project may become unavailable, among them:
* the web server (www.kamailio.org), including the wiki portal
(www.kamailio.org/wiki)
* the mailing lists and the email contact addresses
* the GIT repository mirror git.kamailio.org
Once the maintenance work is completed, there will be an update
notification sent about it!
If there are relevant events to be notified, we are going to publish on
our twitter stream:
* https://twitter.com/kamailio
Also, you can join #kamailio channel on irc.freenode.net in case you
want to report some incident related to our infrastructure that you
discover while maintenance goes on. For bugs or other issues related to
Kamailio code, use the tracker on github.com/kamailio/kamailio – that
service is not affected being maintained by GitHub corporation.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Dear guys,
I'm looking to understand the "info" field inside the CDR written on acc
table for Kamailio 4.4.x..
It seem that the field is never written with datas.. Is there a way to
write some informations inside it ?
Thanks for any reply