THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#296 -  tm:branch-failure event_route is not executed on all branch failures
User who did this - Juha Heinanen (jh)

----------
unfortunately i need to reopen this task.  i started to do more tests and and 
branch failure route execution is not deterministic.  closer examination of 
daniel's test output showed that branch failure router was not executed in that 
test either.  attached is complete test config.  i use sipsak to send request 
to it like this:

sipsak -s sip:[email protected]:5060

first time i got:

May 25 14:21:23 siika sip-proxy[6697]: ERROR: <script>: ===== main route block
May 25 14:21:23 siika sip-proxy[6697]: ERROR: <script>: ===== after t_newtrans()
May 25 14:21:23 siika sip-proxy[6697]: ERROR: tm [../../forward.h:216]: 
msg_send(): msg_send: ERROR: tcp_send failed
May 25 14:21:23 siika sip-proxy[6697]: ERROR: tm [t_fwd.c:1592]: 
t_send_branch(): ERROR: t_send_branch: sending request on branch 0 failed
May 25 14:21:23 siika sip-proxy[6697]: ERROR: tm [t_fwd.c:1595]: 
t_send_branch(): putting branch 0 on hold 
May 25 14:21:23 siika sip-proxy[6697]: ERROR: <script>: ===== t relay return 
code: 1
May 25 14:21:23 siika sip-proxy[6696]: ERROR: <script>: ===== main route block
May 25 14:21:24 siika sip-proxy[6698]: ERROR: <script>: ===== main route block
May 25 14:21:26 siika sip-proxy[6695]: ERROR: <script>: ===== main route block
May 25 14:21:28 siika sip-proxy[6708]: ERROR: <script>: ==== failure route block

that is, branch failure block was not executed.

second time 20 sec later i got:

May 25 14:21:44 siika sip-proxy[6694]: ERROR: <script>: ===== main route block
May 25 14:21:44 siika sip-proxy[6694]: ERROR: <script>: ===== after t_newtrans()
May 25 14:21:44 siika sip-proxy[6694]: ERROR: tm [../../forward.h:216]: 
msg_send(): msg_send: ERROR: tcp_send failed
May 25 14:21:44 siika sip-proxy[6694]: ERROR: tm [t_fwd.c:1592]: 
t_send_branch(): ERROR: t_send_branch: sending request on branch 0 failed
May 25 14:21:44 siika sip-proxy[6694]: ERROR: tm [t_fwd.c:1595]: 
t_send_branch(): putting branch 0 on hold 
May 25 14:21:44 siika sip-proxy[6694]: ERROR: <script>: ===== t relay return 
code: 1
May 25 14:21:45 siika sip-proxy[6693]: ERROR: <script>: ===== main route block
May 25 14:21:46 siika sip-proxy[6692]: ERROR: <script>: ===== main route block
May 25 14:21:48 siika sip-proxy[6691]: ERROR: <script>: ===== main route block
May 25 14:21:49 siika sip-proxy[6708]: ERROR: <script>: ==== branch failure 
route block
May 25 14:21:49 siika sip-proxy[6708]: ERROR: <script>: ==== failure route block

that is, branch failure route block was executed.

-- juha

complete config used in test:

loadmodule "pv"
loadmodule "xlog"

modparam("tm", "fr_timer", 5000)
modparam("tm", "local_ack_mode", 2)
modparam("tm", "failure_reply_mode", 3)
modparam("tm", "failure_exec_mode", 1)

route {
xlog("===== main route block\n");
t_newtran();
xlog("===== after t_newtrans()\n");
$ru = "sip:[email protected]:9;transport=tcp";
t_on_failure("x");
t_on_branch_failure("x");
set_forward_no_connect();
t_relay();
$var(rc) = $rc;
xlog("===== t relay return code: $rc\n");
exit;
}

failure_route[x] {
xlog("==== failure route block\n");
exit;
}

event_route[tm:branch-failure:x] {
xlog("==== branch failure route block\n");
}


----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=296#comment892

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to