-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebrtcregistrationsdk.js
64 lines (64 loc) · 2.21 KB
/
webrtcregistrationsdk.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
var wsServers = [
'wss://proxy-webrtc01.vo.sip.global:7443',
'wss://proxy-webrtc02.vo.sip.global:7443'
];
window.ua = new SIP.UA({
log: {
builtinEnabled: false
},
displayName: $scope.session.account.name,
dtmfType: SIP.C.dtmfType.RTP,
uri: $scope.sipUsername+'@yourinteliquentdomain',
authorizationUser: $scope.sipUsername,
password: $scope.sipPassword,
transportOptions: {
wsServers: wsServers,
traceSip: false
},
contactTransport: "wss",
//hackIpInContact: true,
sessionDescriptionHandlerFactoryOptions: {
constraints: {
audio: true,
video: false
},
alwaysAcquireMediaFirst: true,
peerConnectionOptions: {
rtcConfiguration: {
rtcpMuxPolicy: 'negotiate',
iceServers: [
{
url: 'stun:206.147.198.31:3478'
},
{
url: 'turn:206.147.198.31:3478?transport=udp',
username: '1234567890_askaboutthisvalue',
credential: 'XYZABCDEF_askaboutthisvalue'
},
{
url: 'turn:206.147.198.31:3478?transport=tcp',
username: '1234567890_askaboutthisvalue',
credential: 'XYZABCDEF_askaboutthisvalue'
},
{
url: 'stun:206.147.130.29:3478'
},
{
url: 'turn:206.147.130.29:3478?transport=udp',
username: '1234567890_askaboutthisvalue',
credential: 'XYZABCDEF_askaboutthisvalue'
},
{
url: 'turn:206.147.130.29:3478?transport=tcp',
username: '1234567890_askaboutthisvalue',
credential: 'XYZABCDEF_askaboutthisvalue'
}
]
}
}
},
register: true,
registerOptions: {
expires: 60
}
});