Kurento on Azure Virtual Machine Not Working

744 views
Skip to first unread message

imth...@gmail.com

unread,
Jul 10, 2015, 6:09:14 PM7/10/15
to kur...@googlegroups.com
Hi guys,

I'm trying kurento installed in a Azure Virtual Machine with Ubuntu 14.04. In my local machine all is working well, but when I try the same code in the azure virtual machine I receive black video stream. No error is raised and all seems to work but at the end no video is received.

Note that I'm unable to open the whole range of ports in my virtual machine because Azure does not permit to open a port range on the endpoint configuration. I think that the problem could be this one but I don't know how to bypass it. I have also enable the stun and turn server (both and only stun or turn) but nothing change. I've seen in other post that users have installed kurento in azure, so it should work.. 

This is what is written in the console:

Starting video call ...
Creating WebRtcPeer and generating local sdp offer ...
spec
: {"audio":true,"video":{"mandatory":{"maxWidth":640,"maxFrameRate":15,"minFrameRate":15}}}
chrome
: {"audio":true,"video":{"mandatory":{"maxWidth":640,"maxFrameRate":15,"minFrameRate":15}}}
Created SDP offer
Local description set
ICE negotiation completed
Invoking SDP offer callback function 104.46.41.99:8080
Senging message: {"id":"start","sdpOffer":"v=0\r\no=- 6188852405598077109 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3\r\nm=audio 54944 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126\r\nc=IN IP4 151.42.10.135\r\na=rtcp:54948 IN IP4 151.42.10.135\r\na=candidate:139880876 1 udp 2122255103 2001::9d38:90d7:3c08:1dd0:68d5:f578 54942 typ host generation 0\r\na=candidate:4028945968 1 udp 2122194687 192.168.192.1 54943 typ host generation 0\r\na=candidate:3193449558 1 udp 2122129151 172.17.1.141 54944 typ host generation 0\r\na=candidate:931445828 1 udp 2122063615 192.168.152.1 54945 typ host generation 0\r\na=candidate:139880876 2 udp 2122255102 2001::9d38:90d7:3c08:1dd0:68d5:f578 54946 typ host generation 0\r\na=candidate:4028945968 2 udp 2122194686 192.168.192.1 54947 typ host generation 0\r\na=candidate:3193449558 2 udp 2122129150 172.17.1.141 54948 typ host generation 0\r\na=candidate:931445828 2 udp 2122063614 192.168.152.1 54949 typ host generation 0\r\na=candidate:1212700034 1 udp 1685921535 151.42.10.135 54944 typ srflx raddr 172.17.1.141 rport 54944 generation 0\r\na=candidate:1212700034 2 udp 1685921534 151.42.10.135 54948 typ srflx raddr 172.17.1.141 rport 54948 generation 0\r\na=candidate:1188402524 1 tcp 1518275327 2001::9d38:90d7:3c08:1dd0:68d5:f578 0 typ host tcptype active generation 0\r\na=candidate:3198626496 1 tcp 1518214911 192.168.192.1 0 typ host tcptype active generation 0\r\na=candidate:4040937638 1 tcp 1518149375 172.17.1.141 0 typ host tcptype active generation 0\r\na=candidate:2030518452 1 tcp 1518083839 192.168.152.1 0 typ host tcptype active generation 0\r\na=candidate:1188402524 2 tcp 1518275326 2001::9d38:90d7:3c08:1dd0:68d5:f578 0 typ host tcptype active generation 0\r\na=candidate:3198626496 2 tcp 1518214910 192.168.192.1 0 typ host tcptype active generation 0\r\na=candidate:4040937638 2 tcp 1518149374 172.17.1.141 0 typ host tcptype active generation 0\r\na=candidate:2030518452 2 tcp 1518083838 192.168.152.1 0 typ host tcptype active generation 0\r\na=ice-ufrag:R9v7FqUc+Myat4Sb\r\na=ice-pwd:SQVougo4nxWg7s03jzQHnp9a\r\na=fingerprint:sha-256 96:D1:9A:4E:E7:99:D3:59:3A:7E:B4:4A:09:8C:FC:A5:FE:F9:1E:06:0C:35:DA:81:FC:E3:54:F8:13:8C:CC:BD\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10; useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:1786785940 cname:qAAWXGCwv27FekAm\r\na=ssrc:1786785940 msid:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3 a844190d-9021-4725-ac10-4294bd99f206\r\na=ssrc:1786785940 mslabel:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3\r\na=ssrc:1786785940 label:a844190d-9021-4725-ac10-4294bd99f206\r\nm=video 54952 RTP/SAVPF 100 116 117 96\r\nc=IN IP4 151.42.10.135\r\na=rtcp:54956 IN IP4 151.42.10.135\r\na=candidate:139880876 1 udp 2122255103 2001::9d38:90d7:3c08:1dd0:68d5:f578 54950 typ host generation 0\r\na=candidate:4028945968 1 udp 2122194687 192.168.192.1 54951 typ host generation 0\r\na=candidate:3193449558 1 udp 2122129151 172.17.1.141 54952 typ host generation 0\r\na=candidate:931445828 1 udp 2122063615 192.168.152.1 54953 typ host generation 0\r\na=candidate:139880876 2 udp 2122255102 2001::9d38:90d7:3c08:1dd0:68d5:f578 54954 typ host generation 0\r\na=candidate:4028945968 2 udp 2122194686 192.168.192.1 54955 typ host generation 0\r\na=candidate:3193449558 2 udp 2122129150 172.17.1.141 54956 typ host generation 0\r\na=candidate:931445828 2 udp 2122063614 192.168.152.1 54957 typ host generation 0\r\na=candidate:1212700034 1 udp 1685921535 151.42.10.135 54952 typ srflx raddr 172.17.1.141 rport 54952 generation 0\r\na=candidate:1212700034 2 udp 1685921534 151.42.10.135 54956 typ srflx raddr 172.17.1.141 rport 54956 generation 0\r\na=candidate:1188402524 1 tcp 1518275327 2001::9d38:90d7:3c08:1dd0:68d5:f578 0 typ host tcptype active generation 0\r\na=candidate:3198626496 1 tcp 1518214911 192.168.192.1 0 typ host tcptype active generation 0\r\na=candidate:4040937638 1 tcp 1518149375 172.17.1.141 0 typ host tcptype active generation 0\r\na=candidate:2030518452 1 tcp 1518083839 192.168.152.1 0 typ host tcptype active generation 0\r\na=candidate:1188402524 2 tcp 1518275326 2001::9d38:90d7:3c08:1dd0:68d5:f578 0 typ host tcptype active generation 0\r\na=candidate:3198626496 2 tcp 1518214910 192.168.192.1 0 typ host tcptype active generation 0\r\na=candidate:4040937638 2 tcp 1518149374 172.17.1.141 0 typ host tcptype active generation 0\r\na=candidate:2030518452 2 tcp 1518083838 192.168.152.1 0 typ host tcptype active generation 0\r\na=ice-ufrag:R9v7FqUc+Myat4Sb\r\na=ice-pwd:SQVougo4nxWg7s03jzQHnp9a\r\na=fingerprint:sha-256 96:D1:9A:4E:E7:99:D3:59:3A:7E:B4:4A:09:8C:FC:A5:FE:F9:1E:06:0C:35:DA:81:FC:E3:54:F8:13:8C:CC:BD\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:3gpp:video-orientation\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:100 VP8/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:116 red/90000\r\na=rtpmap:117 ulpfec/90000\r\na=rtpmap:96 rtx/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 29621099 67884570\r\na=ssrc:29621099 cname:qAAWXGCwv27FekAm\r\na=ssrc:29621099 msid:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3 407928b4-7ad4-4cae-ab81-ad27ddea5cbf\r\na=ssrc:29621099 mslabel:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3\r\na=ssrc:29621099 label:407928b4-7ad4-4cae-ab81-ad27ddea5cbf\r\na=ssrc:67884570 cname:qAAWXGCwv27FekAm\r\na=ssrc:67884570 msid:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3 407928b4-7ad4-4cae-ab81-ad27ddea5cbf\r\na=ssrc:67884570 mslabel:nB8r0tfhm1ZmTYPAq1pFQKi4mnxkx9j5dAY3\r\na=ssrc:67884570 label:407928b4-7ad4-4cae-ab81-ad27ddea5cbf\r\n"}
Received message: {"id":"startResponse","sdpAnswer":"v=0\r\no=- 6188852405598077109 0 IN IP4 0.0.0.0\r\ns=Kurento Media Server\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=group:BUNDLE audio video\r\nm=audio 55695 RTP/SAVPF 111 0\r\nc=IN IP4 10.0.16.4\r\na=rtpmap:111 opus/48000/2\r\na=rtpmap:0 PCMU/8000\r\na=sendrecv\r\na=rtcp:55695 IN IP4 10.0.16.4\r\na=rtcp-mux\r\na=ssrc:3138974857 cname:user1774577996@host-1e894eaf\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=mid:audio\r\na=ice-ufrag:pb+K\r\na=ice-pwd:Y3Y8Twyk5SWLwLh4Zq+qBq\r\na=fingerprint:sha-256 67:EE:C1:4E:47:70:14:67:DA:FE:4E:DF:2E:51:50:3D:C2:17:0C:55:9C:C0:04:ED:B0:1C:C9:04:06:8B:BD:CD\r\na=candidate:1 1 UDP 2013266431 10.0.16.4 55695 typ host\r\nm=video 55695 RTP/SAVPF 100\r\nc=IN IP4 10.0.16.4\r\nb=AS:500\r\na=rtpmap:100 VP8/90000\r\na=sendrecv\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtcp:55695 IN IP4 10.0.16.4\r\na=rtcp-mux\r\na=ssrc:3559513523 cname:user1774577996@host-1e894eaf\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=mid:video\r\na=ice-ufrag:pb+K\r\na=ice-pwd:Y3Y8Twyk5SWLwLh4Zq+qBq\r\na=fingerprint:sha-256 67:EE:C1:4E:47:70:14:67:DA:FE:4E:DF:2E:51:50:3D:C2:17:0C:55:9C:C0:04:ED:B0:1C:C9:04:06:8B:BD:CD\r\na=candidate:1 1 UDP 2013266431 10.0.16.4 55695 typ host\r\n"}
SDP answer received
from server. Processing ...
SDP answer received
, setting remote description

