[OpenSIPS-Users] Opensips 1.8 ds_list behavior in dispatcher
    Gunjan Korlekar 
    gunjan at switch.co
       
    Thu Jan 14 02:44:35 CET 2016
    
    
  
Hello,
I am observing some unusual behavior of the ds_list command when adding and
removing gateways in the dispatcher table for opensips 1.8
I am running the following sequence of commands -
./opensipsctl dispatcher addgw 40 sip:2.2.2.4:5060 0 'test1'
 ./opensipsctl dispatcher addgw 40 sip:2.2.2.5:5060 0 'test1'
 ./opensipsctl dispatcher addgw 40 sip:2.2.2.6:5060 0 'test1'
When I view the dispatcher list using ds_list I see-
 ./opensipsctl fifo ds_list
SET_NO:: 1
SET:: 40
URI:: sip:2.2.2.4:5060 flag=A
URI:: sip:2.2.2.5:5060 flag=A
URI:: sip:2.2.2.6:5060 flag=A
and the ./opensipsctl dispatcher show output is as follows -
dispatcher gateways
+----+-------+------------------+--------+-------+--------+-------+-------------+
| id | setid | destination      | socket | flags | weight | attrs |
description |
+----+-------+------------------+--------+-------+--------+-------+-------------+
|  3 |    40 | sip:2.2.2.4:5060 | NULL   |     0 |      1 |       | test1
    |
|  4 |    40 | sip:2.2.2.5:5060 | NULL   |     0 |      1 |       | test1
    |
|  5 |    40 | sip:2.2.2.6:5060 | NULL   |     0 |      1 |       | test1
    |
+----+-------+------------------+--------+-------+--------+-------+-------------+
However when I remove the 3 gateways one after another using
the ./opensipsctl dispatcher rmgw command. I see that the gateway that was
removed last can still be seen in the ds_list command even though
'dispatcher show' does not show any gateways present. Here is the sequence
of commands I am executing-
 ./opensipsctl dispatcher rmgw 3
./opensipsctl fifo ds_list
SET_NO:: 1
SET:: 40
URI:: sip:2.2.2.5:5060 flag=A
URI:: sip:2.2.2.6:5060 flag=A
 ./opensipsctl dispatcher show
dispatcher gateways
+----+-------+------------------+--------+-------+--------+-------+-------------+
| id | setid | destination      | socket | flags | weight | attrs |
description |
+----+-------+------------------+--------+-------+--------+-------+-------------+
|  4 |    40 | sip:2.2.2.5:5060 | NULL   |     0 |      1 |       | test1
    |
|  5 |    40 | sip:2.2.2.6:5060 | NULL   |     0 |      1 |       | test1
    |
+----+-------+------------------+--------+-------+--------+-------+-------------+
 ./opensipsctl dispatcher rmgw 4
 ./opensipsctl fifo ds_list
SET_NO:: 1
SET:: 40
URI:: sip:2.2.2.6:5060 flag=A
 ./opensipsctl dispatcher show
dispatcher gateways
+----+-------+------------------+--------+-------+--------+-------+-------------+
| id | setid | destination      | socket | flags | weight | attrs |
description |
+----+-------+------------------+--------+-------+--------+-------+-------------+
|  5 |    40 | sip:2.2.2.6:5060 | NULL   |     0 |      1 |       | test1
    |
+----+-------+------------------+--------+-------+--------+-------+-------------+
 ./opensipsctl dispatcher rmgw 5
 ./opensipsctl fifo ds_list
SET_NO:: 1
SET:: 40
URI:: sip:2.2.2.6:5060 flag=A
 ./opensipsctl dispatcher show
dispatcher gateways
Can you please help in understanding this behavior? Is this expected
behavior? Is there something I am missing that needs to be done to correct
this?
-- 
Thanks,
Gunjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160113/1bd363d2/attachment-0001.htm>
    
    
More information about the Users
mailing list