Преглед изворни кода

Manages SCTP connections by ID instead of an endpoint.

master
paweldomas пре 11 година
родитељ
комит
05e0454a56
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5
    0
      libs/colibri/colibri.focus.js

+ 5
- 0
libs/colibri/colibri.focus.js Прегледај датотеку

@@ -572,6 +572,7 @@ ColibriFocus.prototype.createdConference = function (result) {
572 572
                                         {
573 573
                                             initiator: 'true',
574 574
                                             expire: self.channelExpire,
575
+                                            id: self.mychannel[channel].attr('id'),
575 576
                                             endpoint: self.myMucResource,
576 577
                                             port: sctpPort
577 578
                                         }
@@ -885,6 +886,7 @@ ColibriFocus.prototype.updateChannel = function (remoteSDP, participant) {
885 886
         {
886 887
             var sctpmap = SDPUtil.find_line(remoteSDP.media[channel], 'a=sctpmap:');
887 888
             change.c('sctpconnection', {
889
+                id: $(this.channels[participant][channel]).attr('id'),
888 890
                 endpoint: $(this.channels[participant][channel]).attr('endpoint'),
889 891
                 expire: self.channelExpire,
890 892
                 port: SDPUtil.parse_sctpmap(sctpmap)[0]
@@ -1082,6 +1084,7 @@ ColibriFocus.prototype.addIceCandidate = function (session, elem) {
1082 1084
         else
1083 1085
         {
1084 1086
             change.c('sctpconnection', {
1087
+                id: $(self.channels[participant][channel]).attr('id'),
1085 1088
                 endpoint: $(self.channels[participant][channel]).attr('endpoint'),
1086 1089
                 expire: self.channelExpire
1087 1090
             });
@@ -1169,6 +1172,7 @@ ColibriFocus.prototype.sendIceCandidates = function (candidates) {
1169 1172
             else
1170 1173
             {
1171 1174
                 mycands.c('sctpconnection', {
1175
+                    id: $(this.mychannel[cands[0].sdpMLineIndex]).attr('id'),
1172 1176
                     endpoint: $(this.mychannel[cands[0].sdpMLineIndex]).attr('endpoint'),
1173 1177
                     port: $(this.mychannel[cands[0].sdpMLineIndex]).attr('port'),
1174 1178
                     expire: self.channelExpire
@@ -1228,6 +1232,7 @@ ColibriFocus.prototype.terminate = function (session, reason) {
1228 1232
         else
1229 1233
         {
1230 1234
             change.c('sctpconnection', {
1235
+                id: $(this.channels[participant][channel]).attr('id'),
1231 1236
                 endpoint: $(this.channels[participant][channel]).attr('endpoint'),
1232 1237
                 expire: '0'
1233 1238
             });

Loading…
Откажи
Сачувај