6 with socketserver.TCPServer((
"localhost", 0),
None)
as s:
7 return s.server_address[1]
18 ' "request_type":"MEDIA",' 21 f
' "peer_id":"{peer_id}",' 22 f
' "token":"{token}",' 23 f
' "target_id":"{target_id}",' 29 ' "sampling_rate":90000' 34 ' "payload_type":111,' 35 ' "sampling_rate":48000' 38 ' "redirect_params":{' 40 ' "ip_v4":"127.0.0.1",' 41 f
' "port":{video_port}' 44 ' "ip_v4":"127.0.0.1",' 45 f
' "port":{video_rtcp_port}' 48 ' "ip_v4":"127.0.0.1",' 49 f
' "port":{audio_port}' 52 ' "ip_v4":"127.0.0.1",' 53 f
' "port":{audio_rtcp_port}' 70 ' "request_type":"MEDIA",' 71 ' "command":"ANSWER",' 73 f
' "media_connection_id":"{media_connection_id}",' 80 ' "sampling_rate":90000' 85 ' "payload_type":111,' 86 ' "sampling_rate":48000' 89 ' "redirect_params":{' 91 ' "ip_v4":"127.0.0.1",' 92 f
' "port":{video_port}' 95 ' "ip_v4":"127.0.0.1",' 96 f
' "port":{video_rtcp_port}' 99 ' "ip_v4":"127.0.0.1",' 100 f
' "port":{audio_port}' 103 ' "ip_v4":"127.0.0.1",' 104 f
' "port":{audio_rtcp_port}' 117 ' "request_type":"MEDIA",' 118 ' "command":"STATUS",' 120 f
' "media_connection_id":"{media_connection_id}"'