[OpenSIPS-Devel] [ opensips-Bugs-3587515 ] Drouting rule fallback problem

SourceForge.net noreply at sourceforge.net
Thu Nov 22 15:51:45 CET 2012


Bugs item #3587515, was opened at 2012-11-15 05:56
Message generated for change (Comment added) made by rico29600
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3587515&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Rico (rico29600)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Drouting rule fallback problem

Initial Comment:
I've got a problem with rule fallback in drouting module. Rulle fallback does not work as expected.
When my higher priority GW is not reachable, I've got a message " All the gateways are disabled"


See the config here, and the opensips log in attachment (debug level 6)
Running opensips 1.8.2


Hope somebody will be able to help me...

best regards

--------------------------------------


#opensips.log
Nov  7 14:09:51 opensips1 /sbin/opensips[14026]: [from sip:067364xxxx at 91.213.a.b / to sip:0970559999 at 91.213.a.b:5060 ]
Nov  7 14:09:51 opensips1 /sbin/opensips[14026]: Entering route[4]
Nov  7 14:09:51 opensips1 /sbin/opensips[14026]: ERROR:drouting:do_routing: All the gateways are disabled




##################################################################
#opensipsctl dr gw_status
ID:: 11 IP=46.226.x.y Enabled=no 
ID:: 12 IP=46.226.x.z Enabled=yes




##################################################################
#opensipsctl dr show
dr gateways
+----+------+------+----------------+-------+------------+-------+------------+------------------------------+
| id | gwid | type | address        | strip | pri_prefix | attrs | probe_mode | description                  |
+----+------+------+----------------+-------+------------+-------+------------+------------------------------+
|  5 | 11   |    1 | 46.226.x.y |     0 | NULL       | NULL  |          2 | OXO ASTI 1                   |
|  6 | 12   |    1 | 46.226.x.z |     0 | NULL       | NULL  |          2 | OXO ASTI 2                   |
+----+------+------+----------------+-------+------------+-------+------------+------------------------------+



##################################################################
dr rules
+--------+---------+------------+---------+----------+---------+--------+-------+---------------------------------------+
| ruleid | groupid | prefix     | timerec | priority | routeid | gwlist | attrs | description                           |
+--------+---------+------------+---------+----------+---------+--------+-------+---------------------------------------+
|     64 | 1       | 0970559999 |         |        1 |         | 11     | NULL  | SDA Test                       |
|     68 | 1       | 0970559999 |         |        0 |         | 12     | NULL  | SDA Test                       |

----------------------------------------------------------------------

>Comment By: Rico (rico29600)
Date: 2012-11-22 06:51

Message:
Thanks Bogdan, will do the test as soon as possible

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-22 05:54

Message:
Hi Rico,

Find attached the patch to fix the issue you have. Simply do now:
    if ( !do_routing("1","F") ) {}

Test the patch and let me know if you see any problems. I also uploaded the
patch on trunk SVN.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-11-21 08:40

Message:
Trying to reproduce this locally. Indeed, it seems to be bug as
do_routing() internally cannot do fallback to a different rule . Currently
the fallback can be done only by calling use_next_gw().

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3587515&group_id=232389



More information about the Devel mailing list