Hello,

you can use one of the json modules to create the JSON request and then use 
http_client or http_async_client module, the usual way.

Cheers,

Henning


-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com


> -----Original Message-----
> From: Benoit Panizzon via sr-users <[email protected]>
> Sent: Montag, 24. November 2025 16:17
> To: [email protected]
> Cc: Benoit Panizzon <[email protected]>
> Subject: [SR-Users] how to jsonrpc_exec() to remote server?
> 
> Hi Gang
> 
> We use a mysql database to store call forwarding information for
> customers.
> 
> To reduce the amount of mysql queries from the config, we use an
> expiring htable to cache this information.
> 
> This has the drawback that if a customer alters his call forwarding
> settings this might not be immediately active as long as old data is
> still cached in the htable.
> 
> To avoid this I am looking for a way to remove cached data when a
> customer calls a service number.
> 
> jsonrpc_exec() calling htable.delete on the key works.
> 
> We have a pair of redundant servers so I would need to also delete the
> key on another server via RPC HTTP request.
> 
> How can I perform an jsonrpc call via HTTP to a remote server?
> 
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon-
> --
> I m p r o W a r e   A G    -    Leiter Commerce Kunden
> ______________________________________________________
> 
> Zurlindenstrasse 29             Tel  +41 61 826 93 00
> CH-4133 Pratteln                Fax  +41 61 826 93 01
> Schweiz                         Web  http://www.imp.ch
> ______________________________________________________
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions -- sr-
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- 
[email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to