[SR-Users] Kamailio v5.2 kamctl alias add problem

Igor Potjevlesch igor.potjevlesch at gmail.com
Mon Mar 4 17:05:10 CET 2019

Hi kamailios,

I meet a problem with the " kamctl alias add" command in the 5.2 version, I
saw that the module used to add an alias had changed, and now the command
result with an error :

[kamailio]# kamctl alias add XXXX at XXXX sip:XXXXX at XXXX
  "jsonrpc":  "2.0",
  "error":  {
    "code": 500,
    "message":  "Not enough parameters or wrong format"
  "id": XXXXX

I read the function who return this message " static void ul_rpc_add(rpc_t*
rpc, void* ctx)" in the ul_rpc.c in the usr_loc module.
I tried to pass the command with two more parameters :

# kamctl alias add 0175951068 at trunk7.bornsip.fr
sip:0175951068 at trunk7.bornsip.fr NULL NULL
  "jsonrpc":  "2.0",
  "result": {
  "id": 29200

And this time it works correctly, but I saw thaht the test prameters was in
the field "path" , do you know why we have to indicate a path ?
Are we obliged to indicate this two more parameters ?
What is the utility of this field ?
Thank you in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190304/b2798af0/attachment.html>

More information about the sr-users mailing list