Преглед на файлове

presence: Add OK response to publish_cache_sync RPC command.

Jake Greene преди 2 години
родител
ревизия
ebf1aa6dbf
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      src/modules/presence/doc/presence_admin.xml
  2. 3 1
      src/modules/presence/presence.c

+ 1 - 1
src/modules/presence/doc/presence_admin.xml

@@ -1287,7 +1287,7 @@ pres_update_watchers("sip:[email protected]", "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>

+ 3 - 1
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;
 }