{"action":"created","issue":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/329","labels_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/329/comments","events_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/329/events","html_url":"https://github.com/meetecho/janus-gateway/issues/329","id":106892140,"number":329,"title":"regression: dtls does not connect for chrome-published streams","user":{"login":"ploxiln","id":649835,"avatar_url":"https://avatars.githubusercontent.com/u/649835?v=3","gravatar_id":"","url":"https://api.github.com/users/ploxiln","html_url":"https://github.com/ploxiln","followers_url":"https://api.github.com/users/ploxiln/followers","following_url":"https://api.github.com/users/ploxiln/following{/other_user}","gists_url":"https://api.github.com/users/ploxiln/gists{/gist_id}","starred_url":"https://api.github.com/users/ploxiln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploxiln/subscriptions","organizations_url":"https://api.github.com/users/ploxiln/orgs","repos_url":"https://api.github.com/users/ploxiln/repos","events_url":"https://api.github.com/users/ploxiln/events{/privacy}","received_events_url":"https://api.github.com/users/ploxiln/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-09-17T00:51:58Z","updated_at":"2015-09-22T04:41:13Z","closed_at":null,"body":"A version of janus from June 11 (11a33f5cad1d71ca396c6f8da02f813d9654b0f8) works with both firefox and chrome both publishing and viewing.\r\n\r\nCurrent master seems to work with firefox publishing, firefox viewing, and chrome viewing, but not chrome publishing. I've determined this by testing with the videoroom plugin (and turning off \"publish\" for one side to make it uni-directional between two browsers).\r\n\r\nMaybe related to #328?\r\n\r\nFurther details:\r\n\r\n  * ubuntu 14.04\r\n  * openssl-1.0.2d\r\n  * libsrtp-1.5.2\r\n  * sofia-sip-1.12.11\r\n  * direct connection possible between browsers on 172.30.1.1 and janus on 172.30.1.2\r\n  * janus log: https://gist.github.com/ploxiln/88dc0a32dd6fdf5a486a\r\n\r\nkey log lines (these two identical lines emitted together, every 20 seconds or so)\r\n```\r\n[WARN] [4287276313] Still waiting for the DTLS stack for component 1 in stream 1...\r\n[WARN] [4287276313] Still waiting for the DTLS stack for component 1 in stream 1...\r\n```\r\n\r\nThis state persists indefinitely. Janus admin says this (sdp trimmed):\r\n```\r\n{\r\n    \"session_id\": 3447375110,\r\n    \"handle_id\": 4287276313,\r\n    \"current_time\": 20794988550,\r\n    \"plugin\": \"janus.plugin.videoroom\",\r\n    \"plugin_specific\": {\r\n        \"type\": \"publisher\",\r\n        \"room\": 1234,\r\n        \"id\": 1679004654,\r\n        \"display\": \"usr1\",\r\n        \"media\": {\r\n            \"audio\": 1,\r\n            \"video\": 1,\r\n            \"data\": 0\r\n        },\r\n        \"destroyed\": 0\r\n    },\r\n    \"flags\": {\r\n        \"got-offer\": 1,\r\n        \"got-answer\": 1,\r\n        \"processing-offer\": 0,\r\n        \"starting\": 1,\r\n        \"ready\": 0,\r\n        \"stopped\": 0,\r\n        \"alert\": 0,\r\n        \"bundle\": 1,\r\n        \"rtcp-mux\": 1,\r\n        \"trickle\": 1,\r\n        \"all-trickles\": 1,\r\n        \"trickle-synced\": 0,\r\n        \"data-channels\": 0,\r\n        \"has-audio\": 1,\r\n        \"has-video\": 1,\r\n        \"plan-b\": 0,\r\n        \"cleaning\": 0\r\n    },\r\n    \"agent-created\": 20531834105,\r\n    \"ice-mode\": \"full\",\r\n    \"ice-role\": \"controlled\",\r\n    \"sdps\": {\r\n        \"local\": \"v=0\\r\\no=- 20531862462 20531862461 IN IP4 127.0.0.1\\r\\ns=Demo Room\\r\\n...\",\r\n        \"remote\": \"v=0\\r\\no=- 3285441602913217416 2 IN IP4 127.0.0.1\\r\\ns=-\\r\\nt=0 0\\r\\n...\"\r\n    },\r\n    \"streams\": [\r\n        {\r\n            \"id\": 1,\r\n            \"ready\": -1,\r\n            \"disabled\": \"false\",\r\n            \"ssrc\": {\r\n                \"audio\": 4238369273,\r\n                \"video\": 1848915221,\r\n                \"audio-peer\": 4088070471,\r\n                \"video-peer\": 1675023640,\r\n                \"video-peer-rtx\": 1010825809\r\n            },\r\n            \"components\": [\r\n                {\r\n                    \"id\": 1,\r\n                    \"state\": \"connected\",\r\n                    \"local-candidates\": [\r\n                        \"1 1 udp 2013266431 172.30.1.2 10000 typ host\\r\\n\",\r\n                        \"2 1 udp 2013266431 172.30.1.2 10000 typ host\\r\\n\",\r\n                        \"3 1 udp 1677721855 108.176.27.194 62197 typ srflx raddr 10.0.2.15 rport 10000\\r\\n\",\r\n                        \"4 1 udp 1845494015 192.168.41.119 52222 typ prflx raddr 10.0.2.15 rport 10000\\r\\n\",\r\n                        \"5 1 udp 1677721855 108.176.27.194 6857 typ srflx raddr 172.30.1.2 rport 10000\\r\\n\",\r\n                        \"6 1 udp 1845494015 192.168.41.119 61394 typ prflx raddr 172.30.1.2 rport 10000\\r\\n\"\r\n                    ],\r\n                    \"remote-candidates\": [\r\n                        \"150719247 1 udp 2122260223 172.30.1.1 52605 typ host generation 0\",\r\n                        \"2368367442 1 udp 2122194687 192.168.41.119 56509 typ host generation 0\",\r\n                        \"150719247 1 udp 2122260223 172.30.1.1 50040 typ host generation 0\",\r\n                        \"2368367442 1 udp 2122194687 192.168.41.119 58816 typ host generation 0\",\r\n                        \"1101485249 1 udp 1685987071 108.176.27.194 1972 typ srflx raddr 192.168.41.119 rport 56509 generation 0\",\r\n                        \"1101485249 1 udp 1685987071 108.176.27.194 4279 typ srflx raddr 192.168.41.119 rport 58816 generation 0\"\r\n                    ],\r\n                    \"dtls\": {},\r\n                    \"in_stats\": {},\r\n                    \"out_stats\": {}\r\n                }\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/comments/142180403","html_url":"https://github.com/meetecho/janus-gateway/issues/329#issuecomment-142180403","issue_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/329","id":142180403,"user":{"login":"ploxiln","id":649835,"avatar_url":"https://avatars.githubusercontent.com/u/649835?v=3","gravatar_id":"","url":"https://api.github.com/users/ploxiln","html_url":"https://github.com/ploxiln","followers_url":"https://api.github.com/users/ploxiln/followers","following_url":"https://api.github.com/users/ploxiln/following{/other_user}","gists_url":"https://api.github.com/users/ploxiln/gists{/gist_id}","starred_url":"https://api.github.com/users/ploxiln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ploxiln/subscriptions","organizations_url":"https://api.github.com/users/ploxiln/orgs","repos_url":"https://api.github.com/users/ploxiln/repos","events_url":"https://api.github.com/users/ploxiln/events{/privacy}","received_events_url":"https://api.github.com/users/ploxiln/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T04:41:13Z","updated_at":"2015-09-22T04:41:13Z","body":"Also worth mentioning, it works with the exact same build / config, if running on an ec2 host (so there's a 1-to-1 nat on the ec2 side and a home-router nat on the client side, instead of no nat anywhere as in the case that's failing here)."}}