@@ -74,7 +74,7 @@ JsSIP.Session.prototype.init_incoming = function(request) {
7474} ;
7575
7676JsSIP . Session . prototype . connect = function ( target , views , options ) {
77- var event , eventHandlers , request , selfView , remoteView , mediaType , extraHeaders , requestParams ;
77+ var event , eventHandlers , request , selfView , remoteView , mediaTypes , extraHeaders , requestParams ;
7878
7979 // Check UA Status
8080 JsSIP . Utils . checkUAStatus ( this . ua ) ;
@@ -100,7 +100,7 @@ JsSIP.Session.prototype.connect = function(target, views, options) {
100100 options = options || { } ;
101101 selfView = views . selfView || null ;
102102 remoteView = views . remoteView || null ;
103- mediaType = options . mediaType || { audio : true , video : true } ;
103+ mediaTypes = options . mediaTypes || { audio : true , video : true } ;
104104 extraHeaders = options . extraHeaders || [ ] ;
105105 eventHandlers = options . eventHandlers || { } ;
106106
@@ -155,7 +155,7 @@ JsSIP.Session.prototype.connect = function(target, views, options) {
155155
156156 this . newSession ( 'local' , request , target ) ;
157157 this . connecting ( 'local' , request , target ) ;
158- this . sendInitialRequest ( mediaType ) ;
158+ this . sendInitialRequest ( mediaTypes ) ;
159159} ;
160160
161161/**
@@ -1003,7 +1003,7 @@ JsSIP.Session.prototype.sendDTMF = function(tones, options) {
10031003/**
10041004 * @private
10051005 */
1006- JsSIP . Session . prototype . sendInitialRequest = function ( mediaType ) {
1006+ JsSIP . Session . prototype . sendInitialRequest = function ( mediaTypes ) {
10071007 var
10081008 self = this ,
10091009 request_sender = new JsSIP . RequestSender ( self , this . ua ) ;
@@ -1019,7 +1019,7 @@ JsSIP.Session.prototype.sendInitialRequest = function(mediaType) {
10191019
10201020 // Hack to quit m=video section from sdp defined in http://code.google.com/p/webrtc/issues/detail?id=935
10211021 // To be deleted when the fix arrives to chrome stable version
1022- if ( ! mediaType . video ) {
1022+ if ( ! mediaTypes . video ) {
10231023 if ( self . request . body . indexOf ( 'm=video' ) !== - 1 ) {
10241024 self . request . body = self . request . body . substring ( 0 , self . request . body . indexOf ( 'm=video' ) ) ;
10251025 }
@@ -1038,7 +1038,7 @@ JsSIP.Session.prototype.sendInitialRequest = function(mediaType) {
10381038 }
10391039 }
10401040
1041- self . mediaSession . startCaller ( mediaType , onMediaSuccess , onMediaFailure ) ;
1041+ self . mediaSession . startCaller ( mediaTypes , onMediaSuccess , onMediaFailure ) ;
10421042} ;
10431043
10441044
0 commit comments