/**@class android.net.sip.SipAudioCall.Listener @extends java.lang.Object Listener for events relating to a SIP call, such as when a call is being recieved ("on ringing") or a call is outgoing ("on calling"). <p>Many of these events are also received by {@link android.net.sip.SipSession.Listener}.</p> */ var Listener = { /**Called when the call object is ready to make another call. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that is ready to make another call */ onReadyToCall : function( ) {}, /**Called when a request is sent out to initiate a new call. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onCalling : function( ) {}, /**Called when a new call comes in. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call @param {Object {SipProfile}} caller the SIP profile of the caller */ onRinging : function( ) {}, /**Called when a RINGING response is received for the INVITE request sent. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onRingingBack : function( ) {}, /**Called when the session is established. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onCallEstablished : function( ) {}, /**Called when the session is terminated. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onCallEnded : function( ) {}, /**Called when the peer is busy during session initialization. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onCallBusy : function( ) {}, /**Called when the call is on hold. The default implementation calls {@link #onChanged}. @param {Object {SipAudioCall}} call the call object that carries out the audio call */ onCallHeld : function( ) {}, /**Called when an error occurs. The default implementation is no op. @param {Object {SipAudioCall}} call the call object that carries out the audio call @param {Number} errorCode error code of this error @param {String} errorMessage error message @see SipErrorCode */ onError : function( ) {}, /**Called when an event occurs and the corresponding callback is not overridden. The default implementation is no op. Error events are not re-directed to this callback and are handled in {@link #onError}. */ onChanged : function( ) {}, };