Hi kamailio Users,
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@XXXX sip:XXXXX@XXXX { "jsonrpc": "2.0", "error": { "code": 500, "message": "Not enough parameters or wrong format" }, "id": XXXXX }
So in the version 5.2, the table aliasdb replace the table alias ? We are using the table alias for the incomming call, and we implemented scripts to add with the command kamctl alias add the information needed in the tavble alias to route the call. But since the version 5.2 we need to add an argument "path" in this command, and we don't know how to put it at "NULL" or how we can use this argument ?
Can you help us with this?
Bests Regards
Igor
Le ven. 5 juil. 2019 à 16:57, Igor Potjevlesch igor.potjevlesch@gmail.com a écrit :
Hi Daniel-Constantin,
So in the version 5.2, the table aliasdb replace the table alias ? We are using the table alias for the incomming call, and we implemented scripts to add with the command kamctl alias add the information needed in the tavble alias to route the call. But since the version 5.2 we need to add an argument "path" in this command, and we don't know how to put it at "NULL" or how we can use this argument ?
Can you help us with this?
Bests Regards
Hello,
On 26.07.19 16:41, Igor Potjevlesch wrote:
Hi kamailio Users,
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@XXXX sip:XXXXX@XXXX { "jsonrpc": "2.0", "error": { "code": 500, "message": "Not enough parameters or wrong format" }, "id": XXXXX }
So in the version 5.2, the table aliasdb replace the table alias ?
no, they are different tables. The alias table is something similar to location table, so you can have like a permanent contact.
We are using the table alias for the incomming call, and we implemented scripts to add with the command kamctl alias add the information needed in the tavble alias to route the call. But since the version 5.2 we need to add an argument "path" in this command, and we don't know how to put it at "NULL" or how we can use this argument ?
Can you help us with this?
The kamctl alias add ... is using internally the ul.add rpc command, see its docs at:
* https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.r.ad...
In short, try to use . for a null value of path attribute.
Cheers, Daniel
Bests Regards
Igor
Le ven. 5 juil. 2019 à 16:57, Igor Potjevlesch <igor.potjevlesch@gmail.com mailto:igor.potjevlesch@gmail.com> a écrit :
Hi Daniel-Constantin, So in the version 5.2, the table aliasdb replace the table alias ? We are using the table alias for the incomming call, and we implemented scripts to add with the command kamctl alias add the information needed in the tavble alias to route the call. But since the version 5.2 we need to add an argument "path" in this command, and we don't know how to put it at "NULL" or how we can use this argument ? Can you help us with this? Bests Regards
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Kamailio-users,
Thank you Daniel-Constantin for your answer, I added the alias with the right parameters, but now I have a problem with the "ruri", after it pass the function lookup("aliases") in my kamailio.cfg, the value of the "ruri" (request-uri) is <null>, do you have any idea if this function has changed in the version 5.2.0 ?
Bests Regards,
Cheers, Igor
Hello Igor,
you find the changes for 5.2 in this document: https://www.kamailio.org/wiki/features/new-in-5.2.x
For the details have a look e.g. to "git log" output for the modules or the Changelog file.
Cheers,
Henning
Am 31.07.19 um 18:22 schrieb Igor Potjevlesch: Hi Kamailio-users,
Thank you Daniel-Constantin for your answer, I added the alias with the right parameters, but now I have a problem with the "ruri", after it pass the function lookup("aliases") in my kamailio.cfg, the value of the "ruri" (request-uri) is <null>, do you have any idea if this function has changed in the version 5.2.0 ?
Bests Regards,
Cheers, Igor
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services