[sr-dev] git:master:dd6e2fd7: Revert "tm: set send socket flag when computing the destination and local socket is found"

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 2 09:16:27 CET 2020


Module: kamailio
Branch: master
Commit: dd6e2fd7740f351ef3acbd4d36d7e4546ca10ded
URL: https://github.com/kamailio/kamailio/commit/dd6e2fd7740f351ef3acbd4d36d7e4546ca10ded

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-02T09:01:37+01:00

Revert "tm: set send socket flag when computing the destination and local socket is found"

This reverts commit 8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5.

---

Modified: src/modules/tm/ut.h

---

Diff:  https://github.com/kamailio/kamailio/commit/dd6e2fd7740f351ef3acbd4d36d7e4546ca10ded.diff
Patch: https://github.com/kamailio/kamailio/commit/dd6e2fd7740f351ef3acbd4d36d7e4546ca10ded.patch

---

diff --git a/src/modules/tm/ut.h b/src/modules/tm/ut.h
index 98aaffa549..41e69c407f 100644
--- a/src/modules/tm/ut.h
+++ b/src/modules/tm/ut.h
@@ -296,7 +296,6 @@ inline static struct dest_info *uri2dst2(struct dest_info* dst,
 												dst->proto, 0);
 			if (dst->send_sock){
 				dst->to=to;
-				dst->send_flags.f |= SND_F_FORCE_SOCKET;
 				return dst; /* found a good one */
 			}
 		}while(dns_srv_handle_next(dns_h, err));
@@ -318,8 +317,6 @@ inline static struct dest_info *uri2dst2(struct dest_info* dst,
 			proto2a(dst->proto), su2a(&dst->to, sizeof(dst->to)));
 		/* ser_error = E_NO_SOCKET;*/
 		/* try to continue */
-	} else {
-		dst->send_flags.f |= SND_F_FORCE_SOCKET;
 	}
 	return dst;
 }




More information about the sr-dev mailing list