Can you guys help me out?

Thank you
Message has been deleted

imth...@gmail.com

unread,
Jul 10, 2015, 6:40:25 PM7/10/15
to kur...@googlegroups.com, imth...@gmail.com
I have tried the Kurento exaple magic mirror (that is wotking well in my local machine) in a Amazon EC2 instance. It is NOT working like the Azure one...

I have opened all the TCP and UDP port in the security group inbound rules..

You can try it here http://52.25.97.63:8080/

imth...@gmail.com

unread,
Jul 11, 2015, 12:24:04 PM7/11/15
to kur...@googlegroups.com, imth...@gmail.com
OK, after some hours of work, finally Kurento is working both on azure and ec2. I could be tricky, but the only problem was the STUN server.. the working one that I've put is 23.21.150.121:3478

Ivan Gracia

unread,
Jul 16, 2015, 12:14:34 PM7/16/15
to Kurento Public, imth...@gmail.com
Getting the right STUN server is sometimes tricky. Thanks for the feedback!

Ivan Gracia



On Sat, Jul 11, 2015 at 6:24 PM, <imth...@gmail.com> wrote:
OK, after some hours of work, finally Kurento is working both on azure and ec2. I could be tricky, but the only problem was the STUN server.. the working one that I've put is 23.21.150.121:3478

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

