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> exitBye[root@edgeproxy ~]# opensipsctl fifo ds_listPARTITION:: 
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_listPARTITION:: 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 
restartStopping opensips:                                         [  OK  
]Starting opensips:                                         [  OK  
][root@edgeproxy ~]# opensipsctl fifo ds_listPARTITION:: 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. 
RegardsHamid R. Hashmi                                    
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to