[sr-dev] git:master: tm: more verbose debug when failing to find socket for forwarding

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 2 16:44:32 CEST 2014


Module: sip-router
Branch: master
Commit: 51f5826732bbbb2af394c0b0a75db2a310f57b18
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=51f5826732bbbb2af394c0b0a75db2a310f57b18

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Oct  2 16:34:02 2014 +0200

tm: more verbose debug when failing to find socket for forwarding

---

 modules/tm/ut.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/tm/ut.h b/modules/tm/ut.h
index 0b1c5f6..ea98a8f 100644
--- a/modules/tm/ut.h
+++ b/modules/tm/ut.h
@@ -340,7 +340,9 @@ inline static struct dest_info *uri2dst2(struct dest_info* dst,
 	dst->send_sock = get_send_socket2(force_send_socket, &dst->to,
 										dst->proto, 0);
 	if (dst->send_sock==0) {
-		ERR("no corresponding socket for af %d\n", dst->to.s.sa_family);
+		ERR("no corresponding socket found for \"%.*s\" af %d (%s:%s)\n",
+			host->len, ZSW(host->s), dst->to.s.sa_family,
+			proto2a(dst->proto), su2a(&dst->to, sizeof(dst->to)));
 		/* ser_error = E_NO_SOCKET;*/
 		/* try to continue */
 	}




More information about the sr-dev mailing list