[OpenSIPS-Users] Is there some way to set Alias at execution time (dinamically)?
Rodrigo Pimenta Carvalho
pimenta at inatel.br
Wed Jan 20 13:41:09 CET 2016
Hi Bogdan-Andrei.
Thank you very much!
I will study this module now and find what to do.
Best regards.
RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
________________________________
De: Bogdan-Andrei Iancu <bogdan at opensips.org>
Enviado: quarta-feira, 20 de janeiro de 2016 10:31
Para: OpenSIPS users mailling list; Rodrigo Pimenta Carvalho
Assunto: Re: [OpenSIPS-Users] Is there some way to set Alias at execution time (dinamically)?
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
Domain Module - OpenSIPS<http://www.opensips.org/html/docs/modules/2.1.x/domain.html>
www.opensips.org
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 ...
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<mailto: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/e762fc72/attachment.htm>
More information about the Users
mailing list