From 01ec19f73a7257a83bd9abb9a02c12e2c3d225e0 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 21 Mar 2024 07:20:48 +0100 Subject: [PATCH] secsipid: note that get url function is doing caching - use get url function in example for verify --- src/modules/secsipid/doc/secsipid_admin.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", "$var(pubkey)"); if(secsipid_verify("$hdr(Identity)", "$var(pubkey)", "A")) { ... } ... } @@ -356,7 +356,8 @@ request_route { secsipid_get_url(url, ovar) - 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. The url parameters can contain pseudo-variables and ovar has to be