Hello guys,
I can't find a simple way of changing the username and recalculate the has
in a REGISTER... do i have to use textops?
Regards,
David Villasmil
email: david.villasmil.work(a)gmail.com
phone: +34669448337
Hi
I still have odd behaviour with the SST module:
modparam("sst", "min_se", 300)
if (sstCheckMin("1")) {
xlog("L_ERR", "$cfg(route) Session Timer too small\n");
exit;
}
setflag(FLT_DLG); # set the dialog flag
setflag(FLT_SST); # Set the sst flag
if(is_present_hf("Session-Expires")) {
$avp(dlgtimeout) = $(hdr(Session-Expires){s.int});
}
On an INVITE containing those header:
Session-Expires: 3600;refresher=uac
Min-SE: 600
Supported: 100rel,timer
Expires: 330
Now Kamailio replies:
SIP/2.0 422 Session Timer Too Small
Min-SE: 300
What am I doing wrong?
--
Mit freundlichen Grüssen
-Benoît Panizzon- @ HomeOffice und normal erreichbar
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web http://www.imp.ch
______________________________________________________
Happy Eastern
Kamailio 5.4 used.
On dialogues calls, I noticed this happening on the second re-invite to refresh the session from the B side.
dlg_onroute(): unable to find dialog for INVITE with route param 'df9.da75' [2557:22445] and call-id '14148a68-f1b2-485d-b5a2-f9dd7773d2c0'
The did df9.da75 is identical to the one in the route-header on the first re-invite from the B side, before this one. No CDR was (yet) generated, and the dialogues is still present and on-going according to the database:
CallID [14148a68-f1b2-485d-b5a2-f9dd7773d2c0]
H-Entry: 2557 H-ID: 22445
But most probably not in memory as kamcmd dlg.stat_active shows zero (this is on a development node, so no other calls running).
There are no sip messages that end the call in between those two re-invites. I see no session timeouts or similar in the logs.
Any hint what could cause Kamailio not to find the corresponding dialogue on this re-invite?
--
Mit freundlichen Grüssen
-Benoît Panizzon- @ HomeOffice und normal erreichbar
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web http://www.imp.ch
______________________________________________________
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