Dear everyone,
I am wondering if there is a way to print the Global Parameter values such as debug, children, flags, etc. just to make sure that they have been changed. I am aware that I can use the `kamcmd cfg.get core debug` command to check the value of the debug parameter for example, but I am wondering if there is a way to do this in the configuration file of Kamailio.
Additionally, I would like to know if there is a way to print in the log of Kamailio that it received a JSONRPC request over UDP. I have been able to print some logs when using HTTP and JSONRPC to know that the server has received a JSONRPC request, but I am unsure how to do this when using UDP.
I would greatly appreciate it if someone could provide some guidance.
Thank you in advance for your time and assistance.
Best regards.
Hello,
Thank you very much! I've used your suggestion to accomplish some amazing things. However, I'm having an issue when calling the procedures over jsonrpc with http. I've noticed that the number of "200" responses gets incremented by 2, which is not the case when using the `*kamcmd*` tool. I suspect that this may be due to jsonrpc using *http/https*, which iscausing Kamailio to treat it as a "200" http responses code as "200" SIP codes. Could you advise on how to avoid this issue?
Is there any further configuration that needs to be done?
Best regards.
Hello everyone,
I'm trying to store the call statistics in my Kamailio server. I'm using SQLite just to understand what type of information i can store.
I'm using the dialog module with the classic parameters:
enable_stats => 1
dlg_flag => 4
hash_size => 4096
db_url => sqlite:///usr/local/etc/kamailio/kamailio.sqlite
db_mode => 1
I'm able to open the DB but everything is empty, am i using the wrong modules? or i didn't configure the server well?
The goal is to store CALL CDR in the DB, so that i can see who called & how many times etc
Hi, is this expected behavior?
I have two target hosts in a dispatcher set, 10.20.20.118 (prio 5) and 10.20.20.252 (prio 10).
When I have 10.20.20.252 turned off, dispatcher still tries to send packets to that host, even when the status flags are IP.
root@vs-rs01:/etc/kamailio# kamcmd dispatcher.list
{
NRSETS: 1
RECORDS: {
SET: {
ID: 1
TARGETS: {
DEST: {
URI: sip:10.20.20.252:5060
FLAGS: IP
PRIORITY: 10
LATENCY: {
AVG: 0.000000
STD: 0.000000
EST: 0.000000
MAX: 0
TIMEOUT: 62
}
}
DEST: {
URI: sip:10.20.20.118:5060
FLAGS: AP
PRIORITY: 5
LATENCY: {
AVG: 3.876000
STD: 2.965000
EST: 5.058000
MAX: 14
TIMEOUT: 0
}
}
}
}
}
}
Hi
I am using advertise in the listen interface for our NATed setup within AWS.
Using following listen statement in kamailio: -
version: kamailio 5.5.1
listen=udp:10.0.1.4:5060 advertise 3X.1XX.1XX.2XX:5060
dispatcher.list
1 sip:10.0.4.23:5060 8 10 weight=11 #FreeSwitch 1
We are seeing that kamailio (10.0.1.4) is sending
two SIP INVITEs via dispatcher to FreeSwitch at 10.0.4.23 which seems strange or is it expected behaviour? (As seen below)
SIP INVITE Request: -
WAN Address >> Kamailio AWS NATed address >> FreeSwitch 1
1X.2X.2X.2X >> 3X.1XX.1XX.2XX
10.0.1.4 >> 10.0.4.23
10.0.1.4 >> 10.0.4.23
Many thanks
Regards
Muhammad Zaka
I am looking to configure Kamailio and RTPEngine to play a wav file for any new calls during a scheduled asterisk server maintenance. I have set up the following within route{} to send the call to a early_media route based on a variable that I can set on the server using kamcmd.
route {
...
if ($sht(config=>maint)=="1") {
if (is_method("INVITE") && !has_totag()) {
xlog ("L_INFO","Ongoing maintenance. Call-ID:$ci | Method: $rm");
route(early_media);
}
}
...
}
route[early_media] {
xlog("Maintenance: handling early_media\n");
rtpengine_manage("direction=external direction=external");
$var(body) = $(rb{re.subst,/(IP4.).*/\1##server IP redacted##/g});
set_reply_body($var(body), "application/sdp");
t_send_reply("183", "Session Progress");
sleep(2);
unblock_dtmf("all");
play_media("file=/etc/kamailio/media/maintenance.wav");
sleep(21);
rtpengine_delete();
t_reply("480","Temporarily Unavailable");
}
This mostly works as I hear the recorded message in place of the ringing tone when a call is processed by kamailio and then a busy signal is heard as part of the 480 reply at the end. The sleep's are in place to match the duration of the recorded message as otherwise the 480 is sent immediately following the start of the play_media. Feel free to let me know if there is a better solution to wait the duration of the media file and then proceed with processing instead of using sleep().
Is there a way to instead send a CANCEL or a BYE instead of a 480 after the wav file is played? I tried using t_cancel_callid("$ci", "$cs", "0") as well as a dlg_bye("all") at the end of the early_media route and neither seemed to send any headers out.
hello,
I have issue of no voice on kamailio configured for webrtc. I have
configured rtpengine with public and private interface. My kamilio has two
interface of pubic and private ip. Somebody has suggested me that there is
no ice trickling happens. I am using jssip webrtc client. Kindly suggest me
or help me with this. I have send another email for same issue to this
group and didnt get any reply. Kindly help me
I need a help on issue with rtpengine configuration and I didn't get any
repy for it. Kindly check about it and help me. If i won't get any help
kindly let me know, so I can stop waiting for your reply
On Mon, Mar 13, 2023 at 12:50 PM <sr-users-bounces(a)lists.kamailio.org>
wrote:
> Your mail to 'sr-users(a)lists.kamailio.org' with the subject
>
> webrtc audio issue
>
> Is being held until the list moderator can review it for approval.
>
> The message is being held because:
>
> The message is larger than the 150 KB maximum size
>
> Either the message will get posted to the list, or you will receive
> notification of the moderator's decision.
>