Module: kamailio Branch: master Commit: ebf1aa6dbfeca30d93c63291751417186f9100cd URL: https://github.com/kamailio/kamailio/commit/ebf1aa6dbfeca30d93c6329175141718...
Author: Jake Greene jacobgreene1991@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-06-12T11:49:27+02:00
presence: Add OK response to publish_cache_sync RPC command.
---
Modified: src/modules/presence/doc/presence_admin.xml Modified: src/modules/presence/presence.c
---
Diff: https://github.com/kamailio/kamailio/commit/ebf1aa6dbfeca30d93c6329175141718... Patch: https://github.com/kamailio/kamailio/commit/ebf1aa6dbfeca30d93c6329175141718...
---
diff --git a/src/modules/presence/doc/presence_admin.xml b/src/modules/presence/doc/presence_admin.xml index 22b20f1d46d..c3c86d4ee7a 100644 --- a/src/modules/presence/doc/presence_admin.xml +++ b/src/modules/presence/doc/presence_admin.xml @@ -1287,7 +1287,7 @@ pres_update_watchers("sip:test@kamailio.org", "presence"); <section> <section id="presence.r.publish_cache_sync"> - <title>presence.htable_db_restore</title> + <title>presence.publish_cache_sync</title> <para> Synchronize changes made to the presentity table with the publish cache. </para> diff --git a/src/modules/presence/presence.c b/src/modules/presence/presence.c index 4471f809dc1..688b6dfeb3b 100644 --- a/src/modules/presence/presence.c +++ b/src/modules/presence/presence.c @@ -1860,7 +1860,9 @@ void rpc_presence_publish_cache_sync(rpc_t *rpc, void *ctx) LM_DBG("Synchronizing presentity table with the publish cache.\n"); if (pres_htable_db_restore() == -1 ) { rpc->fault(ctx, 500, "Failed to sync presinity table with the publish cache."); - }; + } else { + rpc->rpl_printf(ctx, "OK"); + } return; }