|
@@ -569,7 +569,7 @@ export default class JingleSessionPC extends JingleSession {
|
569
|
569
|
type: 'set' })
|
570
|
570
|
.c('jingle', { xmlns: 'urn:xmpp:jingle:1',
|
571
|
571
|
action: 'transport-info',
|
572
|
|
- initiator: this.initiator,
|
|
572
|
+ initiator: this.initiatorJid,
|
573
|
573
|
sid: this.sid });
|
574
|
574
|
|
575
|
575
|
const localSDP = new SDP(this.peerconnection.localDescription.sdp);
|
|
@@ -585,7 +585,7 @@ export default class JingleSessionPC extends JingleSession {
|
585
|
585
|
|
586
|
586
|
ice.xmlns = 'urn:xmpp:jingle:transports:ice-udp:1';
|
587
|
587
|
cand.c('content', {
|
588
|
|
- creator: this.initiator === this.localJid
|
|
588
|
+ creator: this.initiatorJid === this.localJid
|
589
|
589
|
? 'initiator' : 'responder',
|
590
|
590
|
name: cands[0].sdpMid ? cands[0].sdpMid : mline.media
|
591
|
591
|
}).c('transport', ice);
|
|
@@ -855,13 +855,14 @@ export default class JingleSessionPC extends JingleSession {
|
855
|
855
|
}).c('jingle', {
|
856
|
856
|
xmlns: 'urn:xmpp:jingle:1',
|
857
|
857
|
action: 'session-initiate',
|
858
|
|
- initiator: this.initiator,
|
|
858
|
+ initiator: this.initiatorJid,
|
859
|
859
|
sid: this.sid
|
860
|
860
|
});
|
861
|
861
|
|
|
862
|
+ // FIXME this.me unresolved variable
|
862
|
863
|
new SDP(offerSdp).toJingle(
|
863
|
864
|
init,
|
864
|
|
- this.initiator === this.me ? 'initiator' : 'responder');
|
|
865
|
+ this.initiatorJid === this.me ? 'initiator' : 'responder');
|
865
|
866
|
init = init.tree();
|
866
|
867
|
logger.info('Session-initiate: ', init);
|
867
|
868
|
this.connection.sendIQ(init,
|
|
@@ -1031,7 +1032,7 @@ export default class JingleSessionPC extends JingleSession {
|
1031
|
1032
|
type: 'set' })
|
1032
|
1033
|
.c('jingle', { xmlns: 'urn:xmpp:jingle:1',
|
1033
|
1034
|
action: 'session-accept',
|
1034
|
|
- initiator: this.initiator,
|
|
1035
|
+ initiator: this.initiatorJid,
|
1035
|
1036
|
responder: this.responder,
|
1036
|
1037
|
sid: this.sid });
|
1037
|
1038
|
|
|
@@ -1046,7 +1047,7 @@ export default class JingleSessionPC extends JingleSession {
|
1046
|
1047
|
}
|
1047
|
1048
|
localSDP.toJingle(
|
1048
|
1049
|
accept,
|
1049
|
|
- this.initiator === this.localJid ? 'initiator' : 'responder',
|
|
1050
|
+ this.initiatorJid === this.localJid ? 'initiator' : 'responder',
|
1050
|
1051
|
null);
|
1051
|
1052
|
|
1052
|
1053
|
// Calling tree() to print something useful
|
|
@@ -1105,7 +1106,7 @@ export default class JingleSessionPC extends JingleSession {
|
1105
|
1106
|
.c('jingle', {
|
1106
|
1107
|
xmlns: 'urn:xmpp:jingle:1',
|
1107
|
1108
|
action: 'content-modify',
|
1108
|
|
- initiator: this.initiator,
|
|
1109
|
+ initiator: this.initiatorJid,
|
1109
|
1110
|
sid: this.sid
|
1110
|
1111
|
})
|
1111
|
1112
|
.c('content', {
|
|
@@ -1139,7 +1140,7 @@ export default class JingleSessionPC extends JingleSession {
|
1139
|
1140
|
.c('jingle', {
|
1140
|
1141
|
xmlns: 'urn:xmpp:jingle:1',
|
1141
|
1142
|
action: 'transport-accept',
|
1142
|
|
- initiator: this.initiator,
|
|
1143
|
+ initiator: this.initiatorJid,
|
1143
|
1144
|
sid: this.sid
|
1144
|
1145
|
});
|
1145
|
1146
|
|
|
@@ -1149,7 +1150,7 @@ export default class JingleSessionPC extends JingleSession {
|
1149
|
1150
|
transportAccept.c('content',
|
1150
|
1151
|
{
|
1151
|
1152
|
creator:
|
1152
|
|
- this.initiator === this.localJid
|
|
1153
|
+ this.initiatorJid === this.localJid
|
1153
|
1154
|
? 'initiator'
|
1154
|
1155
|
: 'responder',
|
1155
|
1156
|
name: mline.media
|
|
@@ -1188,7 +1189,7 @@ export default class JingleSessionPC extends JingleSession {
|
1188
|
1189
|
.c('jingle', {
|
1189
|
1190
|
xmlns: 'urn:xmpp:jingle:1',
|
1190
|
1191
|
action: 'transport-reject',
|
1191
|
|
- initiator: this.initiator,
|
|
1192
|
+ initiator: this.initiatorJid,
|
1192
|
1193
|
sid: this.sid
|
1193
|
1194
|
});
|
1194
|
1195
|
|
|
@@ -1218,7 +1219,7 @@ export default class JingleSessionPC extends JingleSession {
|
1218
|
1219
|
.c('jingle', {
|
1219
|
1220
|
xmlns: 'urn:xmpp:jingle:1',
|
1220
|
1221
|
action: 'session-terminate',
|
1221
|
|
- initiator: this.initiator,
|
|
1222
|
+ initiator: this.initiatorJid,
|
1222
|
1223
|
sid: this.sid
|
1223
|
1224
|
})
|
1224
|
1225
|
.c('reason')
|
|
@@ -2092,7 +2093,7 @@ export default class JingleSessionPC extends JingleSession {
|
2092
|
2093
|
.c('jingle', {
|
2093
|
2094
|
xmlns: 'urn:xmpp:jingle:1',
|
2094
|
2095
|
action: 'source-remove',
|
2095
|
|
- initiator: this.initiator,
|
|
2096
|
+ initiator: this.initiatorJid,
|
2096
|
2097
|
sid: this.sid
|
2097
|
2098
|
}
|
2098
|
2099
|
);
|
|
@@ -2114,7 +2115,7 @@ export default class JingleSessionPC extends JingleSession {
|
2114
|
2115
|
.c('jingle', {
|
2115
|
2116
|
xmlns: 'urn:xmpp:jingle:1',
|
2116
|
2117
|
action: 'source-add',
|
2117
|
|
- initiator: this.initiator,
|
|
2118
|
+ initiator: this.initiatorJid,
|
2118
|
2119
|
sid: this.sid
|
2119
|
2120
|
}
|
2120
|
2121
|
);
|