Module: kamailio Branch: master Commit: e5c145f69508658a692be9be219f466ee2aca5d9 URL: https://github.com/kamailio/kamailio/commit/e5c145f69508658a692be9be219f466e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-10-20T14:55:53+02:00
corex: rpc corex.list_aliases use now lowercase for field names
- better coherence with the other rpc commands
---
Modified: src/modules/corex/corex_rpc.c
---
Diff: https://github.com/kamailio/kamailio/commit/e5c145f69508658a692be9be219f466e... Patch: https://github.com/kamailio/kamailio/commit/e5c145f69508658a692be9be219f466e...
---
diff --git a/src/modules/corex/corex_rpc.c b/src/modules/corex/corex_rpc.c index b6e959c88d3..8a57a6a7a38 100644 --- a/src/modules/corex/corex_rpc.c +++ b/src/modules/corex/corex_rpc.c @@ -121,8 +121,8 @@ static void corex_rpc_list_aliases(rpc_t *rpc, void *ctx) rpc->fault(ctx, 500, "Internal error alias structure"); return; } - if(rpc->struct_add(th, "sSd", "PROTO", get_valid_proto_name(a->proto), - "ADDR", &a->alias, "PORT", a->port) + if(rpc->struct_add(th, "sSd", "proto", get_valid_proto_name(a->proto), + "addr", &a->alias, "port", a->port) < 0) { rpc->fault(ctx, 500, "Internal error alias attributes"); return;