[OpenSIPS-Users] OpenSIPS 2.2 SIP ping not triggering
SamyGo
govoiper at gmail.com
Tue Jun 28 21:59:29 CEST 2016
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")
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160628/840c27e2/attachment.htm>
More information about the Users
mailing list