@@ -373,7 +373,7 @@ JsSIP.Session.prototype.receiveInitialRequest = function(ua, request) {
373
373
* @param {HTMLVideoElement } remoteView
374
374
*/
375
375
this . answer = function ( selfView , remoteView ) {
376
- var offer , onMediaSuccess , onMediaFailure , onSdpFailure ;
376
+ var offer , onSuccess , onMediaFailure , onSdpFailure ;
377
377
378
378
// Check UA Status
379
379
JsSIP . utils . checkUAStatus ( this . ua ) ;
@@ -385,7 +385,7 @@ JsSIP.Session.prototype.receiveInitialRequest = function(ua, request) {
385
385
386
386
offer = request . body ;
387
387
388
- onMediaSuccess = function ( ) {
388
+ onSuccess = function ( ) {
389
389
var sdp = session . mediaSession . peerConnection . localDescription . sdp ;
390
390
391
391
if ( ! session . createConfirmedDialog ( request , 'UAS' ) ) {
@@ -435,7 +435,7 @@ JsSIP.Session.prototype.receiveInitialRequest = function(ua, request) {
435
435
436
436
//Initialize Media Session
437
437
session . mediaSession = new JsSIP . MediaSession ( session , selfView , remoteView ) ;
438
- session . mediaSession . startCallee ( onMediaSuccess , onMediaFailure , onSdpFailure , offer ) ;
438
+ session . mediaSession . startCallee ( onSuccess , onMediaFailure , onSdpFailure , offer ) ;
439
439
} ;
440
440
441
441
// Fire 'call' event callback
@@ -526,7 +526,7 @@ JsSIP.Session.prototype.receiveResponse = function(response) {
526
526
return ;
527
527
}
528
528
529
- this . acceptAndTerminate ( response , 'SIP ;cause= 400 ;text= "Missing session description"' ) ;
529
+ this . acceptAndTerminate ( response , 'SIP ;cause=400 ;text= "Missing session description"' ) ;
530
530
this . failed ( 'remote' , response , JsSIP . c . causes . BAD_MEDIA_DESCRIPTION ) ;
531
531
532
532
break ;
@@ -561,7 +561,7 @@ JsSIP.Session.prototype.receiveResponse = function(response) {
561
561
*/
562
562
function ( e ) {
563
563
console . warn ( e ) ;
564
- session . acceptAndTerminate ( response , 'SIP ;cause= 488 ;text= "Not Acceptable Here"' ) ;
564
+ session . acceptAndTerminate ( response , 'SIP ;cause=488 ;text="Not Acceptable Here"' ) ;
565
565
session . failed ( 'remote' , response , JsSIP . c . causes . BAD_MEDIA_DESCRIPTION ) ;
566
566
}
567
567
) ;
@@ -947,7 +947,7 @@ JsSIP.Session.prototype.sendInitialRequest = function(mediaType) {
947
947
request_sender . send ( ) ;
948
948
}
949
949
950
- function onMediaFailure ( fail , e ) {
950
+ function onMediaFailure ( e ) {
951
951
if ( self . status !== JsSIP . c . SESSION_TERMINATED ) {
952
952
console . log ( JsSIP . c . LOG_CLIENT_INVITE_SESSION + 'Media Access denied' ) ;
953
953
self . failed ( 'local' , null , JsSIP . c . causes . USER_DENIED_MEDIA_ACCESS ) ;
0 commit comments