take a look at JSONRPC and xHTTP.

There is a nice article by Ben Kaufmann in at Kamailio RPC over HTTP
Introduction | kaufmania
<https://kaufmania.wordpress.com/2023/09/10/kamailio-rpc-over-http-introduction/>
 explaining.
(i have this URL in my Favorites list, not sure if it is still available)


Atenciosamente / Kind Regards / Cordialement / Un saludo,


*Sérgio Charrua*

*www.kahea.ai <http://www.kahea.ai> / www.voip.pt <http://www.voip.pt>*

*OpenTelecom* - Consulting for Telecoms, Lda
Tel.: +351  <callto:+351+91+104+12+66>91 631 11 44

Email : *[email protected] <[email protected]>*

This message and any files or documents attached are strictly confidential
or otherwise legally protected.

It is intended only for the individual or entity named. If you are not the
named addressee or have received this email in error, please inform the
sender immediately, delete it from your system and do not copy or disclose
it or its contents or use it for any purpose. Please also note that
transmission cannot be guaranteed to be secure or error-free.








On Mon, Nov 24, 2025 at 4:48 PM Benoit Panizzon via sr-users <
[email protected]> wrote:

> 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 --
> [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