Sometimes "registered" function return different result for different SIP worker process.
It seems reproduced for a some time after restart. I have locate it on 4.4.6version and reproduce for master branch too. I tried Register/Unregister sip account while testing (via SIP)
children=8
# registrar params
modparam("registrar", "append_branches", 0)
modparam("registrar", "use_path", 1)
modparam("registrar", "path_mode", 0)
modparam("registrar", "max_expires", 1800)
modparam("registrar", "min_expires", 60)
# usrloc params
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 20) #default 60
modparam("usrloc", "db_check_update", 1)
modparam("usrloc", "use_domain", 1)
modparam("usrloc", "nat_bflag", FLB_NATB)
modparam("usrloc", "db_ops_ruid", 1)
request_route{
route(REG);
route(TESTREG);
exit;
}
route[SEND_TESTREG]
{
$uac_req(method)="PUBLISH";
$uac_req(ruri) = $tu;
$uac_req(furi) = $tu;
$uac_req(turi) = $tu;
$uac_req(callid) = $ci;
$uac_req(ouri) = "MYADDRPORT";
uac_req_send();
}
route[PRINT_REGISTERED]
{
if (registered("location", "$tu")){
xlog("L_INFO", "$rm $ci registered");
}
else{
xlog("L_INFO", "$rm $ci NOT registered");
}
}
route[REG] {
if (!is_method("REGISTER")) return;
xlog("L_INFO", "-------------------------------------");
route(PRINT_REGISTERED);
if ( !save("location") ) {
sl_reply_error();
exit;
}
route(PRINT_REGISTERED);
# children=8
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
route(SEND_TESTREG);
exit;
}
route[TESTREG]{
if (!is_method("PUBLISH")) return;
usleep("500");
route(PRINT_REGISTERED);
sl_send_reply("200", "OK");
exit;
}
Oct 9 20:13:38 kamailio[19514] INFO: <script>: REGISTER vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg registered
Oct 9 20:13:38 kamailio[19514] INFO: <script>: REGISTER vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg NOT registered
Oct 9 20:13:38 kamailio[19525] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg NOT registered
Oct 9 20:13:38 kamailio[19519] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg registered
Oct 9 20:13:38 kamailio[19521] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg NOT registered
Oct 9 20:13:38 kamailio[19516] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg NOT registered
Oct 9 20:13:38 kamailio[19513] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg registered
Oct 9 20:13:38 kamailio[19514] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg NOT registered
Oct 9 20:13:38 kamailio[19523] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg registered
Oct 9 20:13:38 kamailio[19527] INFO: <script>: PUBLISH vHUuAy7p-IzjmDD5jblwCsER9SPXm9Kg registered
kamailio -v
version: kamailio 5.1.0-dev7 (x86_64/linux)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.