|
@@ -579,6 +579,15 @@ JitsiConference.prototype.toggleRecording = function (token, followEntity) {
|
579
|
579
|
reject(new Error("The conference is not created yet!"))});
|
580
|
580
|
}
|
581
|
581
|
|
|
582
|
+/**
|
|
583
|
+ * Returns true if the SIP calls are supported and false otherwise
|
|
584
|
+ */
|
|
585
|
+JitsiConference.prototype.isSIPCallingSupported = function () {
|
|
586
|
+ if(this.room)
|
|
587
|
+ return this.room.isSIPCallingSupported();
|
|
588
|
+ return false;
|
|
589
|
+}
|
|
590
|
+
|
582
|
591
|
/**
|
583
|
592
|
* Dials a number.
|
584
|
593
|
* @param number the number
|
|
@@ -6753,6 +6762,15 @@ ChatRoom.prototype.toggleRecording = function (token, followEntity) {
|
6753
|
6762
|
reject(new Error("The conference is not created yet!"))});
|
6754
|
6763
|
}
|
6755
|
6764
|
|
|
6765
|
+/**
|
|
6766
|
+ * Returns true if the SIP calls are supported and false otherwise
|
|
6767
|
+ */
|
|
6768
|
+ChatRoom.prototype.isSIPCallingSupported = function () {
|
|
6769
|
+ if(this.moderator)
|
|
6770
|
+ return this.moderator.isSipGatewayEnabled();
|
|
6771
|
+ return false;
|
|
6772
|
+}
|
|
6773
|
+
|
6756
|
6774
|
/**
|
6757
|
6775
|
* Dials a number.
|
6758
|
6776
|
* @param number the number
|
|
@@ -10552,7 +10570,7 @@ function Moderator(roomName, xmpp, emitter) {
|
10552
|
10570
|
// Sip gateway can be enabled by configuring Jigasi host in config.js or
|
10553
|
10571
|
// it will be enabled automatically if focus detects the component through
|
10554
|
10572
|
// service discovery.
|
10555
|
|
- this.sipGatewayEnabled =
|
|
10573
|
+ this.sipGatewayEnabled = this.xmppService.options.hosts &&
|
10556
|
10574
|
this.xmppService.options.hosts.call_control !== undefined;
|
10557
|
10575
|
|
10558
|
10576
|
this.eventEmitter = emitter;
|