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

egemen ulus ulus_egemen at hotmail.com
Mon Sep 14 12:13:56 CEST 2020


Hi,

Is there anybody who have a suggestion for this case?

Regards

Egemen U.

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: sr-users <sr-users-bounces at lists.kamailio.org> on behalf of egemen ulus <ulus_egemen at hotmail.com>
Sent: Friday, September 11, 2020, 12:58 PM
To: Kamailio (SER) - Users Mailing List
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.

###
remove_hf("Contact:");
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?


[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>    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/e423fbbc/attachment.htm>


More information about the sr-users mailing list