Hello Team,
Thank you for the amazing product. I am a newbie to kamailio and currently
trying to use kamailio as a SIP Registrar (for a multidomain). Here is the
requirement
1. We already have a mysql database (name: VOIP) with a table named
VoipSubscribers which contains the userid, password and domain information
of all the users.
2. We want the ability in kamailio to use the same VoipSubscribers table
for user registrations and also store the location information in the same
database (VOIP)
May I know how to achieve this without altering the table schema?
Thank you in advance.
Regards,
Aditya Uppuluri
Hello,
I'm trying to connect kamailio to Microsoft Teams.
Dispatch is correctly configured and sended.
Following this tutorial : https://skalatan.de/en/blog/kamailio-sbc-teams, I
added an Event_Route to add contact header to SIP OPTION from dispath to MS
:
event_route[tm:local-request] {
xlog("*** tm:local-request *** ");
if(is_method("OPTIONS") && $ru =~ "pstnhub.microsoft.com") {
xlog("L_INFO", "Append new contact !\n");
append_hf("Contact: <sip:MY_SBC_NAME.COM:5061
;transport=tls>\r\n");
}
xlog("L_INFO", "Sent out tm request: $mb\n");
}
When I check the log to see my sended frame, I don't see a contact header
field :
INFO: <script>: Append new contact !
INFO: <script>: Sent out tm request :
OPTIONS sip:sip.pstnhub.microsoft.com;transport=tls SIP/2.0
Via: SIP/2.0/TLS MY_SBC_NAME.COM:5061
;branch=z9hG4bK4497.f3e5e754000000000000000000000000.0
To: <sip:sip.pstnhub.microsoft.com;transport=tls>
From: <sip:MY_SBC_NAME.COM.fr>;tag=a76e006ace3802951ed860e08df964af-7971
CSeq: 10 OPTIONS
Call-ID: 2e1278ea77796160-9837@MY_SBC_IP
Max-Forwards: 70
Content-Length: 0
User-Agent: kamailio (5.2.1 (x86_64/linux))
According the documentation about textop, append_hf(txt[, hdr]) :
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE.
So my question is append HF can be used in Event_route ?
Is there any other way to add contact header ?
Regards,
Arnaud
Hi,
I am running stress tests on kamalilio , at times i see this on screen
(process:30959): GLib-CRITICAL **: 21:43:56.961:
g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
version: kamailio 5.5.3
Kamailio does not crash and keeps accepting calls though. Is it anything
alarming.
--
Muhammad Danish Moosa
" The core of mans' spirit comes from new experiences. "___ Christopher
McCandless
Hello,
has anyone experienced issues with Kamailio running on Debian 11 Bullseye?
It's now more than 2 months since Debian 11 release and I wonder if
people started to migrate to it for production systems.
So far I did only basic tests on it, although I have a Debian Testing
that I used for compilation and simple tests during the past several
months before Debian 11 release.
If someone discovers issues or changes in behaviour with various
libraries or applications/database servers, report them to the tracker
to try to address them as soon as possible.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
Hi Guys,
I am trying to do following code
KSR.ndb_redis.redis_cmd("srvN", "SET var " .. testvar, "r");
it works fine but if testvar has special character like SPACE or % , it
does not work. For example when testvar="asdsada%Dasda"; it starts
considering %D as place holder and does not add key to redis (does not
raise error as well)
With Space I tried to use delimeters like "" or '' but none of them work.
For now I have got it working through , search and replace but thats not a
clean solution.
Any suggestions?
--
Muhammad Danish Moosa
" The core of mans' spirit comes from new experiences. "___ Christopher
McCandless
Hi, it seems execution of usleep eventually reaches this code:
https://github.com/kamailio/kamailio/blob/master/src/core/ut.h#L508
so it seems it would block the process and so it might cause delay of
packet processing if many processes do this at the same time.
Can someone confirm this?
Hello im using kamailio 5.5.3
and im trying to use pseudo vars in ds_list_exists and ds_select function but it does not work.
ds_list_exists return -2
with ds_list_exists("6") it works
$var(dset)=6 or $avp(dset)=6 it does not work
ds_list_exists("$var(dset)") --> return -2
ds_list_exists("$avp(dset)") --> return -2
Thanks.
Forwarding my reply to the list, using gmail's reply button set Henning as
the sole recipient :-\
---------- Forwarded message ---------
From: George Diamantopoulos <georgediam(a)gmail.com>
Date: Sat, 26 Jun 2021 at 02:25
Subject: Re: [SR-Users] Possible memory leak on 5.5.x (new)?
To: Henning Westerholt <hw(a)skalatan.de>
Hello Henning,
Thanks for your reply. Here's what has come up after a few hours:
shm55: https://pastebin.com/h9JCePmc
shm54: https://pastebin.com/Nx5xEEnA
It seems to me htable is the culprit? Are you seeing anything different? 54
has been running for 77020 seconds, 55 for 28521 (significantly less).
I'm going to turn it off until we figure something out...
BR,
George
On Fri, 25 Jun 2021 at 18:17, Henning Westerholt <hw(a)skalatan.de> wrote:
> Hello,
>
>
>
> Good observation. Please run the memory statistics CLI commands to get
> more hints about the module that might cause it (as per below link). Then
> please report more details. If you can point to a particular module, you
> can also open an issue on our tracker.
>
>
>
> https://www.kamailio.org/wiki/tutorials/troubleshooting/memory
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> *From:* sr-users <sr-users-bounces(a)lists.kamailio.org> *On Behalf Of *George
> Diamantopoulos
> *Sent:* Friday, June 25, 2021 4:53 PM
> *To:* Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
> *Subject:* [SR-Users] Possible memory leak on 5.5.x (new)?
>
>
>
> Hello all,
>
>
>
> I'm still investigating the (most likely non-kamailio-related) memory leak
> of my previous message to the list, there have been no developments so far.
> I'll update if anything changes.
>
>
>
> This concerns a new finding which seems to affect kamailio 5.5.x. I have
> two kamailio instances receiving the same traffic via round-robin. I
> upgraded only one of them to 5.5.1 and left the other to 5.4.6 as I feared
> of any issues arising. I was lucky to do so, because with identical
> configuration, 5.5.x seems to run out of SHM very quickly. Here are links
> to graphs produced by our monitoring system:
>
>
>
> Old kamailio (no memory leak): https://pasteboard.co/K8fVBiD.png
>
> New kamailio (possible leak): https://pasteboard.co/K8fVS9N.png
>
>
>
> The configuration uses mtree, htable, vars and vns extensively. Has anyone
> come across anything similar? Let me know if I can provide any further
> information to help disect this. Thanks!
>
>
>
> BR,
>
> George
>