Explorar o código

dispatcher(k): enable ds_reload also for rpc interface

- previous commit took the changes for mi
Daniel-Constantin Mierla %!s(int64=13) %!d(string=hai) anos
pai
achega
289dd5e992
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      modules_k/dispatcher/dispatcher.c

+ 0 - 7
modules_k/dispatcher/dispatcher.c

@@ -928,13 +928,6 @@ static const char* dispatcher_rpc_reload_doc[2] = {
  */
  */
 static void dispatcher_rpc_reload(rpc_t* rpc, void* ctx)
 static void dispatcher_rpc_reload(rpc_t* rpc, void* ctx)
 {
 {
-	if(dstid_avp_name.n!=0) {
-		LM_ERR("No reload support when call load dispatching is enabled."
-				" Do not set dstid_avp param if you do not use alg 10.\n");
-		rpc->fault(ctx, 500, "Command disabled");
-		return ;
-	}
-
 	if(!ds_db_url.s) {
 	if(!ds_db_url.s) {
 		if (ds_load_list(dslistfile)!=0) {
 		if (ds_load_list(dslistfile)!=0) {
 			rpc->fault(ctx, 500, "Reload Failed");
 			rpc->fault(ctx, 500, "Reload Failed");