Yup use "opensipsctl fifo ds_set_state i 1 sip:192.168.26.231:5060" to change 
during runtime
And "opensipsctl fifo ds_set_state a 1 sip:192.168.26.231:5060" to enable

Met vriendelijke groet,

Rik Broers
Voice Engineer

[https://www.motto.nl/sig_images/logo.png]<https://www.motto.nl/>
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend 
bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, vragen 
wij u om de inhoud niet te gebruiken, een retourbericht te sturen naar de 
afzender om aan te geven dat het verkeerd geadresseerd is, en de inhoud 
vervolgens te vernietigen.

The information taken in this message can be confidential and is only meant for 
the addressed. If you are not the rightful receiver of this message, we ask 
you, not to use the information in this message, inform the sender about the 
incorrectly delivered email and then destroy the contents of this email.


Van: [email protected] [mailto:[email protected]] 
Namens Hamid Hashmi
Verzonden: woensdag 4 november 2015 12:59
Aan: [email protected]
Onderwerp: [OpenSIPS-Users] opensips v2.1.1 fifo ds_reload not working

Am i doing it right ?

mysql> select * from dispatcher;
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
| id | setid | destination             | socket | state | weight | priority | 
attrs     | description  |
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
|  1 |     1 | sip:192.168.26.230:7000 | NULL   |     0 |      1 |        0 | 
calls=100 |              |
|  2 |     1 | sip:192.168.26.231:7000 | NULL   |     1 |      1 |        0 | 
calls=100 |              |
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
2 rows in set (0.00 sec)

mysql> update dispatcher set state=0 where id = 2;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> select * from dispatcher;
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
| id | setid | destination             | socket | state | weight | priority | 
attrs     | description  |
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
|  1 |     1 | sip:192.168.26.230:7000 | NULL   |     0 |      1 |        0 | 
calls=100 |              |
|  2 |     1 | sip:192.168.26.231:7000 | NULL   |     0 |      1 |        0 | 
calls=100 |              |
+----+-------+-------------------------+--------+-------+--------+----------+-----------+--------------+
2 rows in set (0.00 sec)

mysql>
mysql> exit
Bye
[root@edgeproxy ~]# opensipsctl fifo ds_list
PARTITION:: default
            SET:: 1
                        URI:: sip:192.168.26.230:7000 state=Active
                                   attr:: calls=100
                        URI:: sip:192.168.26.231:7000 state=Inactive
                                   attr:: calls=100
[root@edgeproxy ~]# opensipsctl fifo ds_reload
[root@edgeproxy ~]# opensipsctl fifo ds_list
PARTITION:: default
            SET:: 1
                        URI:: sip:192.168.26.230:7000 state=Active
                                   attr:: calls=100
                        URI:: sip:192.168.26.231:7000 state=Inactive
                                   attr:: calls=100
[root@edgeproxy ~]#
[root@edgeproxy ~]# /etc/init.d/opensips restart
Stopping opensips:                                         [  OK  ]
Starting opensips:                                         [  OK  ]
[root@edgeproxy ~]# opensipsctl fifo ds_list
PARTITION:: default
            SET:: 1
                        URI:: sip:192.168.26.230:7000 state=Active
                                   attr:: calls=100
                        URI:: sip:192.168.26.231:7000 state=Active
                                   attr:: calls=100

same for scenario for making node inactive.

Regards
Hamid R. Hashmi
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to