<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Rodrigo,<br>
<br>
Use the domain module to list aliases via DB ; and in your script,
where you have the "myself" checks use one of the functions from domain
module:<br>
is_from_local() or is uri_host_local()<br>
See:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/domain.html">http://www.opensips.org/html/docs/modules/2.1.x/domain.html</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 19.01.2016 20:00, Rodrigo Pimenta
Carvalho wrote:<br>
</div>
<blockquote
cite="mid:BY2PR02MB1655559D64B84CC3BCCB37CEB5C10@BY2PR02MB1655.namprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear OpenSIPS-users,</p>
<p><br>
</p>
<p>I have used the global parameter Alias successful. The same
for advertised_address. </p>
<p><br>
</p>
<p>Now, I have to configure these values at execution time. Such
values will be determined just after starting my system. So, I
need a way to configure these values in a dynamic way.<br>
</p>
<p><br>
</p>
<p>Then, I will use the core function set_advertised_address.</p>
<p>But, I did not find a core function to set the Alias at
execution time?</p>
<p><br>
</p>
<p>Is there a way to set Alias at execution time? Is there a
function for that or can I set Alias with a database query.
Ex: Alias = select from....</p>
<p><br>
</p>
<p>Any hint will be very helpful! </p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>