[OpenSIPS-Users] Is there some way to set Alias at execution time (dinamically)?
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jan 20 13:31:09 CET 2016
Hi Rodrigo,
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:
is_from_local() or is uri_host_local()
See:
http://www.opensips.org/html/docs/modules/2.1.x/domain.html
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 19.01.2016 20:00, Rodrigo Pimenta Carvalho wrote:
>
> Dear OpenSIPS-users,
>
>
> I have used the global parameter Alias successful. The same for
> advertised_address.
>
>
> 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.
>
>
> Then, I will use the core function set_advertised_address.
>
> But, I did not find a core function to set the Alias at execution time?
>
>
> 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....
>
>
> Any hint will be very helpful!
>
>
> Best regards.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160120/3b28ab36/attachment.htm>
More information about the Users
mailing list