Browse code

tm: flag core to use forced socket when uac socket is set

- without flag SND_F_FORCE_SOCKET probing by dispatcher module
and route script function t_uac_send() will choose incorrect source socket

(cherry picked from commit 7da5e5b0a1f4520c7fdd7eeb23b4b58ecc27be22)
(cherry picked from commit fc77e25b48c4ec1b9988925faa50d00c4fd296b3)
(cherry picked from commit c5becaa0485a20215d2349406e1224395375b236)

Mikko Lehto authored on 19/02/2018 23:32:39 • Daniel-Constantin Mierla committed on 22/02/2018 11:58:40
Showing 1 changed files
... ...
@@ -250,6 +250,12 @@ static inline int t_uac_prepare(uac_req_t *uac_r,
250 250
 	/* new message => take the dialog send_socket if set, or the default
251 251
 	  send_socket if not*/
252 252
 	SND_FLAGS_INIT(&snd_flags);
253
+
254
+	if (uac_r->dialog->send_sock != NULL)
255
+	{
256
+		snd_flags.f |= SND_F_FORCE_SOCKET;
257
+	}
258
+
253 259
 #ifdef USE_DNS_FAILOVER
254 260
 	if (cfg_get(core, core_cfg, use_dns_failover)){
255 261
 		dns_srv_handle_init(&dns_h);