<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello;</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i want to force message to send over TCP and IPv6 . so it should be R/W variable. When i set $fs or force_send_socket() it gives error about mismatch protocol !</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yasin CANER</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of YAS0 CANER <caner_yaso@hotmail.com><br>
<b>Sent:</b> Friday, December 14, 2018 4:27 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> [SR-Users] Problem with selection Transport Protocol - MultiHomed Problem</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello , </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i have trouble  about selection transport protocol. i have tried so many thing but couldnt find TM selected which IPv? and protocol type (TCP or UDP)</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
For example;</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
i have 2 interface ipv6 and ipv4.  i will route my message (INVITE-Register etc.) another node  that use TCP and IPV6 , domain name is test1.test. TM module or some module resolve this domain to IPV6:UDP  but i want to sent it over IPV6:TCP socket.  so i cannot
 know which protocol is resolved and cannot route the right socket. </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
$du variable show only sip:ali@test1.test </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Conclusion : There isn't any pseudo value about which <u>destination of IP version</u>  will use.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Flow:</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
UAC (IPv4:UDP) ----------> Kamailio (MultiHomed)  ---->  (TCP:IPv6)Kamailio</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
----</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Kamailo (multiHomed ) cfg</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
------</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>auto_bind_ipv6=1<br>
</span>
<div>dns_try_ipv6=yes<br>
</div>
<div>dns_retr_time=1<br>
</div>
<div>dns_retr_no=1<br>
</div>
<div>dns_cache_flags=4<br>
</div>
<div>mhomed=1<br>
</div>
<div>fork=yes<br>
</div>
<span>tcp_source_ipv6 = [fd61:c23c:b3b6::5]</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>listen=tcp:[fd61:c23c:b3b2::5]:5060<br>
</span>
<div>listen=udp:[fd61:c23c:b3b2::5]:5060<br>
</div>
<div>listen=udp:192.168.1.107:5060<br>
</div>
<span>listen=tcp:192.168.1.107:5060</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>route []{</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><br>
</span>
<div>  if($dP=="TCP"){<br>
</div>
<div>    xlog("L_INFO","[<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] [TCP] 1\n");<br>
</div>
<div>    if (!t_relay_to_tcp()) {<br>
</div>
<div>      xlog("L_ERR", "Error t_relay  [<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] \n");<br>
</div>
<div>      t_reply("500","Server - ERROR ");<br>
</div>
<div>      exit;<br>
</div>
<div>    }<br>
</div>
<div>  } else if($dP=="TCP"){<br>
</div>
<div>    xlog("L_INFO","[<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] [TCP] 2\n");<br>
</div>
<div>    if (!t_relay_to_tcp()) {<br>
</div>
<div>      xlog("L_ERR", "Error t_relay  [<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] \n");<br>
</div>
<div>      t_reply("500","Server - ERROR ");<br>
</div>
<div>      exit;<br>
</div>
<div>    }<br>
</div>
<div>  }else if($dP=="UDP"){</div>
<div>    xlog("L_INFO","[route] [UDP] 1\n");<br>
</div>
<div>    if (!t_relay_to_udp()) {<br>
</div>
<div>      xlog("L_ERR", "Error t_relay  [<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] \n");<br>
</div>
<div>      t_reply("500","Server - ERROR ");<br>
</div>
<div>      exit;<br>
</div>
<div>    }<br>
</div>
<div>  }else{</div>
<div>    xlog("L_INFO","[<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] [??] 1\n");<br>
</div>
<div>    if (!t_relay()) {<br>
</div>
<div>      xlog("L_ERR", "Error t_relay  [<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">route</span>] \n");<br>
</div>
<div>      t_reply("500","Server - ERROR ");<br>
</div>
<div>      exit;<br>
</div>
<div>    }<br>
</div>
<span>  }</span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>}</span></div>
</div>
</body>
</html>