<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>are you looking to add a record for alias_db table? If yes, then
the command is:</p>
<p>kamctl aliasdb ...</p>
<p>The kamctl alias is something related to usrloc module.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 29.03.19 11:35, Igor Potjevlesch
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJmJ=jEzz=co2eRgxX9ZE+inPJsyL=_KZgVhSd5FfWqxdRxOVA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Kamailios,
<div><br>
</div>
<div>Any upadte about this subject ? </div>
<div><br>
</div>
<div>Bests Regards, </div>
<div><br>
Igor</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le lun. 4 mars 2019 à 17:05,
Igor Potjevlesch <<a
href="mailto:igor.potjevlesch@gmail.com"
moz-do-not-send="true">igor.potjevlesch@gmail.com</a>> a
écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hi kamailios,
<div><br>
</div>
<div>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 :<br>
</div>
<div><br>
</div>
<div>
<div>[kamailio]# kamctl alias add XXXX@XXXX
<a class="moz-txt-link-freetext" href="sip:XXXXX@XXXX">sip:XXXXX@XXXX</a> </div>
<div>{</div>
<div> "jsonrpc": "2.0",</div>
<div> "error": {</div>
<div> "code": 500,</div>
<div> "message": "Not enough parameters or wrong
format"</div>
<div> },</div>
<div> "id": XXXXX</div>
<div>}</div>
</div>
<div><br>
</div>
<div>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. </div>
<div>I tried to pass the command with two more
parameters :<br>
<br>
<div># kamctl alias add <a
href="mailto:0175951068@trunk7.bornsip.fr"
target="_blank" moz-do-not-send="true">0175951068@trunk7.bornsip.fr</a>
<a
href="mailto:sip%3A0175951068@trunk7.bornsip.fr"
target="_blank" moz-do-not-send="true">sip:0175951068@trunk7.bornsip.fr</a>
NULL NULL</div>
<div>{</div>
<div> "jsonrpc": "2.0",</div>
<div> "result": {</div>
<div> },</div>
<div> "id": 29200</div>
<div>}</div>
<div><br>
</div>
<div>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 ? <br>
</div>
<div>Are we obliged to indicate this two more
parameters ? </div>
</div>
<div>What is the utility of this field ? </div>
<div>Thank you in advance,</div>
<div><br>
</div>
<div>Igor</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>