Hello Sammy,

What OpenSIPS version you have (opensips -V) and where did you get it ? There is a very similar bug which was already fixed.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 28.06.2016 22:59, SamyGo wrote:
Hi All,

I've OpenSIPS 2.2 and doing some tests with it I can't seem to find any OPTIONS triggering for the registered users.

I've following settings for usrloc module and nathelper

loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   2)
modparam("usrloc", "db_url",
"mysql://root:Q4FRX@localhost/opensips_2_2")


loadmodule "nathelper.so"
modparam("nathelper", "natping_interval", 10)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "sipping_bflag", "SIP_PING_FLAG")
modparam("nathelper", "sipping_from", "sip:[email protected] <mailto:sip%[email protected]>")
modparam("nathelper", "received_avp", "$avp(received)")
modparam("nathelper", "natping_tcp", 1)
modparam("nathelper", "ping_threshold", 10)
modparam("nathelper", "max_pings_lost", 5)

I force set NAT flag for all SIP packets either INVITE or REGISTER

route{
route(SIP_CHECK);
# Handles and adjusts packets for NAT'e clients
force_rport();
if (nat_uac_test("23")) {
if (is_method("REGISTER")) {
fix_nated_register();
setbflag(NAT);
} else {
fix_nated_contact();
setflag(NAT);
}
}
setflag(NAT);

and set SIP_PING_FLAG before save() function:


if ( proto==TCP || proto==TLS || 0 ) setflag(TCP_PERSISTENT);

if (isflagset(NAT)) {
setbflag(SIP_PING_FLAG);
}

if (!save("location"))
sl_reply_error();

If I look at online users the flags are seen applied to the extensions:

root@test1:/etc/opensips# opensipsctl ul show
Domain:: location table=512 records=1
        AOR:: [email protected] <mailto:[email protected]>
Contact:: sip:[email protected]:30514;rinstance=38d9f5f00287404f;transport=udp Q=
  Expires:: 3093
  Callid:: 1955a010ad311f31OGZjZmJjZWZhZTQxMjNjOGRhOTZiYjUxNWQ4Y2JiODg.
  Cseq:: 2
  User-agent:: eyeBeam release 1003s stamp 31159
  State:: CS_SYNC
  Flags:: 0
Cflags:: SIP_PING_FLAG
  Socket:: udp:X.X.X.X:5060
  Methods:: 5951


I waited for like 15 minutes but no OPTIONS triggered from opensips !

Any guidance/help will be appreciated.


Regards.
Sammy



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to