<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:/\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:/\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="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>
</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>