Module: kamailio Branch: master Commit: 79c6bae4af6c9c9c392b05928ca72afb14ccfbf6 URL: https://github.com/kamailio/kamailio/commit/79c6bae4af6c9c9c392b05928ca72afb...
Author: Wolfgang Kampichler dev@kampichler.info Committer: Wolfgang Kampichler dev@kampichler.info Date: 2021-05-03T09:24:15+02:00
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)
---
Modified: src/modules/lost/functions.c Modified: src/modules/lost/response.h
---
Diff: https://github.com/kamailio/kamailio/commit/79c6bae4af6c9c9c392b05928ca72afb... Patch: https://github.com/kamailio/kamailio/commit/79c6bae4af6c9c9c392b05928ca72afb...
---
diff --git a/src/modules/lost/functions.c b/src/modules/lost/functions.c index c50b70bbad..711c3732bf 100644 --- a/src/modules/lost/functions.c +++ b/src/modules/lost/functions.c @@ -723,8 +723,8 @@ int lost_held_dereference(struct sip_msg *_m, char *_url, char *_pidf,
/* check content and set response code * + 0 nothing found: return 200 - * + 1 value found: return 201 - * + 2 reference found: return 202 + * + 1 reference found: return 201 + * + 2 value found: return 202 * + 3 value and reference found: return 203 */ ret += lost_check_HeldResponse(root); diff --git a/src/modules/lost/response.h b/src/modules/lost/response.h index ef509d2266..991f82ac6e 100644 --- a/src/modules/lost/response.h +++ b/src/modules/lost/response.h @@ -56,8 +56,8 @@
#define ERRORS_NODE (const char *)"errors"
-#define HELD_RESPONSE_VALUE 1 -#define HELD_RESPONSE_REFERENCE 2 +#define HELD_RESPONSE_REFERENCE 1 +#define HELD_RESPONSE_VALUE 2
typedef struct lost_list {