Module: kamailio
Branch: master
Commit: 9581d7c03b21b0f7a360e504126499bef1e37300
URL:
https://github.com/kamailio/kamailio/commit/9581d7c03b21b0f7a360e504126499b…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-09-18T10:44:31+02:00
tm: make t_append_branches return the number of added branches
---
Modified: modules/tm/t_append_branches.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9581d7c03b21b0f7a360e504126499b…
Patch:
https://github.com/kamailio/kamailio/commit/9581d7c03b21b0f7a360e504126499b…
---
diff --git a/modules/tm/t_append_branches.c b/modules/tm/t_append_branches.c
index d32ac1a..1344a5d 100644
--- a/modules/tm/t_append_branches.c
+++ b/modules/tm/t_append_branches.c
@@ -153,7 +153,7 @@ int t_append_branches(void) {
if (added_branches==0) {
if(lowest_ret!=E_CFG)
- LOG(L_ERR, "ERROR: t_append_branch: failure to add branches\n");
+ LOG(L_ERR, "ERROR: t_append_branch: failure to add branches (%d)\n",
lowest_ret);
ser_error=lowest_ret;
replies_locked = 0;
UNLOCK_REPLIES(t);
@@ -198,7 +198,7 @@ int t_append_branches(void) {
set_kr(REQ_FWDED);
replies_locked = 0;
UNLOCK_REPLIES(t);
- return 1;
+ return success_branch;
canceled:
DBG("t_append_branches: cannot append branches to a canceled transaction\n");