dart-sip-ua
dart-sip-ua copied to clipboard
Set transport value using socket via_transport
Seems we found an issue in case of using WSS transport. In that case 'Contact' header contains 'ws' value instead of 'wss'.
Contact: <sip:[email protected];transport=WS;ob>
It leads to call issue: 'Failed to set remote offer sdp: Called with SDP without DTLS fingerprint'
We suppose it is regression after implementation TransportType. Previously transport initialized using socket via_transport value ( ws | wss, depends on transport ). Currently it initializes using just TransportType enum value (ws, tcp), which does not cover the wss usage scenario.
https://github.com/flutter-webrtc/dart-sip-ua/commit/024d0e847dba866e7ff80ce1c518091fe0e7496c#diff-28c3dd474c00b015a64df65906a721293e92dba454e56886f0cb3de9701baf96L856-L861