Module: kamailio
Branch: master
Commit: 01ec19f73a7257a83bd9abb9a02c12e2c3d225e0
URL:
https://github.com/kamailio/kamailio/commit/01ec19f73a7257a83bd9abb9a02c12e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-21T07:21:27+01:00
secsipid: note that get url function is doing caching
- use get url function in example for verify
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/01ec19f73a7257a83bd9abb9a02c12e…
Patch:
https://github.com/kamailio/kamailio/commit/01ec19f73a7257a83bd9abb9a02c12e…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml
b/src/modules/secsipid/doc/secsipid_admin.xml
index c43ccf3c637..f8f2e823a21 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -338,7 +338,7 @@ request_route {
...
request_route {
...
- http_client_query("https://provider.com/stir-shaken/cert.pem",
"$var(pubkey)");
+
secsipid_get_url("https://provider.com/stir-shaken/cert.pem".pem",
"$var(pubkey)");
if(secsipid_verify("$hdr(Identity)", "$var(pubkey)",
"A")) { ... }
...
}
@@ -356,7 +356,8 @@ request_route {
<function moreinfo="none">secsipid_get_url(url, ovar)</function>
</title>
<para>
- Get the content of a URL and store the result in a variable.
+ Get the content of a URL and store the result in a variable. The result
+ is cached by libsecsipid, if caching is enabled.
</para>
<para>
The url parameters can contain pseudo-variables and ovar has to be