Hi,
we deploy our gateways through ansible, and while doing that we insert
a database entry for the gateway into the dispatcher table. After
that, we issue a dispatcher.reload on our Kamailio servers. You need
some delegate_to statements in your playbook, but this way we can add
gateways automatically.
After inserting and reloading we even wait a few seconds and then
issue a kamcmd dispatcher.list within the playbook to check whether
the new gateway is reachable from Kamailio.
HTH
Sebastian
On Wed, Nov 29, 2017 at 7:33 AM, Narayan P <narayana88(a)outlook.com> wrote:
Hello Joel,
I am using mysql database.
Thanks,
Narayan
________________________________
From: Narayan P
Sent: Wednesday, November 29, 2017 6:31:46 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] how to add new media server in dispatcher table
through "ANSIBLE"
Hello Joel,
I am using mysql database.
Thanks,
Narayan
________________________________
From: sr-users <sr-users-bounces(a)lists.kamailio.org> on behalf of Joel
Serrano <joel(a)gogii.net>
Sent: Wednesday, November 29, 2017 3:14:35 AM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] how to add new media server in dispatcher table
through "ANSIBLE"
What backend database are you using for Kamailio?
On Tue, Nov 28, 2017 at 11:32 AM, Narayan P <narayana88(a)outlook.com> wrote:
> Hello Experts,
>
>
> I am new to ansible and deploying kamailio through ansible.Sucessfully
> deployed kamailio but my requirement is to add media server through
> ansible.As I am using dispatcher module in kamailio,not able to find any
> script that directly insert one media server IP and port into dispatcher
> table from ansible.(I am using ansible in one system and deploying
> kamailio
> in other).
>
>
>
>
> Any suggestion will be highly appreciated as always.
>
>
>
> Thanks,
>
> Narayan
>
> +91-9035438928
>
>
>
>
>