<div dir="ltr">Sorry, the complete error is:<div><br></div><div>WARNING: <core> [forward.c:268]: get_send_socket2(): protocol/port mismatch (forced tcp:<a href="http://1.2.3.4:5111">1.2.3.4:5111</a>, to tls:<a href="http://9.8.7.6:5111">9.8.7.6:5111</a>)<br></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=bea7b87b-f3a6-4a48-878e-f30fb03e1908"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div>
<br><div class="gmail_quote">On Mon, May 15, 2017 at 3:20 PM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello guys,<div><br></div><div>I'm listening on port 443 for tls and 5111 for tcp.</div><div><br></div><div>Client registers on 443 and makes a call over tls which kamailio forwards over tcp.</div><div><br></div><div>Because freeswitch doesn't support "sips" yet, when replies come back from freeswitch (which contact set as "sip:" i manually change that tp "sips:" for the client to not die with "SIPS Required".</div><div><br></div><div>Call is established and the client responds with ACK. At this point i need to change back the contact "sips:" to "sip:".</div><div><br></div><div>This is the route that changes it:</div><div><br></div><div><div>route[FIXCONTACT] {</div><div><br></div><div>    # This is freeswitch sending a message, so we change "sip:" to "sips:"</div><div>    xlog("L_ERR","[FIXCONTACT]: User-Agent is: $ua\n");</div><div><br></div><div>    if( $ua =~ "^FreeSWITCH" ) {<br></div><div>        if( subst('/^(Contact:.*)sip:/\<wbr>1sips:/') ) {</div><div>            xlog("L_ERR","[FIXCONTACT]: Method $rm Status $rs Changed contact coming from freeSWITCH from sip to sips [$ct]!\n"); </div><div>        }</div><div>    # Else it is the client, when change it back from "sips:" to "sip:"</div><div>    } else {</div><div>        if( subst("/^(Contact:.*)sips:/\<wbr>1sip:/") ) {</div><div>            xlog("L_ERR","[FIXCONTACT]: Method $rm Status $rs Changed contact coming from CLIENT from sips to sip [$ct]!\n"); </div><div>        }</div><div>    }</div><div>    return;<br></div><div>}</div></div><div><br></div><div>When kamailio is preparing to send out the ACK via TCP I'm seeing:</div><div><br></div><div>[forward.c:268]: get_send_socket2(): protocol/port mismatch<br></div><div><br></div><div>And I really don't know why it's doing this...</div><div><br></div><div>Help is appreciated!</div><div><br></div><div><br clear="all"><div><div class="m_130498461970265041gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: <a href="tel:+34%20669%2044%2083%2037" value="+34669448337" target="_blank">+34669448337</a></div></div></div></div>
</div></div><div hspace="streak-pt-mark" style="max-height:1px"><img alt="" style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=a29cf9f6-1814-4050-bccc-7080e0d0a935"><font color="#ffffff" size="1">ᐧ</font></div>
</blockquote></div><br></div>