@dicko, it sounds like you have HAProxy terminating TLS in front of unencrypted (TCP) SIP?
I was hoping to do the same, as I mention in the linked forum post, but was having an issue where the Contact Asterisk sends to initiate the second leg is…
“sip:NAME@DOMAIN:5061;transport=TCP”
My Linphone client then tries responding with TCP through HAProxy which breaks the call.
Do you have a workaround for this scenario? Or are using not using HAProxy in this way?
Also, I never thought of the strict-sni to stop IP:port scanning bots, thanks for that idea! I assume the following would work?
Sounds good. I think I got strict SNI pretty much working now.
Does your PBX behind HAProxy send out correct “Contact” headers? Mine sends sip:USER@IP:5061;transport=TCP, so my Linphone client doesn’t work as expected.
Thanks
Ok, makes sense. Linphone is respecting the Contact Header, instead of just using the existing connection. I think Asterisk used the existing connection to send its INVITE because I have rewrite_contact=yes.
I guess I’ll try out a few different Softphones and see if any work with my current configuration. Thanks!