[OpenSIPS-Devel] [ opensips-Bugs-3177286 ] Crash in drouting
SourceForge.net
noreply at sourceforge.net
Thu Feb 10 13:05:10 CET 2011
Bugs item #3177286, was opened at 2011-02-10 12:05
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3177286&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.6.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash in drouting
Initial Comment:
I am trying implement the drouting... a have 3 gateway in dr_gateways table... and only one rule... gw_list=3,2,1
In the third attempt, opensips crash.... follows the configuration and mysql tables!
route{
...
#drouting
if(!do_routing("0")){
send_reply("503", "No rules found matching the URI prefix");
exit;
}
#flag 11 . flag the transaction to handle the failure route
setflag(11);
route(1);
...
}
route[1] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {
t_on_branch("2");
t_on_reply("2");
t_on_failure("1");
}
if (!t_relay()) {
sl_reply_error();
};
exit;
}
failure_route[1] {
xlog("FAILURE_ROUTE[1]: M=$rm RURI=$ru F=$fu T=$tu IP=$si STS=$rs RZ=$rr\n");
if (t_was_cancelled()) {
exit;
}
#drouting
if(isflagset(11)){
if (use_next_gw()) {
#xlog ("next gateway $ru \n");
t_on_failure("1");
t_relay();
exit;
} else {
t_reply("503", "Service not available, no more gateways");
exit;
}
}
}
Feb 10 09:29:58 tesla /sbin/opensips[16358]: ONREPLY_ROUTE[2]: M=INVITE RURI=<null> F=sip:3534716644 at 200.251.137.109 T=sip:7777%23553588023317 at 200.251.137.110:5060 IP
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:tm:t_should_relay_response: T_code=183, new_code=486
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:tm:t_pick_branch: picked branch 1, code 486 (prio=686)
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:tm:is_3263_failure: dns-failover test: branch=1, last_recv=486, flags=2
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:tm:run_trans_callbacks: trans=0xb59803bc, callback type 64, id 1 entered
Feb 10 09:29:58 tesla /sbin/opensips[16358]: FAILURE_ROUTE[1]: M=INVITE RURI=sip:553588023317 at 200.182.99.124 F=sip:3534716644 at 200.251.137.109 T=sip:7777#553588023317@
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:drouting:use_next_gw: new RURI set to <sip:0023#553588023317 at 200.155.77.57>
Feb 10 09:29:58 tesla /sbin/opensips[16358]: DBG:core:_shm_resize: resize(0) called
Feb 10 09:29:58 tesla /sbin/opensips[16350]: INFO:core:handle_sigs: child process 16358 exited by a signal 11
Feb 10 09:29:58 tesla /sbin/opensips[16350]: INFO:core:handle_sigs: core was generated
Feb 10 09:29:58 tesla /sbin/opensips[16350]: INFO:core:handle_sigs: terminating due to SIGCHLD
Feb 10 09:29:58 tesla /sbin/opensips[16370]: INFO:core:sig_usr: signal 15 received
Feb 10 09:29:58 tesla /sbin/opensips[16372]: INFO:core:sig_usr: signal 15 received
Feb 10 09:29:58 tesla /sbin/opensips[16373]: INFO:core:sig_usr: signal 15 received
mysql> select * from dr_gateways;
+------+------+----------------+-------+------------+-------+------------+------------------+
| gwid | type | address | strip | pri_prefix | attrs | probe_mode | description |
+------+------+----------------+-------+------------+-------+------------+------------------+
| 1 | 0 | 200.155.77.57 | 0 | 0023# | | 0 | |
| 2 | 0 | 200.182.99.124 | 0 | | | 0 | |
| 3 | 0 | 72.85.25.12 | 0 | 5580# | | 0 | CLI |
+------+------+----------------+-------+------------+-------+------------+------------------+
mysql> select * from dr_rules;
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | attrs | description |
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+
| 1 | 0 | 55 | | 1 | 0 | 3,2,1 | | Brasil |
+--------+---------+--------+---------+----------+---------+--------+-------+-------------+
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3177286&group_id=232389
More information about the Devel
mailing list