[sr-dev] git:master:927d738d: tm: more debug messages for reply relay
Daniel-Constantin Mierla
miconda at gmail.com
Fri Aug 24 10:53:12 CEST 2018
Module: kamailio
Branch: master
Commit: 927d738d0e1585ccbccc878ab55c219ae737091d
URL: https://github.com/kamailio/kamailio/commit/927d738d0e1585ccbccc878ab55c219ae737091d
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-08-24T10:52:26+02:00
tm: more debug messages for reply relay
---
Modified: src/modules/tm/t_reply.c
---
Diff: https://github.com/kamailio/kamailio/commit/927d738d0e1585ccbccc878ab55c219ae737091d.diff
Patch: https://github.com/kamailio/kamailio/commit/927d738d0e1585ccbccc878ab55c219ae737091d.patch
---
diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 474851aa7c..2f5488a309 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -315,7 +315,7 @@ inline static int update_totag_set(struct cell *t, struct sip_msg *ok)
return 0;
}
memset(n, 0, sizeof(struct totag_elem));
- memcpy(s, tag->s, tag->len );
+ memcpy(s, tag->s, tag->len);
n->tag.s=s;n->tag.len=tag->len;
n->next=t->fwded_totags;
membar_write(); /* make sure all the changes to n are visible on all cpus
@@ -328,7 +328,7 @@ inline static int update_totag_set(struct cell *t, struct sip_msg *ok)
* the "readers" (unmatched_tags()) do not use locks and
* can be called simultaneously on another cpu.*/
t->fwded_totags=n;
- LM_DBG("new totag \n");
+ LM_DBG("new totag [%.*s]\n", tag->len, tag->s);
return 0;
}
@@ -1995,6 +1995,7 @@ enum rps relay_reply( struct cell *t, struct sip_msg *p_msg, int branch,
if (likely(uas_rb->dst.send_sock)) {
if (SEND_PR_BUFFER( uas_rb, buf, res_len ) >= 0){
+ LM_DBG("reply buffer sent out\n");
if (unlikely(!totag_retr
&& has_tran_tmcbs(t, TMCB_RESPONSE_OUT))){
LOCK_REPLIES( t );
@@ -2059,6 +2060,7 @@ enum rps relay_reply( struct cell *t, struct sip_msg *p_msg, int branch,
/* a serious error occurred -- attempt to send an error reply;
* it will take care of clean-ups */
+ LM_DBG("reply relay failure\n");
/* failure */
return RPS_ERROR;
}
More information about the sr-dev
mailing list