Hello all,
I'm using sqlops module to connect to postgres and get the routing of calls from postgresql database.
In order to troubleshoot issues in case they happened, I added each call details to Kamailio log.
In some cases, when there is heavy traffic load (around 100 cps), I don't find some calls in Kamailio log, knowing that I can find them on the switch log (switch sending the invite packets to Kamailio).
When checking the traces on these calls taken by the switch, it's clear that Kamailio is not responding to the invite packets sent by the switch. It could be because there are no available process to handle the call at this moment (I have set fork=14)
Is it possible to check if there are calls pending in the queue?
Regards,
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