surflion-service 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/surflion.js +6 -0
package/package.json
CHANGED
package/surflion.js
CHANGED
|
@@ -1476,6 +1476,7 @@ var SurfLion = {
|
|
|
1476
1476
|
SurfLion.eventHandlers.registered_expiring(data)
|
|
1477
1477
|
});
|
|
1478
1478
|
SurfLion.userAgent.on('newRTCSession', function (data) {
|
|
1479
|
+
console.log('data', data)
|
|
1479
1480
|
if (data.originator == 'remote') {
|
|
1480
1481
|
if (!SurfLion.canIncoming){
|
|
1481
1482
|
return
|
|
@@ -1497,12 +1498,14 @@ var SurfLion = {
|
|
|
1497
1498
|
});
|
|
1498
1499
|
}
|
|
1499
1500
|
data.session.on('accepted', function (data) {
|
|
1501
|
+
console.log('accepted');
|
|
1500
1502
|
if (data.originator == 'remote' && SurfLion.currentSession == null) {
|
|
1501
1503
|
SurfLion.currentSession = SurfLion.incomingSession;
|
|
1502
1504
|
SurfLion.incomingSession = null;
|
|
1503
1505
|
}
|
|
1504
1506
|
});
|
|
1505
1507
|
data.session.on('confirmed', function (c_data) {
|
|
1508
|
+
console.log('confirmed');
|
|
1506
1509
|
// SurfLion.ringtoneStream.pause();
|
|
1507
1510
|
SurfLion.eventHandlers.confirmed(c_data)
|
|
1508
1511
|
if (c_data.originator == 'remote' && SurfLion.currentSession == null) {
|
|
@@ -1519,15 +1522,18 @@ var SurfLion = {
|
|
|
1519
1522
|
SurfLion.localStream.play();
|
|
1520
1523
|
});
|
|
1521
1524
|
data.session.on("failed", function (data) {
|
|
1525
|
+
console.log('failed');
|
|
1522
1526
|
// SurfLion.ringtoneStream.pause();
|
|
1523
1527
|
SurfLion.incomingSession = null;
|
|
1524
1528
|
SurfLion.eventHandlers.ended(data)
|
|
1525
1529
|
})
|
|
1526
1530
|
data.session.on("ended", function (data) {
|
|
1531
|
+
console.log('ended');
|
|
1527
1532
|
// SurfLion.ringtoneStream.pause();
|
|
1528
1533
|
SurfLion.eventHandlers.ended(data)
|
|
1529
1534
|
})
|
|
1530
1535
|
data.session.on('sdp', function (data) {
|
|
1536
|
+
console.log('sdp');
|
|
1531
1537
|
if (SurfLion.debug) {
|
|
1532
1538
|
console.info('onSDP, type - ', data.type, ' sdp - ', data.sdp);
|
|
1533
1539
|
}
|