Looks like sipping does not work with TCP transport. I looked at the code it expects the
Hi,I am hitting bit of a wall here.- I am setting bflags for NAT, and SIPPING before save("location") however,when I do "kamctl ul show", the Cflag is 0.I also checked see if the bflags are set or not in the register routine - they are being set.What am I missing?snippets of the config files.#!define FLB_NATB 6#!define FLB_NATSIPPING 7modparam("nathelper", "natping_interval", 30)modparam("nathelper", "ping_nated_only", 1)modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)modparam("nathelper", "sipping_method", "INFO")modparam("nathelper", "sipping_from", "sip:pinger@50.62.1.7")# params needed for NAT traversal in other modulesmodparam("nathelper|registrar|usrloc", "received_avp", "$avp(RECEIVED)")modparam("usrloc", "nat_bflag", FLB_NATB)# Caller NAT detection routeroute[NAT] {#!ifdef WITH_NATforce_rport();if (nat_uac_test("19")) {if (method=="REGISTER") {fix_nated_register();} else {fix_nated_contact();}setflag(FLT_NATS);setbflag(FLB_NATB);}#!endifreturn;}# Handle SIP registrationsroute[REGISTRAR] {if (is_method("REGISTER")){xlog("L_ALERT", "REGISTER: From $fU, $fd To $tU, $td");if (isflagset(FLT_NATS) || isbflagset(FLB_NATB)){setbflag(FLB_NATB);# uncomment next line to do SIP NAT pingingsetbflag(FLB_NATSIPPING);}# 7/28/11 - make sure only one contact location is active# at any given time# unregister("location", "$rU");if (isbflagset(FLB_NATB)){xlog("L_ALERT", "REGISTRAR: For $fU, $fd FLB_NATB set");}if (isbflagset(FLB_NATSIPPING)){xlog("L_ALERT", "REGISTRAR: For $fU, $fd FLB_NATSIPPING set");}if (!save("location")){xlog("L_ALERT", "REGISTRAR: From $fU, $fd Location could not be saved");sl_reply_error();}exit;}}The debug log snippets==================Oct 1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: <script>: REGISTER: From p_krishna_test_com, 50.62.1.7 To p_krishna_test_com, 50.62.1.7Oct 1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: <script>: REGISTRAR: For p_krishna_test_com, 50.62.1.7 FLB_NATB setOct 1 15:58:30 siptest /usr/sbin/kamailio[19515]: ALERT: <script>: REGISTRAR: For p_krishna_test_com, 50.62.1.7 FLB_NATSIPPING setOct 1 15:58:30 siptest /usr/sbin/kamailio[19515]: DEBUG: sl [sl.c:278]: reply in stateless mode (sl)Output of kamctl command====================$ sudo kamctl ul showDomain:: location table=512 records=1 max_slot=1AOR:: p_krishna_test_comContact:: sip:p_krishna_test_com@75.62.17.45:50073;transport=tcp;ob Q=Expires:: 287Callid:: ad2d3a7bf39a4345861db1661576a7f3Cseq:: 54856User-agent:: QliqDesktop 1.0.0 (pjproject 1.10.0/win32)State:: CS_NEWFlags:: 0Cflag:: 0 <================= Cflag is not being set.Socket:: tcp:10.1.0.6:5060Methods:: 8143ThanksKrish Kura