Hello guys,
This is weird, using kamctl I am able to do things from like:
kamctl trusted show +----+--------------+-------+--------------+--------------+------+----------+ | id | src_ip | proto | from_pattern | ruri_pattern | tag | priority | +----+--------------+-------+--------------+--------------+------+----------+ | 1 | 1.2.3.4 | udp | | NULL | | 0 | +----+--------------+-------+--------------+--------------+------+----------+
but reloading, etc doesn't work:
kamctl trusted reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 22107 }
Other cases:
kamctl domain showdb +----+-------------------------------------+------+---------------------+ | id | domain | did | last_modified | +----+-------------------------------------+------+---------------------+ | 1 | proxy.domain.com | NULL | 2018-01-25 00:56:24 | +----+-------------------------------------+------+---------------------+
but show:
kamctl domain show { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 22277 }
Any ideas why this might be happening?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 ᐧ
Hello,
those with table fromat output are sql queries done directly to db server (e.g., mysql) via db cli (mysql app), so they do not depend on kamailio.cfg and kamailio running at that time.
Those that give "method not found" are rpc commands sent to Kamailio and they require that specific modules are loaded.
In your case, are permissions and domain modules loaded?
Cheers, Daniel
On 25.01.18 02:09, David Villasmil wrote:
Hello guys,
This is weird, using kamctl I am able to do things from like:
kamctl trusted show +----+--------------+-------+--------------+--------------+------+----------+ | id | src_ip | proto | from_pattern | ruri_pattern | tag | priority | +----+--------------+-------+--------------+--------------+------+----------+ | 1 | 1.2.3.4 | udp | | NULL | | 0 | +----+--------------+-------+--------------+--------------+------+----------+
but reloading, etc doesn't work:
kamctl trusted reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 22107 }
Other cases:
kamctl domain showdb +----+-------------------------------------+------+---------------------+ | id | domain | did | last_modified | +----+-------------------------------------+------+---------------------+ | 1 | proxy.domain.com http://proxy.domain.com | NULL | 2018-01-25 00:56:24 | +----+-------------------------------------+------+---------------------+
but show:
kamctl domain show { "jsonrpc": "2.0", "error": { "code": 500, "message": "Method Not Found" }, "id": 22277 }
Any ideas why this might be happening?
Regards,
David Villasmil email: david.villasmil.work@gmail.com mailto:david.villasmil.work@gmail.com phone: +34669448337 ᐧ
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users