@vingarzan commented on this pull request.


> +enum isc_mark_status
+{
+       ISCMARK_FOUND_ROUTE_HEADER =
+                       0, /*Request has been received from AS, old ISCMARK 
found in Route header field*/
+       ISCMARK_FOUND_LUMPS =
+                       1, /*Request to AS has been rejected or timed out, old 
ISCMARK found in lumps*/
+       ISCMARK_MISSING_START_TRIGGERING =
+                       2, /*Request has been received without old ISCMARK in 
Route header field*/
+       ISCMARK_MISSING_START_TRIGGERING_SAR =
+                       3 /*SAR/SAA has happened with HSS, due to terminating 
request (no old ISCMARK)*/
+};
+
+/* ISCMARK Status bits*/
+
+/* ISCMARK is obtained in failure route*/
+#define ISCMARK_FAILURE (1 << 0)
+/* ISCMARK could not be found */
+#define ISCMARK_MISSING (1 << 1)

Pretty clear now. Anyway, maybe to further reduce the cognitive load (I'm 
getting old :stuck_out_tongue_closed_eyes:), I'd suggest writing it like this.

```suggestion
/* ISCMARK Status bits*/

/* ISCMARK is obtained in failure route*/
#define ISCMARK_FAILURE (1 << 0)
/* ISCMARK could not be found */
#define ISCMARK_MISSING (1 << 1)

enum isc_mark_status
{
        /** Request has been received from AS, old ISCMARK found in Route 
header field */
        ISCMARK_FOUND_ROUTE_HEADER = 0, 
        /** Request to AS has been rejected or timed out, old ISCMARK found in 
lumps */
        ISCMARK_FOUND_LUMPS = ISCMARK_FAILURE, 
        /** Request has been received without old ISCMARK in Route header 
field*/
        ISCMARK_MISSING_START_TRIGGERING =      ISCMARK_MISSING, 
        /** SAR/SAA has happened with HSS, due to terminating request (no old 
ISCMARK) */
        ISCMARK_MISSING_START_TRIGGERING_SAR = ISCMARK_MISSING|ISCMARK_FAILURE 
};

```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4018#pullrequestreview-2501927634
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4018/review/2501927...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to