Module: kamailio
Branch: master
Commit: 135f7b5e2114617b0bc408175ec146d248d01d3a
URL: 
https://github.com/kamailio/kamailio/commit/135f7b5e2114617b0bc408175ec146d248d01d3a

Author: Kamailio Dev <kamailio....@kamailio.org>
Committer: Kamailio Dev <kamailio....@kamailio.org>
Date: 2023-03-20T11:01:25+01:00

modules: readme files regenerated - ims_registrar_pcscf ... [skip ci]

---

Modified: src/modules/ims_registrar_pcscf/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/135f7b5e2114617b0bc408175ec146d248d01d3a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/135f7b5e2114617b0bc408175ec146d248d01d3a.patch

---

diff --git a/src/modules/ims_registrar_pcscf/README 
b/src/modules/ims_registrar_pcscf/README
index 3bfb0e6003..02327a005c 100644
--- a/src/modules/ims_registrar_pcscf/README
+++ b/src/modules/ims_registrar_pcscf/README
@@ -312,6 +312,33 @@ pcscf_save("location");
      * domain - Logical domain within the registrar. If a database is used
        then this must be name of the table which stores the contacts.
 
+   The return code may have the following values:
+     * ( 1) OK
+     * (-1) Parsing of contact data failed
+     * (-2) Deregistration in progress
+
+   For db_mode = DB_ONLY (3) setting for ims_usrloc_pcscf module modparam
+   following logic is implemented:
+     * To avoid race time conditions between a REREGISTER and the expiry
+       handler state machine in the scscf an approach is chosen to refuse
+       a REREGISTER in time window of 20 seconds after pcontact expiry on
+       the pcscf (thus allowing expiry handling to finish). REREGISTER is
+       refused in this scenario with return code -2.
+     * In case a REREGISTER arrives at pcscf and the respective pcontact
+       is expired longer than time window of 20 seconds registration also
+       is refused with return code -2 and additionaly PUBLISH is sent to
+       scscf with expiry = 0.
+     * The rc -2 shall be handled in register.cfg script as follows:
+       pcscf_save_pending("location");
+       switch ($retcode) {
+       case -1:
+       .......
+       case -2:
+       send_reply("500", "Deregister in progress - Please try again");
+       exit;
+       break;
+       }
+
 4.3. pcscf_follows_service_routes(domain)
 
    Returns true, if the request is following the "learned" service-routes

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to