jsonrpcs execution error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

jsonrpcs execution error

David Villasmil
Hello guys,

i configured jsonrpc on kamailio.cfg and RPCFIFOPATH on kamctlrc to the same file, seems to work for some commands, but not for others:

root@ip-172-31-30-160:/home/admin# kamctl trusted show
+----+--------------+-------+--------------+--------------+------+----------+
| id | src_ip       | proto | from_pattern | ruri_pattern | tag  | priority |
+----+--------------+-------+--------------+--------------+------+----------+
|  1 | 1.2.3.4 | udp   |              | NULL         |      |        0 |
|  2 | 5.4.3.2 | udp   |              | NULL         |      |        0 |
+----+--------------+-------+--------------+--------------+------+----------+

root@ip-172-31-30-160:/home/admin# kamctl trusted dump
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32022
}

root@ip-172-31-30-160:/home/admin# kamctl trusted reload
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32041
}


Any help?

Thanks!

Regards,

David Villasmil
phone: +34669448337

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: jsonrpcs execution error

David Villasmil
Any help on this, guys?


Regards,

David Villasmil
phone: +34669448337

On Wed, Aug 23, 2017 at 5:51 PM, David Villasmil <[hidden email]> wrote:
Hello guys,

i configured jsonrpc on kamailio.cfg and RPCFIFOPATH on kamctlrc to the same file, seems to work for some commands, but not for others:

root@ip-172-31-30-160:/home/admin# kamctl trusted show
+----+--------------+-------+--------------+--------------+------+----------+
| id | src_ip       | proto | from_pattern | ruri_pattern | tag  | priority |
+----+--------------+-------+--------------+--------------+------+----------+
|  1 | 1.2.3.4 | udp   |              | NULL         |      |        0 |
|  2 | 5.4.3.2 | udp   |              | NULL         |      |        0 |
+----+--------------+-------+--------------+--------------+------+----------+

root@ip-172-31-30-160:/home/admin# kamctl trusted dump
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32022
}

root@ip-172-31-30-160:/home/admin# kamctl trusted reload
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32041
}


Any help?

Thanks!

Regards,

David Villasmil
phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank">+34669448337


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: jsonrpcs execution error

Daniel-Constantin Mierla-6

Hello,

do you get any error message in syslog?

The show command is just using the db client to get the records directly from database. The others do jsonrpc.

Cheers,
Daniel


On 01.09.17 18:38, David Villasmil wrote:
Any help on this, guys?


Regards,

David Villasmil
phone: +34669448337

On Wed, Aug 23, 2017 at 5:51 PM, David Villasmil <[hidden email]> wrote:
Hello guys,

i configured jsonrpc on kamailio.cfg and RPCFIFOPATH on kamctlrc to the same file, seems to work for some commands, but not for others:

root@ip-172-31-30-160:/home/admin# kamctl trusted show
+----+--------------+-------+--------------+--------------+------+----------+
| id | src_ip       | proto | from_pattern | ruri_pattern | tag  | priority |
+----+--------------+-------+--------------+--------------+------+----------+
|  1 | 1.2.3.4 | udp   |              | NULL         |      |        0 |
|  2 | 5.4.3.2 | udp   |              | NULL         |      |        0 |
+----+--------------+-------+--------------+--------------+------+----------+

root@ip-172-31-30-160:/home/admin# kamctl trusted dump
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32022
}

root@ip-172-31-30-160:/home/admin# kamctl trusted reload
{
  "jsonrpc":  "2.0",
  "error":  {
    "code": -32000,
    "message":  "Execution Error"
  },
  "id": 32041
}


Any help?

Thanks!

Regards,

David Villasmil
phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank" moz-do-not-send="true">+34669448337



_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users