<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I am trying to set up a WebRTC2SIP Gateway by using Kamailio and rtpengine. So far, everything is working fine, I'm able to register an extension and make a call, but for some reason, when i'm trying to call a WebRTC extension from any SIP Extension Kamailio is sending INVITE, WebRTC extension is sending back 200 OK, and then Kamailio is trying to send an ACK through UDP protocol, and not through wss, as it's supposed to do. This is how invite is looking:</div><div><br></div><div><div>INVITE sip:nl7oe4ss@vjbh7r4im6j7.invalid;transport=wss SIP/2.0</div><div>Record-Route: <sip:<a href="http://my-company.net">my-company.net</a>;transport=udp;ftag=as1789445c;lr=on;nat=yes></div><div>Via: SIP/2.0/WSS 123.123.123.123:10443;branch=z9hG4bKe655.29d7c135a302f3eb803902d4f5a8da7e.0</div><div>Via: SIP/2.0/UDP 192.168.50.237:5060;received=192.168.50.237;branch=z9hG4bK7d2e534e;rport=5060</div><div>Max-Forwards: 70</div><div>From: "WebRTC" <<a href="mailto:sip%3A11@my-company.net">sip:11@my-company.net</a>>;tag=as1789445c</div><div>To: <<a href="http://sip:15@192.168.50.210:5060">sip:15@192.168.50.210:5060</a>></div><div>Contact: <<a href="http://sip:11@192.168.50.237:5060">sip:11@192.168.50.237:5060</a>></div><div>Call-ID: <a href="mailto:7fc800de060197fa2315c93763873092@my-company.net">7fc800de060197fa2315c93763873092@my-company.net</a></div><div>CSeq: 102 INVITE</div><div>User-Agent: Proxy</div><div>Date: Wed, 03 Apr 2019 17:11:41 GMT</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE</div><div>Supported: replaces, timer</div><div>Alert-Info:</div><div>Content-Type: application/sdp</div><div>Content-Length: 596</div><div>Server: SIP Proxy</div></div><div><br></div><div>and then WebRTC app is replying with 200 OK:</div><div><br></div><div><div>SIP/2.0 200 OK</div><div>Record-Route: <sip:<a href="http://my-company.net">my-company.net</a>;transport=udp;ftag=as1789445c;lr=on;nat=yes></div><div>Via: SIP/2.0/WSS 123.123.123.123:10443;branch=z9hG4bKe655.29d7c135a302f3eb803902d4f5a8da7e.0</div><div>Via: SIP/2.0/UDP 192.168.50.237:5060;received=192.168.50.237;branch=z9hG4bK7d2e534e;rport=5060</div><div>To: <<a href="http://sip:15@192.168.50.210:5060">sip:15@192.168.50.210:5060</a>>;tag=dk4fa8ftt6</div><div>From: "WebRTC" <<a href="mailto:sip%3A11@my-company.net">sip:11@my-company.net</a>>;tag=as1789445c</div><div>Call-ID: <a href="mailto:7fc800de060197fa2315c93763873092@my-company.net">7fc800de060197fa2315c93763873092@my-company.net</a></div><div>CSeq: 102 INVITE</div><div>Contact: <sip:nl7oe4ss@vjbh7r4im6j7.invalid;transport=wss></div><div>Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER</div><div>Supported: outbound</div><div>User-Agent: Proxy-WEBRTC</div><div>Content-Type: application/sdp</div><div>Content-Length: 901</div></div><div><br></div><div>and finally, Kamailio is trying to send this ack through UDP protocol:</div><div><br></div><div><div>ACK sip:nl7oe4ss@22.22.22.22:57421;transport=wss SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.50.237:5060;branch=z9hG4bK56363ddf;rport</div><div>Route: <sip:<a href="http://my-company.net">my-company.net</a>;transport=udp;ftag=as1789445c;lr=on;nat=yes></div><div>Max-Forwards: 70</div><div>From: "WebRTC" <<a href="mailto:sip%3A11@my-company.net">sip:11@my-company.net</a>>;tag=as1789445c</div><div>To: <<a href="http://sip:15@192.168.50.210:5060">sip:15@192.168.50.210:5060</a>>;tag=dk4fa8ftt6</div><div>Contact: <<a href="http://sip:11@192.168.50.237:5060">sip:11@192.168.50.237:5060</a>></div><div>Call-ID: <a href="mailto:7fc800de060197fa2315c93763873092@my-company.net">7fc800de060197fa2315c93763873092@my-company.net</a></div><div>CSeq: 102 ACK</div><div>User-Agent: Proxy</div><div>Content-Length: 0</div></div><div><br></div><div>If i'm trying to force it through TLS, i'm receiving error: </div><div>get_send_socket2(): protocol/port mismatch (forced tls:<a href="http://123.123.123.123:10443">123.123.123.123:10443</a>, to udp:<a href="http://22.22.22.22:23317">22.22.22.22:23317</a>)<br></div><div><br></div><div>Can someone point me in the right direction, please?</div><div>Thank you.</div><div><br></div></div></div></div></div></div>