Skip to content

Instantly share code, notes, and snippets.

@egzonzeneli
Last active December 13, 2018 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egzonzeneli/a3ffe4217a05f77da93115cf7068fb6b to your computer and use it in GitHub Desktop.
Save egzonzeneli/a3ffe4217a05f77da93115cf7068fb6b to your computer and use it in GitHub Desktop.
Create Conference and Allocate Channels
{"id":"f12b746dc06fd37a"}
{
"id":"f12b746dc06fd37a",
"contents":[
{
"name":"video",
"channels":[
{
"expire":300,
"initiator":true,
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"direction":"sendrecv",
"channelBundleId":"3b646f72-2e54-498e-b82f-899d29d8439c",
"lastN":-1
}
]
},
{
"name":"audio",
"channels":[
{
"expire":300,
"initiator":true,
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"direction":"sendrecv",
"channelBundleId":"3b646f72-2e54-498e-b82f-899d29d8439c",
"rtpLevelrelayType":"mixer"
}
]
}
],
"channelBundles":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"transport":{
"xmlns":"urn:xmpp:jingle:transports:ice-udp:1",
"rtcpMux":true
}
}
]
}
{
"channel-bundles":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"transport":{
"candidates":[
{
"generation":0,
"component":1,
"protocol":"ssltcp",
"port":443,
"ip":"10.4.10.6",
"tcptype":"passive",
"foundation":"1",
"id":"f12b746dc06fd37a124792486bd5a7070120e63c6",
"priority":2130706431,
"type":"host",
"network":0
},
{
"generation":0,
"component":1,
"protocol":"udp",
"port":10000,
"ip":"10.4.10.6",
"foundation":"3",
"id":"f12b746dc06fd37a124792486bd5a7070120e891b",
"priority":2130706431,
"type":"host",
"network":0
},
{
"generation":0,
"rel-port":443,
"ip":"65.52.129.191",
"foundation":"2",
"rel-addr":"10.4.10.6",
"priority":1694498815,
"type":"srflx",
"network":0,
"component":1,
"protocol":"ssltcp",
"port":443,
"tcptype":"passive",
"id":"f12b746dc06fd37a124792486bd5a7070493edb7f"
},
{
"generation":0,
"rel-port":10000,
"component":1,
"protocol":"udp",
"port":10000,
"ip":"65.52.129.191",
"foundation":"4",
"id":"f12b746dc06fd37a124792486bd5a7070493f00d4",
"rel-addr":"10.4.10.6",
"priority":1677724415,
"type":"srflx",
"network":0
}
],
"xmlns":"urn:xmpp:jingle:transports:ice-udp:1",
"ufrag":"39k601cujhhagk",
"rtcp-mux":true,
"pwd":"4iiuqun9pgoocgfblkjj36kmu4",
"fingerprints":[
{
"fingerprint":"55:92:17:1E:4B:D8:B6:FD:A8:1E:A4:56:0F:A6:AB:23:E6:2A:0F:9D",
"setup":"actpass",
"hash":"sha-1"
}
]
}
}
],
"endpoints":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c"
}
],
"contents":[
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
804154123
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"id":"a92236a6b8cc618f",
"receive-simulcast-layer":null,
"direction":"sendrecv",
"last-n":-1
}
],
"name":"video"
},
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
64764000
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"id":"9fc1426f0251df3d",
"direction":"sendrecv"
}
],
"name":"audio"
}
],
"id":"f12b746dc06fd37a"
}
type: offer, sdp: v=0
o=- 1544696670519 1 IN IP4 127.0.0.1
s=socol-sdp
t=0 0
a=group:BUNDLE video audio
m=video 1 RTP/SAVPF 100 107 101 96 99 97
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=rtpmap:100 VP8/90000
a=rtpmap:107 H264/90000
a=rtpmap:101 VP9/90000
a=rtpmap:96 RTX/90000
a=rtpmap:99 RTX/90000
a=rtpmap:97 RTX/90000
a=fmtp:100 x-google-start-bitrate=800
a=fmtp:107 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1;x-google-start-bitrate=800
a=fmtp:101 x-google-profile-id=0;x-google-start-bitrate=800
a=fmtp:96 apt=100
a=fmtp:99 apt=107
a=fmtp:97 apt=101
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:107 ccm fir
a=rtcp-fb:107 nack
a=rtcp-fb:107 nack pli
a=rtcp-fb:107 goog-remb
a=rtcp-fb:107 transport-cc
a=rtcp-fb:101 ccm fir
a=rtcp-fb:101 nack
a=rtcp-fb:101 nack pli
a=rtcp-fb:101 goog-remb
a=rtcp-fb:101 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=setup:actpass
a=mid:video
a=sendrecv
a=ice-ufrag:39k601cujhhagk
a=ice-pwd:4iiuqun9pgoocgfblkjj36kmu4
a=fingerprint:sha-1 55:92:17:1E:4B:D8:B6:FD:A8:1E:A4:56:0F:A6:AB:23:E6:2A:0F:9D
a=candidate:1 1 ssltcp 2130706431 10.4.10.6 443 typ host generation 0
a=candidate:3 1 udp 2130706431 10.4.10.6 10000 typ host generation 0
a=candidate:2 1 ssltcp 1694498815 65.52.129.191 443 typ srflx raddr 10.4.10.6 rport 443 generation 0
a=candidate:4 1 udp 1677724415 65.52.129.191 10000 typ srflx raddr 10.4.10.6 rport 10000 generation 0
a=ssrc:804154123 cname:mixed
a=ssrc:804154123 label:mixedlabelvideo0
a=ssrc:804154123 msid:mixedmslabel mixedlabelvideo0
a=ssrc:804154123 mslabel:mixedmslabel
a=rtcp-mux
a=rtcp-rsize
m=audio 1 RTP/SAVPF 111 103 104 126
c=IN IP4 0.0.0.0
a=rtcp:1 IN IP4 0.0.0.0
a=rtpmap:111 opus/48000/2
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:126 telephone-event/8000
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=setup:actpass
a=mid:audio
a=sendrecv
a=ice-ufrag:39k601cujhhagk
a=ice-pwd:4iiuqun9pgoocgfblkjj36kmu4
a=fingerprint:sha-1 55:92:17:1E:4B:D8:B6:FD:A8:1E:A4:56:0F:A6:AB:23:E6:2A:0F:9D
a=candidate:1 1 ssltcp 2130706431 10.4.10.6 443 typ host generation 0
a=candidate:3 1 udp 2130706431 10.4.10.6 10000 typ host generation 0
a=candidate:2 1 ssltcp 1694498815 65.52.129.191 443 typ srflx raddr 10.4.10.6 rport 443 generation 0
a=candidate:4 1 udp 1677724415 65.52.129.191 10000 typ srflx raddr 10.4.10.6 rport 10000 generation 0
a=ssrc:64764000 cname:mixed
a=ssrc:64764000 label:mixedlabelaudio0
a=ssrc:64764000 msid:mixedmslabel mixedlabelaudio0
a=ssrc:64764000 mslabel:mixedmslabel
a=rtcp-mux
a=rtcp-rsize
v=0
o=- 4075547028583710760 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE video audio
a=msid-semantic: WMS yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO
m=video 57946 RTP/SAVPF 100 107 101 96 99 97
c=IN IP4 82.114.66.211
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:3897721391 1 udp 2122260223 192.168.46.113 57944 typ host generation 0 network-id 1
a=candidate:1986380506 1 udp 2122194687 10.0.75.1 57945 typ host generation 0 network-id 2
a=candidate:3839121035 1 udp 2122129151 10.0.1.31 57946 typ host generation 0 network-id 3
a=candidate:2798747359 1 tcp 1518280447 192.168.46.113 9 typ host tcptype active generation 0 network-id 1
a=candidate:954613290 1 tcp 1518214911 10.0.75.1 9 typ host tcptype active generation 0 network-id 2
a=candidate:2857871995 1 tcp 1518149375 10.0.1.31 9 typ host tcptype active generation 0 network-id 3
a=candidate:2790893571 1 udp 1685921535 82.114.66.211 57946 typ srflx raddr 10.0.1.31 rport 57946 generation 0 network-id 3
a=ice-ufrag:K7yx
a=ice-pwd:OWGPQ2I1CoyJ5SQH7n2yyzr8
a=ice-options:trickle
a=fingerprint:sha-256 6F:92:EF:7E:DB:CA:71:36:08:EA:2C:EC:36:8A:B5:F0:52:CA:16:27:16:A6:24:14:AA:5B:63:2C:35:6E:49:38
a=setup:active
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 x-google-max-bitrate=228;x-google-min-bitrate=228
a=rtpmap:107 H264/90000
a=rtcp-fb:107 goog-remb
a=rtcp-fb:107 transport-cc
a=rtcp-fb:107 ccm fir
a=rtcp-fb:107 nack
a=rtcp-fb:107 nack pli
a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:101 VP9/90000
a=rtcp-fb:101 goog-remb
a=rtcp-fb:101 transport-cc
a=rtcp-fb:101 ccm fir
a=rtcp-fb:101 nack
a=rtcp-fb:101 nack pli
a=fmtp:101 profile-id=0
a=rtpmap:96 RTX/90000
a=fmtp:96 apt=100
a=rtpmap:99 RTX/90000
a=fmtp:99 apt=107
a=rtpmap:97 RTX/90000
a=fmtp:97 apt=101
a=ssrc-group:FID 720744555 2359623430
a=ssrc:720744555 cname:uMHBra3TIQc3KpL5
a=ssrc:720744555 msid:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO b9180715-d90f-4394-842d-8065203ec07b
a=ssrc:720744555 mslabel:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO
a=ssrc:720744555 label:b9180715-d90f-4394-842d-8065203ec07b
a=ssrc:2359623430 cname:uMHBra3TIQc3KpL5
a=ssrc:2359623430 msid:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO b9180715-d90f-4394-842d-8065203ec07b
a=ssrc:2359623430 mslabel:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO
a=ssrc:2359623430 label:b9180715-d90f-4394-842d-8065203ec07b
m=audio 9 RTP/SAVPF 111 103 104 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:K7yx
a=ice-pwd:OWGPQ2I1CoyJ5SQH7n2yyzr8
a=ice-options:trickle
a=fingerprint:sha-256 6F:92:EF:7E:DB:CA:71:36:08:EA:2C:EC:36:8A:B5:F0:52:CA:16:27:16:A6:24:14:AA:5B:63:2C:35:6E:49:38
a=setup:active
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;sprop-stereo=1;stereo=1;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:126 telephone-event/8000
a=ssrc:2249355669 cname:uMHBra3TIQc3KpL5
a=ssrc:2249355669 msid:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO d0a3f449-9a35-4603-8ef5-e39c33ba2984
a=ssrc:2249355669 mslabel:yHkgE6qNUN92OgaSRnh1URhQfJQIZqwBGNUO
a=ssrc:2249355669 label:d0a3f449-9a35-4603-8ef5-e39c33ba2984
{
"contents":[
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
720744555,
2359623430
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"id":"a92236a6b8cc618f",
"receive-simulcast-layer":null,
"direction":"sendrecv",
"last-n":-1,
"payload-types":[
{
"id":100,
"name":"VP8",
"clockrate":90000,
"parameters":{
"x-google-max-bitrate":"228",
"x-google-min-bitrate":"228"
},
"rtcp-fbs":[
{
"type":"goog-remb"
},
{
"type":"transport-cc"
},
{
"type":"ccm",
"subtype":"fir"
},
{
"type":"nack"
},
{
"type":"nack",
"subtype":"pli"
}
]
},
{
"id":107,
"name":"H264",
"clockrate":90000,
"parameters":{
"level-asymmetry-allowed":"1",
"packetization-mode":"1",
"profile-level-id":"42e01f"
},
"rtcp-fbs":[
{
"type":"goog-remb"
},
{
"type":"transport-cc"
},
{
"type":"ccm",
"subtype":"fir"
},
{
"type":"nack"
},
{
"type":"nack",
"subtype":"pli"
}
]
},
{
"id":101,
"name":"VP9",
"clockrate":90000,
"parameters":{
"profile-id":"0"
},
"rtcp-fbs":[
{
"type":"goog-remb"
},
{
"type":"transport-cc"
},
{
"type":"ccm",
"subtype":"fir"
},
{
"type":"nack"
},
{
"type":"nack",
"subtype":"pli"
}
]
},
{
"id":96,
"name":"RTX",
"clockrate":90000,
"parameters":{
"apt":"100"
}
},
{
"id":99,
"name":"RTX",
"clockrate":90000,
"parameters":{
"apt":"107"
}
},
{
"id":97,
"name":"RTX",
"clockrate":90000,
"parameters":{
"apt":"101"
}
}
],
"ssrc-groups":[
{
"semantics":"FID",
"sources":[
"720744555",
"2359623430"
]
}
],
"rtp-hdrexts":[
{
"id":2,
"uri":"urn:ietf:params:rtp-hdrext:toffset"
},
{
"id":3,
"uri":"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"
},
{
"id":5,
"uri":"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"
}
]
}
],
"name":"video"
},
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
2249355669
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"id":"9fc1426f0251df3d",
"direction":"sendrecv",
"payload-types":[
{
"id":111,
"name":"opus",
"clockrate":48000,
"parameters":{
"minptime":"10",
"sprop-stereo":"1",
"stereo":"1",
"useinbandfec":"1"
},
"rtcp-fbs":[
{
"type":"transport-cc"
}
]
},
{
"id":103,
"name":"ISAC",
"clockrate":16000,
"parameters":{
}
},
{
"id":104,
"name":"ISAC",
"clockrate":32000,
"parameters":{
}
},
{
"id":126,
"name":"telephone-event",
"clockrate":8000,
"parameters":{
}
}
],
"ssrc-groups":[
],
"rtp-hdrexts":[
{
"id":1,
"uri":"urn:ietf:params:rtp-hdrext:ssrc-audio-level"
}
]
}
],
"name":"audio"
}
],
"id":"f12b746dc06fd37a",
"channel-bundles":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"transport":{
"fingerprints":[
{
"fingerprint":"6F:92:EF:7E:DB:CA:71:36:08:EA:2C:EC:36:8A:B5:F0:52:CA:16:27:16:A6:24:14:AA:5B:63:2C:35:6E:49:38",
"hash":"sha-256"
}
],
"candidates":[
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"udp",
"port":57944,
"ip":"192.168.46.113",
"tcptype":null,
"foundation":3897721391,
"priority":2122260223,
"type":"host",
"network":1
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"udp",
"port":57945,
"ip":"10.0.75.1",
"tcptype":null,
"foundation":1986380506,
"priority":2122194687,
"type":"host",
"network":2
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"udp",
"port":57946,
"ip":"10.0.1.31",
"tcptype":null,
"foundation":3839121035,
"priority":2122129151,
"type":"host",
"network":3
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"tcp",
"port":9,
"ip":"192.168.46.113",
"tcptype":"active",
"foundation":2798747359,
"priority":1518280447,
"type":"host",
"network":1
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"tcp",
"port":9,
"ip":"10.0.75.1",
"tcptype":"active",
"foundation":954613290,
"priority":1518214911,
"type":"host",
"network":2
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"tcp",
"port":9,
"ip":"10.0.1.31",
"tcptype":"active",
"foundation":2857871995,
"priority":1518149375,
"type":"host",
"network":3
},
{
"id":"4075547028583710760",
"generation":0,
"component":1,
"protocol":"udp",
"port":57946,
"ip":"82.114.66.211",
"tcptype":null,
"foundation":2790893571,
"priority":1685921535,
"type":"srflx",
"network":3,
"rel-addr":"10.0.1.31",
"rel-port":"10.0.1.31"
}
],
"ufrag":"K7yx",
"pwd":"OWGPQ2I1CoyJ5SQH7n2yyzr8",
"rtcp-mux":true,
"rtcp-rsize":true
},
"xmlns":"urn:xmpp:jingle:transports:ice-udp:1"
}
]
}
{
"channel-bundles":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"transport":{
"candidates":[
{
"generation":0,
"component":1,
"protocol":"ssltcp",
"port":443,
"ip":"10.4.10.6",
"tcptype":"passive",
"foundation":"1",
"id":"f12b746dc06fd37a124792486bd5a7070120e63c6",
"priority":2130706431,
"type":"host",
"network":0
},
{
"generation":0,
"component":1,
"protocol":"udp",
"port":10000,
"ip":"10.4.10.6",
"foundation":"3",
"id":"f12b746dc06fd37a124792486bd5a7070120e891b",
"priority":2130706431,
"type":"host",
"network":0
},
{
"generation":0,
"rel-port":443,
"ip":"65.52.129.191",
"foundation":"2",
"rel-addr":"10.4.10.6",
"priority":1694498815,
"type":"srflx",
"network":0,
"component":1,
"protocol":"ssltcp",
"port":443,
"tcptype":"passive",
"id":"f12b746dc06fd37a124792486bd5a7070493edb7f"
},
{
"generation":0,
"rel-port":10000,
"component":1,
"protocol":"udp",
"port":10000,
"ip":"65.52.129.191",
"foundation":"4",
"id":"f12b746dc06fd37a124792486bd5a7070493f00d4",
"rel-addr":"10.4.10.6",
"priority":1677724415,
"type":"srflx",
"network":0
}
],
"xmlns":"urn:xmpp:jingle:transports:ice-udp:1",
"ufrag":"39k601cujhhagk",
"rtcp-mux":true,
"pwd":"4iiuqun9pgoocgfblkjj36kmu4",
"fingerprints":[
{
"fingerprint":"55:92:17:1E:4B:D8:B6:FD:A8:1E:A4:56:0F:A6:AB:23:E6:2A:0F:9D",
"setup":"actpass",
"hash":"sha-1"
}
]
}
}
],
"endpoints":[
{
"id":"3b646f72-2e54-498e-b82f-899d29d8439c"
}
],
"contents":[
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
804154123
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"ssrcs":[
2359623430,
720744555
],
"id":"a92236a6b8cc618f",
"receive-simulcast-layer":null,
"direction":"sendrecv",
"last-n":-1
}
],
"name":"video"
},
{
"channels":[
{
"endpoint":"3b646f72-2e54-498e-b82f-899d29d8439c",
"channel-bundle-id":"3b646f72-2e54-498e-b82f-899d29d8439c",
"sources":[
64764000
],
"rtp-level-relay-type":"translator",
"expire":300,
"initiator":true,
"ssrcs":[
2249355669
],
"id":"9fc1426f0251df3d",
"direction":"sendrecv"
}
],
"name":"audio"
}
],
"id":"f12b746dc06fd37a"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment