Browse Source

include bridge session ID in session-terminate

master
paweldomas 4 years ago
parent
commit
625a6ca958
1 changed files with 15 additions and 3 deletions
  1. 15
    3
      modules/xmpp/JingleSessionPC.js

+ 15
- 3
modules/xmpp/JingleSessionPC.js View File

1438
                         sid: this.sid
1438
                         sid: this.sid
1439
                     })
1439
                     })
1440
                     .c('reason')
1440
                     .c('reason')
1441
-                    .c((options && options.reason) || 'success');
1441
+                    .c((options && options.reason) || 'success')
1442
+                    .up();
1442
 
1443
 
1443
             if (options && options.reasonDescription) {
1444
             if (options && options.reasonDescription) {
1444
-                sessionTerminate.up()
1445
+                sessionTerminate
1445
                     .c('text')
1446
                     .c('text')
1446
-                    .t(options.reasonDescription);
1447
+                    .t(options.reasonDescription)
1448
+                    .up()
1449
+                    .up();
1450
+            } else {
1451
+                sessionTerminate.up();
1447
             }
1452
             }
1448
 
1453
 
1454
+            this._bridgeSessionId
1455
+                && sessionTerminate.c(
1456
+                    'bridge-session', {
1457
+                        xmlns: 'http://jitsi.org/protocol/focus',
1458
+                        id: this._bridgeSessionId
1459
+                    }).up();
1460
+
1449
             // Calling tree() to print something useful
1461
             // Calling tree() to print something useful
1450
             sessionTerminate = sessionTerminate.tree();
1462
             sessionTerminate = sessionTerminate.tree();
1451
             logger.info('Sending session-terminate', sessionTerminate);
1463
             logger.info('Sending session-terminate', sessionTerminate);

Loading…
Cancel
Save