[OpenSIPS-Users] opensips v2.1.1 fifo ds_reload not working
Rik Broers
RBroers at motto.nl
Wed Nov 4 14:19:56 CET 2015
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: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] Namens Hamid Hashmi
Verzonden: woensdag 4 november 2015 12:59
Aan: users at lists.opensips.org
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 at 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 at edgeproxy ~]# opensipsctl fifo ds_reload
[root at 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 at edgeproxy ~]#
[root at edgeproxy ~]# /etc/init.d/opensips restart
Stopping opensips: [ OK ]
Starting opensips: [ OK ]
[root at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151104/ddcf5571/attachment-0001.htm>
More information about the Users
mailing list