[OpenSIPS-Users] OpenSIPS 2.2 SIP ping not triggering

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jun 29 12:23:47 CEST 2016


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 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
> 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/d057c80e/attachment.htm>


More information about the Users mailing list