Hello i would like to use the evrexec module to execute background jobs over exec module mainly because i want to be able to trigger that route manually via rpc from time to time.
in the documentation its is stated we should use tasks that run forever and except using while loop i dont see another way.
and i dont to want to disable max_while_loops. but if i disable it i will get error message like runaway while (1091, 9): more then 100 loops.
so is there another way to do it properly ?
Thanks.
Hello All
kamailio 5.5.3
KEMI Python
Lab environemnt
Is there a reason why this does not work?
Lines 2 and 3 work but the removal of the initial From is not working on Line 1
1. KSR.hdr.remove("From")
2. KSR.hdr.append_to_reply("From: " +KSR.pv.gete("$fn") + " <"+KSR.pv.gete("$fu") + ">" + ";tag=" +KSR.pv.gete("$ft") + "--1234" + "\r\n")
3. KSR.sl.sl_send_reply(200, "OK")
In a SUBSCRIBE/NOTIFY scenario I am trying to control the From Tag returned in the 200OK so I can use the same one in subsequent NOTIFY messages generated outside of Kamailio, my theory is use the From tag in the Subscribe and append it on the reply with -1234 for example (this is only in a Lab at this stage, any other options please let me know)
Whenever I do this I end up with 2 From headers (see below)
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.67:5060;branch=z9hG4bK-f710a11a;rport=46404;received=xx.yy.xx.yy
From: " testuser" sip:limeant30@sip.viazeta.com;tag=bf8745def06c7b12
To: <sip: testuser(a)sip.viazeta.com>;tag=47969b75f14e6954812863912d1cf21c.b5f3318f
Call-ID: b21ba770-9b5836aa(a)192.168.1.67
CSeq: 18137 SUBSCRIBE
Contact: "testuser" <sip:testuser@ xx.yy.xx.yy:46404>
Expires: 3600
From: "testuser" sip:testuser@testbed.com;tag=bf8745def06c7b12--1234
Content-Length: 0
I have tried many many variations but the original From header always persists I have checked the debug logs and it says it has been removed
Anyone know what I am missing? And how to get KSR.hdr.remove("From") to work. Looking in a debug log the header is removed.
Lewis
Heya
I try to use mutli tree mtree to define multiple 'named' prefixes.
id(int,auto) tname(string) tprefix(string) tvalue(string)
0:tech:+1:1
0:tech:+9:1
0:cust:+1:1
0:cust:+9:0
Kamailio is not complaining while loading this file, but mtree.summary
shows no entries.
Any hint on what I may be do 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
______________________________________________________
Hi All,
Really sorry to bother everyone, but if possible, can I ask for a little
help? I've been attempting to get Kamailio configured and working for some
considerable time now (read: Years of occasional tinkering, and weeks of
recent dedicated evening work) -- all without success.
I have a sip trunk from sipgate, with two PSTN numbers assigned. My local
network has a static external IP, with an internal private network.
Currently I have Kamailio running within the intenal network along with
two physical sip telephones (gigaset and an old grandstream), although I do
have the option to put kamailio within a DMZ if necessary.
Would anyone have a working config file that they could share please,
permitting incoming and outgoing calls?
With grateful thanks,
Phil
Hello, we use DMQ module and we need to handle some events:
1) when peer joins cluster
2) when peer leaves cluster
It will be helpful to know which content will be in KDMQ message in
different cases.
Tried to find any specification of KDMQ protocol, but didn't find it. Can
you, please, help me with this?
hello is there a way to change reply code reason other than using () function.
because the first parameterc of change_reply_status needs to be a constant so i can not use pseudo var for first argument of that function.
so i use change_reply_status_code to change to code with a pseudo. but i would also to change the code reason.
Hi,
I tried to remove a Via header line with:
remove_hf("Via");
Original I have this 2 lines:
Via: SIP/2.0/TCP
xxx.xxx.xxx.xxx;branch=z9hG4bK370b.21720bb33c4f8264fde4e7994d288a57.0;i
Via: SIP/2.0/TCP
yyy.yyy.yyy.yyy:53967;received=yyy.yyy.yyy.yyy;rport=53967;branch=z9hG4bKPjxb0bdb2c9624076815f12937cc9e51d;alias
If I insert remove_hf("Via"); in the cfg, I get:
Via: SIP/2.0/TCP
xxx.xxx.xxx.xxx;branch=z9hG4bK370b.21720bb33c4f8264fde4e7994d288a57.0;i
;received=yyy.yyy.yyy.yyy;rport=53967;branch=z9hG4bKPjxb0bdb2c9624076815f12937cc9e51d;alias
Doesn't mattter if the command make sense or not, the result, in my
opinion, is wrong.
The INVITE packet has now an invalid header line.
Any ideas?
version: kamailio 5.6.1 (x86_64/linux)
Best regards,
Bernd
Hi,
Problem Description:
Customer security scan returned unconfined services on Kamailio.
Unconfined processes run in unconfined domains Rationale:
For unconfined processes, SELinux policy rules are applied, but policy
rules exist that allow processes running
in unconfined domains almost all access. Processes running in unconfined
domains fall back to using DAC
rules exclusively. If an unconfined process is compromised, SELinux does
not prevent an attacker from
gaining access to system resources and data, but of course, DAC rules are
still used. SELinux is a security
enhancement on top of DAC rules - it does not replace them
Solution
Investigate any unconfined processes found during the audit action. They
may need to have an existing security
context assigned to them or a policy built for them.
Notes:
Occasionally certain daemons such as backup or centralized management
software may require running
unconfined. Any such software should be carefully analyzed and documented
before such an exception is made.
See Also
https://workbench.cisecurity.org/files/2485
For Kamailio
======
The command returned :
00 kamailio
00 kamailio
00 kamailio
00 kamailio
00 kamailio
10 kamailio
10 kamailio
10 kamailio
10 kamailio
00 kamailio
00 kamailio
00 kamailio
00 kamailio
33 kamailio
33 kamailio
33 kamailio
32 kamailio
17 kamailio
16 kamailio
33 kamailio
00 kamailio
00 kamailio
03 kamailio
05 kamailio
18 kamailio
17 kamailio
18 kamailio
18 kamailio
07 kamailio
00 sleep
is any security context available to assign kamailio processes ?
theses services can be run as confined services ?
Please suggest us with resolution, thanks in advance.
Thanks & Regards,
Hima Bindu.