Hello everyone!
I have system with Kamailio v5.1 which needs to send OPTIONS packets to all active clients. Here is full Nathelper module configuration:
*modparam("nathelper", "received_avp", "$avp(s:received)")* *modparam("nathelper", "natping_interval", 30)* *modparam("nathelper", "ping_nated_only", 0)* *modparam("nathelper", "sipping_bflag", FLB_SIPPING)* *modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org sip%3Apinger@kamailio.org")*
It works fine if client is connected over UDP. But as soon as I will switch to TCP or register with client that uses WS, Kamailio stops generating OPTIONS.
Does anyone know if it is correct behavior or something is wrong?
Thanks a lot!
hi. It is ok; nathelper sends OPTIONS for UDP only, TCP is managed by core (by using params like "tcp_keepalive")
On 20 August 2018 at 19:03, Володимир Іванець volodyaivanets@gmail.com wrote:
Hello everyone!
I have system with Kamailio v5.1 which needs to send OPTIONS packets to all active clients. Here is full Nathelper module configuration:
*modparam("nathelper", "received_avp", "$avp(s:received)")* *modparam("nathelper", "natping_interval", 30)* *modparam("nathelper", "ping_nated_only", 0)* *modparam("nathelper", "sipping_bflag", FLB_SIPPING)* *modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org sip%3Apinger@kamailio.org")*
It works fine if client is connected over UDP. But as soon as I will switch to TCP or register with client that uses WS, Kamailio stops generating OPTIONS.
Does anyone know if it is correct behavior or something is wrong?
Thanks a lot!
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Aug 20, 2018 at 07:03:22PM +0300, ?????????????????? ?????????????? wrote:
It works fine if client is connected over UDP. But as soon as I will switch to TCP or register with client that uses WS, Kamailio stops generating OPTIONS.
Does anyone know if it is correct behavior or something is wrong?
It is correct (as it is intended). AFAIK your only other choice is to take matters in your own hands and generate the OPTIONS yourself outside of kamailio.
Dmitri and Daniel, thank you very much!
2018-08-20 20:22 GMT+03:00 Daniel Tryba d.tryba@pocos.nl:
On Mon, Aug 20, 2018 at 07:03:22PM +0300, ?????????????????? ?????????????? wrote:
It works fine if client is connected over UDP. But as soon as I will
switch
to TCP or register with client that uses WS, Kamailio stops generating OPTIONS.
Does anyone know if it is correct behavior or something is wrong?
It is correct (as it is intended). AFAIK your only other choice is to take matters in your own hands and generate the OPTIONS yourself outside of kamailio.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users