с кривым контакт можно решить как минимум двумя способами 1. есть такой параметр inbound-reg-force-matching-username 2. не нравиться такой параметр, решить можно через dialpan, контакт выдернуть и сравнить куда проще не бывает
Since the JavaScript stack in a browser has no way to determine the local address from which the WebSocket connection was made, this implementation uses a random ".invalid" domain name for the Via header "sent-by" parameter and for the hostport of the URI in the Contact header (see Appendix B.1).