Thank you very much Daniel.

 

I have adjusted the parameter for nat_uac_test() to 128 without success.

 

Then I disable NATDETECT route and only load modules nathelper and rtpproxy and set their parameters to

modparam("nathelper", "natping_interval", 10)

modparam("nathelper", "ping_nated_only", 0)

modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)

modparam("nathelper", "sipping_method", "OPTIONS")

modparam("nathelper", "sipping_from", "sip:pinger@192.168.1.44")

 

modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")

 

and

 

route[REGISTRAR] {

      if (is_method("REGISTER")) {

               setbflag(FLB_NATSIPPING);

               if (!save("location"))

               sl_reply_error();

               exit;

}

}

 

 

 

cflag after registration is 128 so in my opinion FLB_NATSIPPIG flag is set but OPTIONS pings on client's side.

 

kamailio.cfg please you find attached

 

Thank you

 

Regards

 

Petr

---------- Původní zpráva ----------
Od: Daniel-Constantin Mierla <miconda@gmail.com>
Komu: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Datum: 10. 11. 2014 9:22:38
Předmět: Re: [SR-Users] beginner's problem with sipping


Hello,

if you are in a private network, you need to adjust the parameter for nat_uac_test() function to ignore private addresses in check tests -- see the readme of nathelper module.

Cheers,
Daniel

On 09/11/14 19:33, Petr Wozniak wrote:

Dear sr-users,

 

I am beginner and apologize for bothering you with such a trivial problem.

I would like to test sip UDP and TCP keepalive pinging. Kamailio and client  are on the same network (192.168.1.44 and 192.168.1.20) that implies not behind NAT. So in kamailio.cfg I have set

 

modparam("nathelper", "ping_nated_only", 0)

 

My simple kamailio.cfg please you find enclosed.

From logfiles on client's side implies that neither UDP nor OPTIONS pings are sending from kamailio.
If somebody would be so kind to help me I will be very glad.

 

Thank you in advance

 

Regards

 

Petr



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 24-27, Berlin - http://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users