|
@@ -550,9 +550,15 @@ static int _reply_light(struct cell *trans, char *buf, unsigned int len,
|
|
* the chances for this increase a lot.
|
|
* the chances for this increase a lot.
|
|
*/
|
|
*/
|
|
if(unlikely(!trans->uas.response.dst.send_sock)) {
|
|
if(unlikely(!trans->uas.response.dst.send_sock)) {
|
|
- LM_ERR("no resolved dst to send reply to [code: %u, t-flags: %x"
|
|
|
|
- " buf: %.*s ...]\n",
|
|
|
|
- code, trans->flags, (len > 128) ? 128 : len, buf);
|
|
|
|
|
|
+ if(unlikely(is_local(trans))) {
|
|
|
|
+ LM_DBG("local transaction reply [code: %u, t-flags: %x"
|
|
|
|
+ " buf: %.*s ...]\n",
|
|
|
|
+ code, trans->flags, (len > 256) ? 256 : len, buf);
|
|
|
|
+ } else {
|
|
|
|
+ LM_ERR("no resolved dst to send reply to [code: %u, t-flags: %x"
|
|
|
|
+ " buf: %.*s ...]\n",
|
|
|
|
+ code, trans->flags, (len > 256) ? 256 : len, buf);
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
if(likely(SEND_PR_BUFFER(rb, buf, len) >= 0)) {
|
|
if(likely(SEND_PR_BUFFER(rb, buf, len) >= 0)) {
|
|
if(unlikely(code >= 200 && !is_local(trans)
|
|
if(unlikely(code >= 200 && !is_local(trans)
|