Browse code

lost: response code fix in lost_held_dereference()

- HELD response check returning
200: received 200OK but nothing found (shall not happen)
201: received 200OK and loc reference found
202: received 200OK and value found (pidf-lo)
203: receiced 200OK and value + reference found (pidf-lo)

(cherry picked from commit 79c6bae4af6c9c9c392b05928ca72afb14ccfbf6)

Wolfgang Kampichler authored on 03/05/2021 07:24:15
Showing 2 changed files
... ...
@@ -723,8 +723,8 @@ int lost_held_dereference(struct sip_msg *_m, char *_url, char *_pidf,
723 723
 
724 724
 		/* check content and set response code
725 725
 		 * + 0 nothing found: return 200
726
-		 * + 1 value found: return 201
727
-		 * + 2 reference found: return 202
726
+		 * + 1 reference found: return 201
727
+		 * + 2 value found: return 202
728 728
 		 * + 3 value and reference found: return 203
729 729
 		 */
730 730
 		ret += lost_check_HeldResponse(root);
... ...
@@ -56,8 +56,8 @@
56 56
 
57 57
 #define ERRORS_NODE (const char *)"errors"
58 58
 
59
-#define HELD_RESPONSE_VALUE 1
60
-#define HELD_RESPONSE_REFERENCE 2
59
+#define HELD_RESPONSE_REFERENCE 1
60
+#define HELD_RESPONSE_VALUE 2
61 61
 
62 62
 typedef struct lost_list
63 63
 {