Thanks Bogdan for looking into this. This is my version;
version: opensips 2.2.0 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. git revision: 9512363 main.c compiled on 15:54:46 Jun 22 2016 with gcc 4.8 Best Regards, Sammy On Wed, Jun 29, 2016 at 6:23 AM, Bogdan-Andrei Iancu <[email protected]> wrote: > 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 Developerhttp://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]") > 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]>[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 > [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
