[OpenSIPS-Users] OpenSIPS 2.2 SIP ping not triggering
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jun 29 17:07:41 CEST 2016
Sammy,
Please update your sources with the latest 2.2 (either from git branch
2.2, either nightly tarbal for 2.2 from download.opensips.org)
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 29.06.2016 18:04, SamyGo wrote:
> 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
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> 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 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:pinger at siptest.saevolgo.ca
>> <mailto:sip%3Apinger at siptest.saevolgo.ca>")
>> 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 at test1:/etc/opensips# opensipsctl ul show
>> Domain:: location table=512 records=1
>> AOR:: 1009 at siptest.saevolgo.ca <mailto:1009 at siptest.saevolgo.ca>
>> Contact::
>> sip:1009 at 64.231.959.69:30514;rinstance=38d9f5f00287404f;transport=udp
>> <mailto:sip:1009 at 64.231.959.69: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
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160629/9025d79a/attachment-0001.htm>
More information about the Users
mailing list