[sr-dev] [tracker] Comment added: tm:branch-failure event_route is not executed on all branch failures

sip-router bugtracker at sip-router.org
Mon May 20 17:27:20 CEST 2013


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 - Daniel-Constantin Mierla (miconda)

----------
I tested again - t_relay() returns 1. I have two invalid branches -- here is my config:

<code>
request_route {
  xlog("===== main route block\n");
  t_on_failure("x");
  t_on_branch_failure("x");
  set_forward_no_connect();
  # t_relay_to("tcp:127.0.0.1:9");
  $du = "sip:127.0.0.1:9;transport=tcp";
  append_branch();
  $du = "sip:127.0.0.1:10;transport=tcp";
  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");
}
</code>

And the logs I get:

 1(72046) ERROR: tm [../../forward.h:216]: msg_send(): msg_send: ERROR: tcp_send failed
 1(72046) DEBUG: tm [t_fwd.c:1573]: t_send_branch(): t_send_branch: send to 127.0.0.1:10 (2) failed
 1(72046) ERROR: tm [t_fwd.c:1592]: t_send_branch(): ERROR: t_send_branch: sending request on branch 0 failed
 1(72046) ERROR: tm [t_fwd.c:1595]: t_send_branch(): putting branch 0 on hold
 1(72046) ERROR: tm [../../forward.h:216]: msg_send(): msg_send: ERROR: tcp_send failed
 1(72046) DEBUG: tm [t_fwd.c:1573]: t_send_branch(): t_send_branch: send to 127.0.0.1:9 (2) failed
 1(72046) ERROR: tm [t_fwd.c:1592]: t_send_branch(): ERROR: t_send_branch: sending request on branch 1 failed
 1(72046) ERROR: tm [t_fwd.c:1595]: t_send_branch(): putting branch 1 on hold
 1(72046) DEBUG: tm [t_funcs.c:384]: t_relay_to(): SER: new transaction fwd'ed
 1(72046) ERROR: <script>: ===== t relay return code: 1
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [usr_avp.c:644]: destroy_avp_list(): DEBUG:destroy_avp_list: destroying list 0x0
 1(72046) DEBUG: <core> [xavp.c:448]: xavp_destroy_list(): destroying xavp list 0x0
 1(72046) DEBUG: <core> [receive.c:293]: receive_msg(): receive_msg: cleaning up
...
 3(72048) DEBUG: tm [t_reply.c:1289]: t_should_relay_response(): ->>>>>>>>> T_code=100, new_code=408
 3(72048) DEBUG: tm [t_reply.c:1806]: relay_reply(): DEBUG: relay_reply: branch=0, save=1, relay=-1 icode=908
 3(72048) DEBUG: tm [t_reply.c:1289]: t_should_relay_response(): ->>>>>>>>> T_code=100, new_code=408
 3(72048) ERROR: <script>: ==== failure route block
 3(72048) DEBUG: tm [t_reply.c:1806]: relay_reply(): DEBUG: relay_reply: branch=1, save=0, relay=0 icode=908
 3(72048) DEBUG: <core> [msg_translator.c:204]: check_via_address(): check_via_address(127.0.0.1, 192.168.178.8, 0)



----------

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

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.



More information about the sr-dev mailing list