Module: kamailio Branch: master Commit: 4b93311ed9b960133dfd08806168d3bce6a9b4e8 URL: https://github.com/kamailio/kamailio/commit/4b93311ed9b960133dfd08806168d3bce6a9b4e8
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-26T22:19:08+01:00 kamcmd: set default jsonrpc socket --- Modified: utils/kamcmd/kamcmd.c --- Diff: https://github.com/kamailio/kamailio/commit/4b93311ed9b960133dfd08806168d3bce6a9b4e8.diff Patch: https://github.com/kamailio/kamailio/commit/4b93311ed9b960133dfd08806168d3bce6a9b4e8.patch --- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 52c6b7e6308..349cad367d8 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -43,6 +43,8 @@ #include <time.h> /* time */ #include <sys/time.h> +#define KAMCMD_JSONRPC_SOCKET "unixd:" RUN_DIR SRNAME "_rpc.sock" + #ifdef USE_READLINE #include <readline/readline.h> #include <readline/history.h> @@ -2315,7 +2317,11 @@ int main(int argc, char **argv) } } if(sock_name == 0) { - sock_name = DEFAULT_CTL_SOCKET; + if(_kamcmd_rpc_type == KAMCMD_JSONRPC) { + sock_name = KAMCMD_JSONRPC_SOCKET; + } else { + sock_name = DEFAULT_CTL_SOCKET; + } } /* init the random number generator */ _______________________________________________ Kamailio - Development Mailing List -- [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!
