{"_id":"56d763c2693ef41d0003abec","version":{"_id":"552829408962f339009a6790","project":"552829408962f339009a678d","__v":26,"createdAt":"2015-04-10T19:49:20.516Z","releaseDate":"2015-04-10T19:49:20.516Z","categories":["552829418962f339009a6791","55284ed68962f339009a67e1","55286c73391a362500d9b3f4","552918f6b316811900149f59","5529b255d739240d00a3483e","553287590a578a0d008d4ff5","55329385e7d1fa0d003fc946","5550b55200420e0d00d1312f","55525fca953c9c0d00f507d7","559199695631432f002d358a","559d8d96980b801700d5ec7e","55c5e833cccdeb2d004e24b9","55d76504f662951900fc0e7d","55ea213cc62aa02f008229cd","56157b750f5ed00d00483dd8","561981fbac0924170069f4e8","561b8b1ea430930d0037ea67","563417428b86331700b488ca","56cd785bface161300dae0ec","56cdcc6e70db8a15006395f4","56cdf1b749abf10b0036a34a","56cedc8ce50c9c1b00830423","56e97ba8d825061900d1ac83","570d505228e6900e00477229","573614ca2ab52e1700c8e851","57d556a2496a3117004d70cf"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":20,"parentDoc":null,"category":{"_id":"56cedc8ce50c9c1b00830423","__v":1,"pages":["56d763c2693ef41d0003abec"],"project":"552829408962f339009a678d","version":"552829408962f339009a6790","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-25T10:50:52.142Z","from_sync":false,"order":8,"slug":"server-configuration","title":"Server Configuration"},"project":"552829408962f339009a678d","user":"55282916d9e1db2d00cd923c","updates":["56ec31a590bbae0e007b0475"],"next":{"pages":[],"description":""},"createdAt":"2016-03-02T22:05:54.965Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"[block:api-header]\n{\n  \"type\": \"link\",\n  \"title\": \"Install and configure turn server\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"sudo apt-get install rfc5766-turn-server\",\n      \"language\": \"text\",\n      \"name\": \" \"\n    }\n  ]\n}\n[/block]\nPut the following in `/etc/turnserver.conf`:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"listening-ip=<external ip>\\nrelay-ip=<external ip>\\nverbose\\nVerbose\\nfingerprint\\nlt-cred-mech\\nserver-name=actor\\nuser=actor:password\\nrealm=actor\",\n      \"language\": \"text\",\n      \"name\": \" \"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Include this line On amazon AWS\",\n  \"body\": \"external-ip=<public ip>/<external ip>\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"External ip\",\n  \"body\": \"Likely external IP follows `inet addr:` in `ifconfig` command output.\"\n}\n[/block]\nRestart turn server:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"sudo service rfc5766-turn-server restart\",\n      \"language\": \"text\",\n      \"name\": \" \"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"link\",\n  \"title\": \"Configure Actor Server\"\n}\n[/block]\nPut the following in `/etc/actor/server.conf`:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"modules {\\n  webrtc {\\n    ice-servers: [\\n      {url: \\\"turn:<external turn server ip>:3478?transport=tcp\\\", username: \\\"actor\\\", credential: \\\"password\\\"}\\n      {url: \\\"turn:<external turn server ip>:3478?transport=udp\\\", username: \\\"actor\\\", credential: \\\"password\\\"}\\n    ]\\n  }\\n}\",\n      \"language\": \"text\",\n      \"name\": \" \"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Turn Server Credentials\",\n  \"body\": \"Right now there are static credentials for authorizing turn server connections. Newer Actor Server versions will be able to issue dynamic credentials.\"\n}\n[/block]\nRestart Actor Server:\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"sudo service actor restart\",\n      \"language\": \"text\",\n      \"name\": \" \"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"link\",\n  \"title\": \"See also\"\n}\n[/block]\n<a href=\"https://developer.actor.im/docs/ios-voice-calls\"><b>iOS SDK</b>: Voice calls</a>","excerpt":"Enabling group and private voice / video calls in Actor Server","slug":"server-calls-configuration","type":"basic","title":"Actor Server Calls Configuration"}

Actor Server Calls Configuration

Enabling group and private voice / video calls in Actor Server

[block:api-header] { "type": "link", "title": "Install and configure turn server" } [/block] [block:code] { "codes": [ { "code": "sudo apt-get install rfc5766-turn-server", "language": "text", "name": " " } ] } [/block] Put the following in `/etc/turnserver.conf`: [block:code] { "codes": [ { "code": "listening-ip=<external ip>\nrelay-ip=<external ip>\nverbose\nVerbose\nfingerprint\nlt-cred-mech\nserver-name=actor\nuser=actor:password\nrealm=actor", "language": "text", "name": " " } ] } [/block] [block:callout] { "type": "info", "title": "Include this line On amazon AWS", "body": "external-ip=<public ip>/<external ip>" } [/block] [block:callout] { "type": "info", "title": "External ip", "body": "Likely external IP follows `inet addr:` in `ifconfig` command output." } [/block] Restart turn server: [block:code] { "codes": [ { "code": "sudo service rfc5766-turn-server restart", "language": "text", "name": " " } ] } [/block] [block:api-header] { "type": "link", "title": "Configure Actor Server" } [/block] Put the following in `/etc/actor/server.conf`: [block:code] { "codes": [ { "code": "modules {\n webrtc {\n ice-servers: [\n {url: \"turn:<external turn server ip>:3478?transport=tcp\", username: \"actor\", credential: \"password\"}\n {url: \"turn:<external turn server ip>:3478?transport=udp\", username: \"actor\", credential: \"password\"}\n ]\n }\n}", "language": "text", "name": " " } ] } [/block] [block:callout] { "type": "warning", "title": "Turn Server Credentials", "body": "Right now there are static credentials for authorizing turn server connections. Newer Actor Server versions will be able to issue dynamic credentials." } [/block] Restart Actor Server: [block:code] { "codes": [ { "code": "sudo service actor restart", "language": "text", "name": " " } ] } [/block] [block:api-header] { "type": "link", "title": "See also" } [/block] <a href="https://developer.actor.im/docs/ios-voice-calls"><b>iOS SDK</b>: Voice calls</a>