Module: kamailio
Branch: 5.5
Commit: 9bb2c11de3966c40d84896cf7077131f0bc14f28
URL: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/lost/README
---
Diff: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
Patch: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
---
diff --git a/src/modules/lost/README b/src/modules/lost/README
index 14cf3b36a6..00fa5f2ceb 100644
--- a/src/modules/lost/README
+++ b/src/modules/lost/README
@@ -376,8 +376,15 @@ r(pidf)\n");
* pidf-lo - the PIDF-LO returned in the HELD locationRequest response
* error - any error code returned in the HELD response
- The return value is 200 on success, 400 if an internal error occured,
- or 500 if an error code is returned in the HELD response.
+ The return value is 200..203 on success, 400 if an internal error
+ occured, or 500 if an error code is returned in the HELD response.
+ Success codes in detail are as follows:
+ * 200 - received 200 OK, but neither location-info nor locationURI
+ element found
+ * 201 - received 200 OK with locationURI (aka Location-by-Reference)
+ * 202 - received 200 OK with location-info element (aka
+ Location-by-Value)
+ * 203 - received 200 OK with location-info and locationURI element
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, and BRANCH_ROUTE.
Module: kamailio
Branch: 5.5
Commit: a629760eaff8cac4679482f616c8288623c88ec4
URL: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/jwt/README
---
Diff: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
Patch: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
---
diff --git a/src/modules/jwt/README b/src/modules/jwt/README
index 7a7400a4b1..459f10a822 100644
--- a/src/modules/jwt/README
+++ b/src/modules/jwt/README
@@ -122,14 +122,17 @@ modparam("jwt", "key_mode", 1)
libjwt (e.g., RS256, HS256, ES256, ...)
* claims - the list of claims to be added to JWT, in the format
"name1=value1;name2=value2;..." (same as the SIP parameters
- format).
+ format). The string values can be enclosed in single or double
+ quotes. If a value is not eclosed in between quotes, it is added as
+ numeric value if it is successfully converted to a long value,
+ otherwise is added as string value.
This function can be used from ANY_ROUTE.
Example 1.2. jwt_generate usage
...
jwt_generate("/path/to/prvkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci");
+ "caller='$fU';callee='$tU';callid='$ci';index=100");
...
4.2. jwt_verify(pubkey, alg, claims, jwtval)
@@ -142,7 +145,8 @@ modparam("jwt", "key_mode", 1)
libjwt (e.g., RS256, HS256, ES256, ...)
* claims - the list of claims to be checked they are in the JWT, in
the format "name1=value1;name2=value2;..." (same as the SIP
- parameters format).
+ parameters format, see also the description of claims parameter for
+ jwt_generate()).
* jwtval - the value of the JWT to verify
This function can be used from ANY_ROUTE.
@@ -150,7 +154,7 @@ modparam("jwt", "key_mode", 1)
Example 1.3. jwt_verify usage
...
if(!jwt_verify("/path/to/pubkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci",
+ "caller='$fU';callee='$tU';callid='$ci';index=100",
"$var(jwt)") {
xwarn("failed to verify jwt\n");
}
@@ -171,6 +175,6 @@ modparam("jwt", "key_mode", 1)
Example 1.4. $jwt(name) usage
...
jwt_generate("/path/to/prvkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci");
+ "caller='$fU';callee='$tU';callid='$ci';index=100");
xinfo("jwt is: $jwt(val)");
...