[sr-dev] git:master:8d608d1c: tm: set send socket flag when computing the destination and local socket is found
Daniel-Constantin Mierla
miconda at gmail.com
Tue Aug 20 12:09:22 CEST 2019
Module: kamailio
Branch: master
Commit: 8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5
URL: https://github.com/kamailio/kamailio/commit/8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-20T12:07:30+02:00
tm: set send socket flag when computing the destination and local socket is found
---
Modified: src/modules/tm/ut.h
---
Diff: https://github.com/kamailio/kamailio/commit/8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5.diff
Patch: https://github.com/kamailio/kamailio/commit/8d608d1c3ed0fe4c69cb02868b746cd0497dd1f5.patch
---
diff --git a/src/modules/tm/ut.h b/src/modules/tm/ut.h
index 41e69c407f..98aaffa549 100644
--- a/src/modules/tm/ut.h
+++ b/src/modules/tm/ut.h
@@ -296,6 +296,7 @@ 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));
@@ -317,6 +318,8 @@ 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