File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ static async Task<int> Main(string[] args)
100
100
101
101
logger . LogDebug ( $ "Performing test { testType } to { echoServerUrl } .") ;
102
102
103
- var pc = CreatePeerConnection ( ) ;
103
+ var pc = await CreatePeerConnection ( ) ;
104
104
var offer = pc . createOffer ( ) ;
105
105
await pc . setLocalDescription ( offer ) ;
106
106
@@ -199,7 +199,7 @@ static async Task<int> Main(string[] args)
199
199
return ( success ) ? SUCCESS_RESULT : FAILURE_RESULT ;
200
200
}
201
201
202
- private static RTCPeerConnection CreatePeerConnection ( )
202
+ private static async Task < RTCPeerConnection > CreatePeerConnection ( )
203
203
{
204
204
RTCConfiguration config = new RTCConfiguration
205
205
{
@@ -211,7 +211,7 @@ private static RTCPeerConnection CreatePeerConnection()
211
211
MediaStreamTrack audioTrack = new MediaStreamTrack ( SDPWellKnownMediaFormatsEnum . PCMU ) ;
212
212
pc . addTrack ( audioTrack ) ;
213
213
214
- // var dc = await pc.createDataChannel("sipsocery-dc");
214
+ var dc = await pc . createDataChannel ( "sipsocery-dc" ) ;
215
215
216
216
pc . onicecandidateerror += ( candidate , error ) => logger . LogWarning ( $ "Error adding remote ICE candidate. { error } { candidate } ") ;
217
217
pc . OnTimeout += ( mediaType ) => logger . LogWarning ( $ "Timeout for { mediaType } .") ;
You can’t perform that action at this time.
0 commit comments