Hi, 

I have setup Kamailio on Centos 7 as a proxy in front of Asterisk in the same 
datacenter, using the dispatcher module. I have noted that large INVITEs sent 
by Kamailio do not arrive at the Asterisk box. It seems the network is dropping 
fragmented UDP traffic. This does not happen however when I contact the 
Asterisk box directly from outside the datacenter. Then large INVITES are 
arriving are Asterisk. So the problem is either in Kamailio or in the 
datacenter.

I have analysed the problem with ngrep and tcpdump/wireshark. In normal mode 
(udp4_raw=no setting) Kamailio is producing UDP packets above 1500 bytes and 
leaves all fragmentation to the operating system. Enabling raw udp in Kamailio 
and lowering the MTU in the server didnt help. I even disabled offloading of 
UDP fragmentation to the NIC to get to the bottom of this. However nothing 
helps. Only forcing TCP in the dispatcher works when having large INVITES going 
to Asterisk.

In any case, it appears that there is no guarantee that fragmented UDP arrives 
at all.  As far as I am aware, the recommendation is to use TCP if messages are 
bigger than 1400 bytes. If so, how can I force Kamailio to send messages over 
1400 bytes only in TCP mode?

Or is there some other way how to deal with this?

Thanks for any hints.

Gerry


_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to