<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks Olle.<BR> <BR>If I understood, I have to fill the "username" on table alias as the same "username" on subscriber table, is that correct? Then, the alias name (like bob) will be on the alias table field "contact", right? So, once I fill these two fields on the alias table Kamailio will be able to call either the username on subscriber and the contact on alias. Is that correct?<BR> <BR>Finally, when you say "timestamp" where should I do it, " expires" field of alias table?<font color="#376ebd"> </font><BR> <BR>Cheers, and many thnaks for your help!<BR> <BR>Moacir<br> <BR><div><hr id="stopSpelling">From: oej@edvina.net<br>Date: Mon, 27 May 2013 12:08:26 +0200<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] Alias table<br><br><br><div><div>27 maj 2013 kl. 11:58 skrev Moacir Ferreira <<a href="mailto:moacirferreira@hotmail.com">moacirferreira@hotmail.com</a>>:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font: 12pt/normal Calibri; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal;"><div dir="ltr"><font face="Times New Roman">Hi,</font><br><font face="Times New Roman"></font> <br><p class="ecxMsoNormal" style="padding: 0px;"><span lang="EN-US">For the first time I need to setup na alias in Kamailio. I.e.: I would like to have the phone number<a href="mailto:1000@my_domain.com">1000@my_domain.com</a><span class="ecxApple-converted-space"> </span>also being able to be called as<span class="ecxApple-converted-space"> </span><a href="mailto:bob@my_domain.com">bob@my_domain.com</a>. However I took a look at the Kamailio alias table and I found a lot of other fields.</span></p><div style="padding: 0px;"><span lang="EN-US"></span> <br class="ecxwebkit-block-placeholder"></div><p class="ecxMsoNormal" style="padding: 0px;"><span lang="EN-US">Question: can anyone tell me the usage of such table (why so many fileds)? Am I looking into the right table to achieve what I want?</span></p><div><br></div></div></div></blockquote><br></div><div>For simplicity, the table is the same as the location table - we use the same functions, the same module.</div><div>For aliases, not many fields are used though - the address and the alias in the contact field. Remember to make sure you set the timestamp to a date in the future.</div><div><br></div><div>You can also use db_alias that may be easier, but doesn't cache in ram like the usrloc-managed aliases.</div><div><br></div><div>/O</div><br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</div>                                         </div></body>
</html>