<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Bogdan-Andrei.</p>
<p><br>
</p>
<p>Thank you very much!</p>
<p><br>
</p>
<p>I will study this module now and find what to do.</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>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> Bogdan-Andrei Iancu <bogdan@opensips.org><br>
<b>Enviado:</b> quarta-feira, 20 de janeiro de 2016 10:31<br>
<b>Para:</b> OpenSIPS users mailling list; Rodrigo Pimenta Carvalho<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] Is there some way to set Alias at execution time (dinamically)?</font>
<div> </div>
</div>
<div><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 id="LPlnk484019" 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>
<div style="margin-bottom: 20px; overflow: auto; width: 100%;" id="LPBorder_GT_14532933698260.2953136767811648">
<table style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" id="LPContainer_14532933698230.41650080244924104" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" id="TextCell_14532933698250.21110713395289427">
<div id="LPRemovePreviewContainer_14532933698250.8938119498771657"></div>
<div style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;" id="LPTitle_14532933698250.9453997729628646">
<a target="_blank" href="http://www.opensips.org/html/docs/modules/2.1.x/domain.html" style="text-decoration: none;" id="LPUrlAnchor_14532933698250.05691081910386686">Domain Module - OpenSIPS</a></div>
<div style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;" id="LPMetadata_14532933698250.6856636086199064">
www.opensips.org</div>
<div style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;" id="LPDescription_14532933698260.26212563683983303">
Domain module implements checks that based on domain table determine if a host part of an URI is “ local ” or not. A “ local ” domain is one that the proxy is ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<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 type="cite">
<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>_______________________________________________
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>
</div>
</div>
</div>
</body>
</html>