shu...@gmail.com

unread,
Oct 23, 2015, 5:35:09 AM10/23/15
to kurento
Hi,

I am now doing a setup of kurento on Azure. May I ask on your solution to overcome the requirement to open the range of UDP ports?

Thanks in advance
Shue

talh...@gmail.com

unread,
Dec 18, 2015, 2:19:26 PM12/18/15
to kurento, shu...@gmail.com
I hope that you managed to figure that out. I myself spent 3-4 hours to figure it out how to open UDP ports for webrtc. I performed following steps:

#create cloud service with reserved ip and open only application specific endpoints on it (no need to open udp ports ranges for webrtc)
#in virtual machine inside cloud service. assign public ip (PIP)
#allow port 22 in ufw
#enable ufw
#allow all cloud service endpoints in ufw
#allow udp port ranges in ufw for webrtc

ph03n...@gmail.com

unread,
Feb 29, 2016, 5:26:35 PM2/29/16
to kurento, shu...@gmail.com
Hey,

I've spent the last couple of days trying to get kurento media server running in Azure without luck. You wouldn't be able to create a set by step tutorial for setting it up from scratch?

Cheers.

Ivan Gracia

unread,
Mar 10, 2016, 8:50:13 AM3/10/16
to Kurento Public, shu...@gmail.com
Where did you get stuck?

Ivan Gracia



--

Vũ Ngọc Sơn

unread,
Apr 10, 2017, 2:54:53 AM4/10/17
to kurento, shu...@gmail.com
Please help me on azure server

Vào 20:50:13 UTC+7 Thứ Năm, ngày 10 tháng 3 năm 2016, igracia đã viết:

si...@mobilenerd.net

unread,
Aug 31, 2017, 3:30:40 AM8/31/17
to kurento, shu...@gmail.com
Hey, can you link me to a page that instructs installing a STUN and TURN on azure VM?
Also, Is it necessary to install both TURN and STUN?
Reply all
Reply to author
Forward
0 new messages