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

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 1 10:41:50 CEST 2019


Hello,

are you looking to add a record for alias_db table? If yes, then the
command is:

kamctl aliasdb ...

The kamctl alias is something related to usrloc module.

Cheers,
Daniel

On 29.03.19 11:35, Igor Potjevlesch wrote:
> Hi Kamailios,
>
> Any upadte about this subject ? 
>
> Bests Regards, 
>
> Igor
>
> Le lun. 4 mars 2019 à 17:05, Igor Potjevlesch
> <igor.potjevlesch at gmail.com <mailto:igor.potjevlesch at gmail.com>> a écrit :
>
>     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
>     <mailto:0175951068 at trunk7.bornsip.fr>
>     sip:0175951068 at trunk7.bornsip.fr
>     <mailto:sip%3A0175951068 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,
>
>     Igor
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com

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


More information about the sr-users mailing list