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

David Villasmil david.villasmil.work at gmail.com
Mon Aug 5 12:44:04 CEST 2019


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> 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
> phone: +34669448337
>
> _______________________________________________
> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://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
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190805/3b20ff13/attachment.html>


More information about the sr-users mailing list