Hi ppl,
After a branch route fails, I need to re-evaluate the next destination and
adjust RR parameters, if need be, like for example adjust the nat=yes|priv.
failure_route[MANAGE_PSTN_FAILURE] {
...
remove_record_route();
record_route();
route(NATMANAGE);
...
route(RELAY);
}
The result is that the new branch is stripped of "Record-Route:
<sip:MYIP>", but the params remained. Moreover, record_route hasn't been
re-added as instructed in the failure route.
Request headers of the initial branch that will eventually timeout and fail:
2019/04/27 18:29:18.034992 10.22.0.1:5060 -> 10.22.0.100:5060
INVITE sip:1514XXXXXXX@10.22.0.100 SIP/2.0
Record-Route: <sip:10.22.0.1;r2=on;lr=on;did=9e2.3dd2;nat=priv>
Record-Route: <sip:65.XX.XX.1;r2=on;lr=on;did=9e2.3dd2;nat=priv>
New request branch after failure:
2019/04/27 18:29:19.538292 65.XX.XXX.1:5060 -> 65.XX.XX.2:5060
INVITE sip:1514XXXXXXX@65.XX.XX.2 SIP/2.0
;lr=on;did=9e2.3dd2;nat=priv>
kamailio -v
version: kamailio 5.1.6 (x86_64/linux) 7d1964
Much obliged.
--Sergiu
HI
i m gaurav
i have installed kamailio 5.1.x on Ubuntu server 18.4
i want a solution for video conferencing with kamailio as i am using
freeswitch with it
is there reference guide for that
plz help
--
*Regards:*
Gaurav Kumar
Hello,
please ask this usage related questions on our "sr-users" list. Kamailio is not doing much regarding the video calls. E.g. if your calls work for voice with kamailio, they should also work for video. All the setup needs to be done in freeswitch.
I found a (outdated) howto with google: https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video
Maybe this helps.
Henning
Am 27.04.19 um 13:22 schrieb Gaurav Bmotra:
HI
i m gaurav
i have installed kamailio 5.1.x on Ubuntu server 18.4
i want a solution for video conferencing with kamailio as i am using freeswitch with it
is there reference guide for that
plz help
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev(a)lists.kamailio.org<mailto:sr-dev@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Hi All,
I have a kamailio installed in my setup which is working properly in IPV4
configuration.
I want to perform IPV6 configuration, I don't have any idea how to
configure it,
I have tried few things by changing *kamailio.cfg* file but did not work.
I am sharing my *kamailio.cfg *file which is working fine in ipv4 Kindly
help me to configure for IPV6.
lets say my Ipv6 address is : 2402:3a80:d1a:f45a:fe44:2e54:ed2b:9bb2
Thanks,
Hi all
Having this issue with kamailio: Can't set module parameter
Apr 25 09:57:10 kamailio: ERROR: <core> [core/modparam.c:141]: set_mod_param_regex(): parameter <dst_avp> of type <1> not found in module <dispatcher>
Apr 25 09:57:10 kamailio: CRITICAL: <core> [core/cfg.y:3511]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 119, column 50: Can't set module parameter
Apr 25 09:57:10 kamailio: ERROR: <core> [core/modparam.c:141]: set_mod_param_regex(): parameter <grp_avp> of type <1> not found in module <dispatcher>
Apr 25 09:57:10 kamailio: CRITICAL: <core> [core/cfg.y:3511]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 120, column 50: Can't set module parameter
Apr 25 09:57:10 kamailio: ERROR: <core> [core/modparam.c:141]: set_mod_param_regex(): parameter <cnt_avp> of type <1> not found in module <dispatcher>
Apr 25 09:57:10 kamailio: CRITICAL: <core> [core/cfg.y:3511]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 121, column 50: Can't set module parameter
here is full conf file: https://dpaste.de/bP3E
OS:
NAME="CentOS Linux"
VERSION="7 (Core)"
Software version:
kamailio 5.2.2 (x86_64/linux) 67f967
Thanks in advance,
tmbc
I think elaborating on the setup may help someone to provide inputs on this. Below is the setup.
Client 1 --> Kamailio proxy --> Backend SIP server
Client 2 --> Kamailio proxy --> Backend SIP server
Client 3 --> Kamailio proxy --> Backend SIP server
After I register all three clients, see only one TCP connection is being used between "Kamailio proxy - Backend SIP server".
Is there a way to achieve separate TCP connection to Backend SIP server from kamailio.
thanks,
raj
From: R, Rajkumar (Raj)
Sent: Monday, April 22, 2019 3:45 PM
To: sr-users(a)lists.kamailio.org
Subject: Config to control TCP connection reuse
Hi,
In my setup(kamailio in stateless mode to a backend server), for any number of client registrations kamailio (in stateless mode) is reusing the TCP connection. Let's say if I register 3 different clients through kamailio to my backend server - see only one TCP connection is used, which I do not want. I have gone through the core modules to see if any TCP config param exists to control on this, but couldn't find one.
Could anyone help how to achieve different TCP connections to same destination in kamailio?
thanks,
raj
Hi,
Recently, I started to use dmq_usrloc module. I successfully set it up.
Unfortunately, the documentation does not specify the behavior of
dmq_usrloc module with other Kamailio modules. For example, I see a bunch
of KDMQ messages are exchanged between nodes, but how the lookup() function
behaves with dmq_usrloc, or what is it's effect on a db_mode of 3!
Regards
I'm trying to send an SDP from a SIP client to Janus using JSON over HTTP.
The problem is that Janus is erroring on the SDP content with the following error:
JANUS HTTP: Get SDP for echo plugin: {#012 "janus": "error",#012 "error": {#012 "code": 454,#012 "reason": "JSON error: on line 9: control character 0xd near '\"v=0'"#012 }#012} Result code 200
I tried using {s.escape.common} to escape any quotations, commas etc but it doesn't appear to replace the control characters with newlines.
Any suggestions on how best to remove these control characters so that Janus will accept the SDP over JSON?
Here is the relevant section of kamailio.cfg:
# HTTP: Request SDP for echo test plugin sdp_get("$avp(sdp)");
$var(res) = http_connect("janus", "/janus/$var(JANUS-ID)/$var(ECHO-ID)", "application/json", "{ \"janus\" : \"message\", \"transaction\" : \"testtesttest99\", \"body\" : { \"audio\" : true }, \"jsep\" : { \"type\" : \"offer\", \"sdp\" : \"$(avp(sdp){s.escape.common})\" }}", "$avp(janus-pluginsession)"); xlog("L_INFO", "JANUS HTTP: Get SDP for echo plugin: $avp(janus-pluginsession) Result code $var(res)\n");
Greetings,
Is there a way to know in reply_route if a reply has direction downstream
or upstream regarding the first INVITE?
I know there are vars and methods for finding this out on requests, but i
can't find anything for replies.
Thanks in advance,
Best Regards,
Duarte Rocha
Hello,
I just noticed that the logged „start_time" as well as „end_time" of a canceled call is set to the „invite time“.
If done this way, it is harder to calculate the „ringing time“.
Is there an option to change this behaviour (i.e. to log the time of the received „bye“ instead)?
(If done so, the ringing time would always be the time between start and invite …)
Or is there a special reason for this behaviour?
My CDR settings are as followed:
modparam("acc", "cdr_enable", 1)
modparam("acc", "cdr_expired_dlg_enable", 1) # log unanswered / open dialogs
modparam("acc", "cdr_on_failed", 1) # log also not answered calls
modparam("acc", "cdr_extra", "inviteTime=$dlg_var(inviteTime)"
modparam("acc", "cdr_log_enable", 1) # activate write to syslog
modparam("acc", "cdr_facility", "LOG_LOCAL6") # syslog
modparam("acc", "cdr_start_on_confirmed", 1)
modparam("acc", "time_mode", 0) #syslog timestamp
modparam("acc", "early_media", 0)
modparam("acc", "report_ack", 0)
modparam("acc", "report_cancels", 0)
modparam("acc", "detect_direction", 0)
modparam("acc", "log_flag", FLT_ACC) # needed for syslog
modparam("acc", "log_missed_flag", FLT_ACCMISSED) # need for logging missed calls in syslog
Regards
Jan-Hendrik