[SR-Users] alias="server" from db?

Henning Westerholt hw at skalatan.de
Mon Aug 5 14:58:49 CEST 2019


Hello Daniel,

thanks, interesting. I did not used it so far in my deployments (alias sub-domains were sufficient).


Cheers,

Henning


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

________________________________
From: Daniel-Constantin Mierla <miconda at gmail.com>
Sent: Monday, August 5, 2019 1:16:13 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; David Villasmil <david.villasmil.work at gmail.com>; Henning Westerholt <hw at skalatan.de>
Subject: Re: [SR-Users] alias="server" from db?


Hello,

actually this functionality is there since many years - you have to use domain module and set register_myself parameter for it.

Cheers,
Daniel

On 05.08.19 12:44, David Villasmil wrote:
Thanks Henning.

The thing is I’ve got a deployment with several alias= and it will happen the I will need to add more as more services come in, I.e.: a new service. It’s a multi tenant service, so I need some way to add them dynamically without restarting, so that ‘myself’ works...

Thanks!

David

On Mon, 5 Aug 2019 at 07:32, Henning Westerholt <hw at skalatan.de<mailto:hw at skalatan.de>> wrote:

Hello David,

in the upcoming 5.3 you can set an alias over the command line:

    --alias=val  Add an alias, the value has to be '[proto:]hostname[:port]'
                  (like for 'alias' global parameter)

This was added to make it easier to use Kamailio in dynamic deployments.

AFAIK there is no functionality to load the "alias=" keyword directly from the database right now. But depending what you want to achieve, you might be successful by just using a database table with an sqlops module DB query.

Cheers,

Henning

Am 05.08.19 um 00:48 schrieb David Villasmil:
Hello guys,

I can't find a module that does this, i want to load my hostname aliases from db, instead of

alias="host1:5060"
alias="host2:5060"
alias="host3:5060"

I assume it is possible, but how?
first time i need to implement this

Thanks!
Regards,

David Villasmil
email: david.villasmil.work at gmail.com<mailto:david.villasmil.work at gmail.com>
phone: +34669448337



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

--
Regards,

David Villasmil
email: david.villasmil.work at gmail.com<mailto:david.villasmil.work at gmail.com>
phone: +34669448337



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190805/7eaeb6d8/attachment.html>


More information about the sr-users mailing list