[SR-Users] Kamailio does not forward BYE to Asterisk

Henning Westerholt hw at skalatan.de
Mon Sep 14 14:15:48 CEST 2020

Hello Egemen,

have you tried to debug it and find out why the BYE is not routed in this particular case from Kamailio? You already mentioned the R-URI, what is in this particular BYE? Is Kamailio listening on all VLAN IPs? Just to share some ideas.

About the performance question, I know of some installation that have about 5-10 interfaces on a box and did not heard of problems so far.

The main topic to consider here (iMHO) is that it gets a bit complicated to handle many different interfaces in one kamailio, so for that reasons it might be a good idea to split it to different VMs or instances.



Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of egemen ulus
Sent: Friday, September 11, 2020 11:58 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Kamailio does not forward BYE to Asterisk

Hi all,

I have an infrastructure with Kamailio (reg), Asterisks farm, and Kamailio (4.3) proxy which dispatches calls.

                                                                                                Trunk-1 (Vlan_A)
Kam(reg) <> Asterisk Farm (5) <> Kam(proxy)     <>      Trunk-2 (Vlan_B)
                                                                                                Trunk-3 (Vlan_C)

For each trunk, I have to use the IP of the VLAN interface in "contact header". That means when I need to send a call to Trunk-1 I have to set Vlan_A IP address on the contact header. I have achieved that by rewriting Contact Header.

append_hf("Contact: <sip:$fU@$var(recieved)>\r\n", "Call-ID");   #by using db

But this causes a problem, Kamailio does not forward the BYE message that comes from Trunk-X to Asterisk (In before, the BYE message had Asterisk IP in R-URI). However, when I use topoh module it forward properly for one trunk. But I can not set multiple mask IP in topoh module.

I'm using the dialog module and I thought it can handle all requests in one dialog to forward to the correct asterisk but it did not.

Is there any suggestion for this case?
And also how many sub-interfaces can Kamailio handle for a good performance?  Or do you suggest multiple Kamailio instances instead of multiple sub-interfaces on one server?

Virus-free. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200914/64d24a6a/attachment.htm>

More information about the sr-users mailing list