Hi
Give it a try without modparams to see if it works, I have the same
config but without modparams and it runs without problems.
Else have a look into the kamailio logfile for errors.
Or check config with "kamailio -c"?
Regards
Stefan
Am 06.04.23 um 15:18 schrieb georgy.grigoryev(a)snapcom.fr:
> Hello everyone,
>
> I'm trying to connect Kamailio 5.5.5 to my PostgreSQL 14.
> They are on two different servers.
> I have created the Kamailio DB on the Postgre with the help of the
> command "kamdbctl create"
> I'm able to connect to the database with no problem.
> The problem is in the kamailio.cfg file, i have added this so far:
>
> #!define WITH_PGSQL
>
> #!ifdef WITH_PGSQL
> #!define DBURL "postgres://USER:PASSWORD@IP:POPT/kamailio"
> #!endif
>
> #!ifdef WITH_PGSQL
> loadmodule "db_postgres.so"
> #!endif
>
> modparam("db_postgres", "retries", 3)
> modparam("db_postgres", "timeout", 10)
> modparam("db_postgres", "tcp_keepalive", 600)
> modparam("db_postgres", "lockset", 6)
> modparam("db_postgres", "bytea_output_escape", 0)
>
> But my kamailio doenst like this configuration, can someone help me
> find the problem?
>
> Thank you in advance!
>
> Best Regards!
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only
> to the sender!
> Edit mailing list options or unsubscribe:
Hello all,
In my situation, it is possible to call forwarding to registered users
multiple times on same leg. For each forward i have to update To uri and
i am using uac_replace_to to do that.
But on second relaying, To uri was malformed. On below, Im attaching
configuration to illustrate my problem. (version-5.4.9)
First relay - /To: //sip:xyz@192.168.0.51/
Second relay - /To: sip:xyz@192.168.0.51sip:abc@192.168.0.51/
Thanks in advance.
Serdar
/loadmodule "uac.so"//
//modparam("uac","restore_mode","auto")//
//
//
//request_route {//
// ...//
// $avp(x) = "abc";//
// $avp(x) = "xyz";//
// $avp(myip) = "192.168.0.51";//
// $avp(i) = 0;//
// route(SERDAR);//
// ...//
//}//
//
//route[SERDAR] {//
// if ($(avp(x)[$avp(i)])!=$null) {//
// $avp(destination) = $(avp(x)[$avp(i)]);//
// $avp(i) = $avp(i) + 1;//
// $rU=$_s($avp(destination));//
//uac_replace_to("$_s(sip:$avp(destination)@$avp(myip))");//
// route(LOCATION);//
// } else {//
// send_reply("403", "Opps!");//
// exit;//
// }//
//}//
//
//route[LOCATION] {//
// $avp(oexten) = $rU;//
// if (!lookup("location") ) {//
// t_newtran();//
// switch ($var(rc)) {//
// case -1://
// case -3://
// send_reply("480", "Temporarily Unavailable");//
// exit;//
// case -2://
// send_reply("405", "Method Not Allowed");//
// exit;//
// }//
// }//
// t_on_failure("SERDAR_FAILURE");//
// if(!t_relay()) sl_reply_error();//
// exit;//
//}//
//
//failure_route[SERDAR_FAILURE] {//
// route(NATMANAGE);//
// if (t_is_canceled()) //exit;//
// route(SERDAR);//
//}/
Hello!
Is there any possibility to control more-or-less privacy related parameters
of pua_dialoginfo module (like include_localremote) per subscription?
Main idea is I want to show some users full info on the call other user is
making, for a different user - just show fact of the call without any
details.
For now I'm only seeing some manual manipulation over XML based on user who
is receiving NOTIFY, but maybe I'm trying to invent a weel here.
--
Best regards,
Ihor (Igor)
(please keep the list in the communication)
Hello,
you can find the modules for example in the Debian package service:
https://packages.debian.org/bullseye/amd64/kamailio-tls-modules/filelist
Crypto is in TLS module package.
Cheers,
Henning
From: Duarte Rocha <duarterocha91(a)gmail.com>
Sent: Donnerstag, 6. April 2023 15:42
To: Henning Westerholt <hw(a)gilawa.com>
Subject: Re: [SR-Users] Repository for modules
Thanks for the quick answer.
How can I see info regarding which modules are in the combined packages? One of the modules i'm looking into is the crypto module for example.
Otherwise, where can I get a list of modules not included in Debian packages?
Cheers,
Duarte
Henning Westerholt <hw(a)gilawa.com<mailto:hw@gilawa.com>> escreveu no dia quinta, 6/04/2023 à(s) 13:17:
Hello,
the majority of modules should be packaged for Debian. What modules are missing for you? Keep in mind that some modules are combined in some packages.
Some modules can not properly packaged due to missing dependencies, this needs to be installed from source, right.
Cheers,
Henning
From: Duarte Rocha <duarterocha91(a)gmail.com<mailto:duarterocha91@gmail.com>>
Sent: Donnerstag, 6. April 2023 13:55
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>
Subject: [SR-Users] Repository for modules
Hello,
I'm currently testing Kamailio on a Debian 11 machine. In order to install it I used apt with repositories from Kamailio (https://deb.kamailio.org/).
Now I'm trying to add modules and I'm wondering the best way to do it. Using apt install i don't have access to all the modules. Is there another repository for this? Is my only solution downloading and compiling the modules?
Cheers
Hello,
I'm currently testing Kamailio on a Debian 11 machine. In order to install
it I used apt with repositories from Kamailio (https://deb.kamailio.org/).
Now I'm trying to add modules and I'm wondering the best way to do it.
Using apt install i don't have access to all the modules. Is there another
repository for this? Is my only solution downloading and compiling the
modules?
Cheers
Hi,
I had upgraded Kamailio from 5.4.7 to 5.5.5, Then I restarted the Kamailio
service.
After upgradation im getting the below error,
/usr/local/sbin/kamailio[21754]: ERROR: <core> [core/udp_server.c:596]:
udp_send(): sendto(sock, buf: 0x7f7502289200, len: 61012, 0, dst: (
10.122.45.189:5080), tolen: 16) - err: No buffer space available (105)
/usr/local/sbin/kamailio[21754]: ERROR: tm [../../core/forward.h:231]:
msg_send_buffer(): udp_send failed
/usr/local/sbin/kamailio[21754]: ERROR: tm [uac.c:678]:
send_prepared_request_impl(): Attempt to send to precreated request failed
ERROR: tm [../../core/forward.h:231]: msg_send_buffer(): udp_send failed
ERROR: tm [uac.c:678]: send_prepared_request_impl(): Attempt to send to
precreated request failed
Anyone have any idea on this errors.
Hi All,
We currently experience issues where scscf hangs randomly throughout the day. It started hanging once in a month, the issue has gotten worse over time and now it can hang more than 5 times in a day.
I have no prior kamailio experience or experience debugging c applications.
Kamailio version: 4.4.0
Running ps shows scscf processes are running.
Service status also shows scscf is running but it does not respond to sip requests.
Testing with sipsack hangs and print timeout errors.
root@NGVI-PCSCF2:/var/log # service scscf status
* Status of Kamailio SIP Server:
* scscf is running
sipsak -vv -s sip:NGVI-PCSCF2:6060
received ICMP message
received ICMP message** timeout after 500 ms**
Below is the extract from log files
Apr 5 12:04:46 NGVI-PCSCF2 /usr/sbin/kamailio[5102]: {1 1 ACK isbc505ramjjjr3g23cs02r53cms0uxbg2es(a)10.18.5.64} WARNING: tm [t_lookup.c:1476]: t_unref(): WARNING: script writer didn't release transaction
Apr 5 12:04:46 NGVI-PCSCF2 /usr/sbin/kamailio[5104]: {1 3 REGISTER _A9LGREyW2miE7LhPJzv7g..} ERROR: ims_registrar_scscf [save.c:1034]: update_contacts(): Unable to remove contact <sip:+2347020246874@154.66.2.182:5060;rinstance=28bf37d2cce6e4a1;transport=udp>
Apr 5 12:04:47 NGVI-PCSCF2 /usr/sbin/kamailio[5131]: ERROR: rr [rr_mod.c:300]: w_record_route(): Double attempt to record-route
Apr 5 12:04:47 NGVI-PCSCF2 /usr/sbin/kamailio[5144]: ERROR: rr [rr_mod.c:300]: w_record_route(): Double attempt to record-route
Apr 5 12:04:47 NGVI-PCSCF2 /usr/sbin/kamailio[5108]: {1 1 ACK r8ug398d118i8iaaunrouggisntkigkn(a)10.18.5.64} WARNING: tm [t_lookup.c:1476]: t_unref(): WARNING: script writer didn't release transaction
Apr 5 12:04:48 NGVI-PCSCF2 /usr/sbin/kamailio[5190]: CRITICAL: <core> [pass_fd.c:275]: receive_fd(): EOF on 23
Apr 5 12:04:48 NGVI-PCSCF2 /usr/sbin/kamailio[5062]: ALERT: <core> [main.c:741]: handle_sigs(): child process 5103 exited by a signal 11
Apr 5 12:04:48 NGVI-PCSCF2 /usr/sbin/kamailio[5062]: ALERT: <core> [main.c:744]: handle_sigs(): core was generated
Apr 5 12:06:12 NGVI-PCSCF2 kamailio: WARNING: <core> [daemonize.c:348]: daemonize(): pid file contains old pid, replacing pid
Apr 5 12:06:13 NGVI-PCSCF2 /usr/sbin/kamailio[15060]: WARNING: interconnectroute [ported_cache.c:113]: initPortedNumberCount(): Requested records[726049]: Total allocated[871258]: Fat 20% :Total MemUsed [26 MB divided between primary[0x7f22b8667d60] and secondary[0x7f22b93b3390]]
pr 5 04:38:24 NGVI-PCSCF2 /usr/sbin/kamailio[14018]: message repeated 107 times: [ ERROR: ims_usrloc_scscf [subscribe.c:430]: free_subscriber(): record not found in hash table]
Apr 5 12:50:38 NGVI-PCSCF2 /usr/sbin/kamailio[2604]: WARNING: interconnectroute [icncache_eventprocessor.c:76]: icnRefreshProcess(): total size 2147483648 qm_real_used 700707576 qm_used 387064680 1st_frag 0x7fd5f6d6a690 last_frag 0x7fd676d30fd0
Apr 5 13:00:25 NGVI-PCSCF2 /usr/sbin/kamailio[2437]: ERROR: ims_usrloc_scscf [subscribe.c:430]: free_subscriber(): record not found in hash table
Apr 5 13:00:26 NGVI-PCSCF2 /usr/sbin/kamailio[2437]: message repeated 125 times: [ ERROR: ims_usrloc_scscf [subscribe.c:430]: free_subscriber(): record not found in hash table]
Apr 5 13:01:25 NGVI-PCSCF2 /usr/sbin/kamailio[2437]: CRITICAL: <core> [main.c:650]: sig_alarm_abort(): shutdown timeout triggered, dying...
Apr 5 13:02:30 NGVI-PCSCF2 kamailio: WARNING: <core> [daemonize.c:348]: daemonize(): pid file contains old pid, replacing pid
Apr 5 13:02:30 NGVI-PCSCF2 /usr/sbin/kamailio[27629]: WARNING: interconnectroute [ported_cache.c:113]: initPortedNumberCount(): Requested records[726049]: Total allocated[871258]: Fat 20% :Total MemUsed [26 MB divided between primary[0x7f3093a3fd60] and secondary[0x7f309478b390]]
Thank you in advance.
Regards,
Solly Thoobe
Hello,
I'm running a Kamailio instance with some routing logic in it. When a UA sends an INVITE with urn:emergency:service:sos as RURI, Kamailio responds with a 400 Bad Request URI. I have set debug log level and it looks like the problem is in the parse_uri.c when sanity_check("1511", "7") is called:
parse_uri(): bad char ':' in state 3 parsed: <urn:emergency:service> (21) / <urn:emergency:service:sos> (25)
According to RFC8141 (https://www.rfc-editor.org/rfc/rfc8141), this is a correct URN, but maybe I'm missing something.
Is there a way to make Kamailio parse this RURI?
Kamailio version used: 5.6.4
Thank you!
Hello,
It's kamailio 5.6.4.
I can say that there is no segfault in case Identity is OK but bad attempts
sometimes are the reason for segfault. Not sure I can duplicate but it
happens several times per day.
Please look at logs.
in messages:
Apr 3 09:40:02 kam1 kernel: [6381565.762987] kamailio[9141]: segfault at
746c75616665 ip 00007f20c4cab6df sp 00007ffe7ec51470 error 4 in
libcrypto.so.1.1[7f20c4c3b000+19e000]
kamailio.log:
Apr 3 09:40:02 kam1 kamailio[9141]: NOTICE: <script>: it is INVITE with
Identity. Lets check Identity
Apr 3 09:40:02 kam1 kamailio[9141]: CRITICAL: <core>
[core/mem/q_malloc.c:501]: qm_free(): BUG: bad pointer 0x645f6d6574737973
(out of memory block!) called from tls: tls_init.c: ser_free(323) - ignoring
Apr 3 09:40:02 kam1 kamailio[9182]: CRITICAL: <core> [core/pass_fd.c:277]:
receive_fd(): EOF on 53
Apr 3 09:40:02 kam1 kamailio[9100]: ALERT: <core> [main.c:774]:
handle_sigs(): child process 9141 exited by a signal 11
Apr 3 09:40:02 kam1 kamailio[9100]: ALERT: <core> [main.c:777]:
handle_sigs(): core was not generated
Apr 3 09:40:02 kam1 kamailio[9100]: CRITICAL: <core>
[core/mem/q_malloc.c:501]: qm_free(): BUG: bad pointer 0x645f6d6574737973
(out of memory block!) called from tls: tls_init.c: ser_free(323) - ignoring
loadmodule "stirshaken.so"
####### STIRSHAKEN ######
modparam("stirshaken", "vs_verify_x509_cert_path", 1)
modparam("stirshaken", "vs_ca_dir", "/etc/kamailio/stir_CA")
#modparam("stirshaken", "vs_crl_dir", "/etc/kamailio/CRL")
modparam("stirshaken", "as_default_key",
"/etc/kamailio/key/private_key.pem")
modparam("stirshaken", "vs_cache_certificates", 1)
modparam("stirshaken", "vs_cache_dir", "/tmp/cert_cache")
modparam("stirshaken", "vs_cache_expire_s", 100)
if (is_method("INVITE") && is_present_hf("Identity")) {
xlog("L_NOTICE", "it is INVITE with Identity. Lets check
Identity\n");
if (1 == stirshaken_check_identity()) {
xlog("L_NOTICE", "Shaken Identity is OK\n");
} else {
xlog("L_NOTICE", "Shaken Identity is invalid\n");
}
}
Please give me some advice.
Hello all,
How can we handle stateless replies with kemi?
tm has the following param:
modparam("tm", "on_sl_reply", "stateless_replies")
What's the proper way to map the "stateless_reply" onreply_route to a
kemi function.
I'm playing with the app_jsdt module.
Thanks,
Ovidiu