@@ -68,10 +68,10 @@ JsSIP.UA.prototype = new JsSIP.EventEmitter();
6868 *
6969 * @throws {JsSIP.Exceptions.NotReadyError } If JsSIP.UA is not ready (see JsSIP.UA.status, JsSIP.UA.error parameters).
7070 */
71- JsSIP . UA . prototype . register = function ( extraHeaders ) {
71+ JsSIP . UA . prototype . register = function ( options ) {
7272 if ( this . status === JsSIP . C . UA_STATUS_READY ) {
7373 this . configuration . register = true ;
74- this . registrator . register ( extraHeaders ) ;
74+ this . registrator . register ( options ) ;
7575 } else {
7676 throw new JsSIP . Exceptions . NotReadyError ( ) ;
7777 }
@@ -83,10 +83,10 @@ JsSIP.UA.prototype.register = function(extraHeaders) {
8383 *
8484 * @throws {JsSIP.Exceptions.NotReadyError } If JsSIP.UA is not ready (see JsSIP.UA.status, JsSIP.UA.error parameters).
8585 */
86- JsSIP . UA . prototype . unregister = function ( all , extraHeaders ) {
86+ JsSIP . UA . prototype . unregister = function ( options ) {
8787 if ( this . status === JsSIP . C . UA_STATUS_READY ) {
8888 this . configuration . register = false ;
89- this . registrator . unregister ( all , extraHeaders ) ;
89+ this . registrator . unregister ( options ) ;
9090 } else {
9191 throw new JsSIP . Exceptions . NotReadyError ( ) ;
9292 }
@@ -130,18 +130,11 @@ JsSIP.UA.prototype.isConnected = function() {
130130 * @throws {JsSIP.Exceptions.InvalidTargetError } If the calling target is invalid.
131131 *
132132 */
133- JsSIP . UA . prototype . call = function ( target , useAudio , useVideo , eventHandlers , videoViews ) {
134- var session , options ;
135-
136- // Call Options
137- options = {
138- views : videoViews ,
139- mediaType : { audio : useAudio , video : useVideo } ,
140- eventHandlers : eventHandlers
141- } ;
133+ JsSIP . UA . prototype . call = function ( target , views , options ) {
134+ var session ;
142135
143136 session = new JsSIP . Session ( this ) ;
144- session . connect ( target , options ) ;
137+ session . connect ( target , views , options ) ;
145138} ;
146139
147140/**
@@ -155,16 +148,11 @@ JsSIP.UA.prototype.call = function(target, useAudio, useVideo, eventHandlers, vi
155148 * @throws {JsSIP.Exceptions.InvalidTargetError } If the calling target is invalid.
156149 *
157150 */
158- JsSIP . UA . prototype . sendMessage = function ( target , body , contentType , eventHandlers ) {
159- var message , options ;
160-
161- // Message Options
162- options = {
163- eventHandlers : eventHandlers
164- } ;
151+ JsSIP . UA . prototype . sendMessage = function ( target , body , options ) {
152+ var message ;
165153
166154 message = new JsSIP . Message ( this ) ;
167- message . send ( target , body , contentType , options ) ;
155+ message . send ( target , body , options ) ;
168156} ;
169157
170158/**
0 commit comments