aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl
diff options
context:
space:
mode:
authordamencho <damencho@jitsi.org>2016-12-08 18:04:59 -0600
committerdamencho <damencho@jitsi.org>2016-12-08 18:05:44 -0600
commit402ad5c9e7fa9af06fbb9152ec8d693f62228b38 (patch)
tree82a561080acb1d047a6347ebb5ca56a6e1c3dba5 /src/net/java/sip/communicator/impl
parent9edf7d68ccf968083c38859b89a097b7fc73f0c0 (diff)
downloadjitsi-402ad5c9e7fa9af06fbb9152ec8d693f62228b38.zip
jitsi-402ad5c9e7fa9af06fbb9152ec8d693f62228b38.tar.gz
jitsi-402ad5c9e7fa9af06fbb9152ec8d693f62228b38.tar.bz2
Adds an option to specify custom header names for meet room name.
Diffstat (limited to 'src/net/java/sip/communicator/impl')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/CallSipImpl.java27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/CallSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/CallSipImpl.java
index bae70a2..62711c7 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/CallSipImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/CallSipImpl.java
@@ -61,15 +61,27 @@ public class CallSipImpl
* Name of extra INVITE header which specifies name of MUC room that is
* hosting the Jitsi Meet conference.
*/
- public static final String JITSI_MEET_ROOM_HEADER
- = "Jitsi-Conference-Room";
+ public String JITSI_MEET_ROOM_HEADER = "Jitsi-Conference-Room";
+
+ /**
+ * Property name of extra INVITE header which specifies name of MUC room
+ * that is hosting the Jitsi Meet conference.
+ */
+ private static final String JITSI_MEET_ROOM_HEADER_PROPERTY
+ = "JITSI_MEET_ROOM_HEADER_NAME";
+
+ /**
+ * Property name of extra INVITE header which specifies password required
+ * to enter MUC room that is hosting the Jitsi Meet conference.
+ */
+ public String JITSI_MEET_ROOM_PASS_HEADER = "Jitsi-Conference-Room-Pass";
/**
* Name of extra INVITE header which specifies password required to enter
* MUC room that is hosting the Jitsi Meet conference.
*/
- public static final String JITSI_MEET_ROOM_PASS_HEADER
- = "Jitsi-Conference-Room-Pass";
+ private static final String JITSI_MEET_ROOM_PASS_HEADER_PROPERTY
+ = "JITSI_MEET_ROOM_PASS_HEADER_NAME";
/**
* Custom header included in initial desktop sharing call creation.
@@ -159,6 +171,13 @@ public class CallSipImpl
}
this.retransmitsRingingInterval = retransmitsRingingInterval;
+ AccountID account = parentOpSet.getProtocolProvider().getAccountID();
+ // Specify custom header names
+ JITSI_MEET_ROOM_HEADER = account.getAccountPropertyString(
+ JITSI_MEET_ROOM_HEADER_PROPERTY, JITSI_MEET_ROOM_HEADER);
+ JITSI_MEET_ROOM_PASS_HEADER = account.getAccountPropertyString(
+ JITSI_MEET_ROOM_PASS_HEADER_PROPERTY, JITSI_MEET_ROOM_PASS_HEADER);
+
//let's add ourselves to the calls repo. we are doing it ourselves just
//to make sure that no one ever forgets.
parentOpSet.getActiveCallsRepository().addCall(this);