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

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 19 13:10:54 CET 2020


Module: kamailio
Branch: 5.2
Commit: 1d907f64c6d676aecc96a91d7c31ca0f269eab61
URL: https://github.com/kamailio/kamailio/commit/1d907f64c6d676aecc96a91d7c31ca0f269eab61

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-19T13:10:39+01:00

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

This reverts commit 09ac3e47ef79dbd599b7dec5b84ae3b792f025ed.

---

Modified: src/modules/tm/ut.h

---

Diff:  https://github.com/kamailio/kamailio/commit/1d907f64c6d676aecc96a91d7c31ca0f269eab61.diff
Patch: https://github.com/kamailio/kamailio/commit/1d907f64c6d676aecc96a91d7c31ca0f269eab61.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