webphone
Class SIPNotification.CDR

java.lang.Object
  extended by webphone.SIPNotification
      extended by webphone.SIPNotification.CDR
Enclosing class:
SIPNotification

public static class SIPNotification.CDR
extends SIPNotification

CDR notification.
Triggered by: call disconect
Event: SIPNotificationListener.onCDR
Fields: CDR,line, peername,caller,called,peeraddress,connecttime,duration,discparty,reasontext


Field Summary
static intDISCBY_LOCAL
          local endpoint
static intDISCBY_NOTSET
          not set
static intDISCBY_REMOTE
          peer
static intDISCBY_UNKNOWN
          undefined/timeout
 
Method Summary
 java.lang.StringgetCalled()
          called party name (our username in case when we are receiving the call, otherwise the remote username, phone number or URI)
 java.lang.StringgetCaller()
          the caller party name (our username in case when we are initiated the call, otherwise the remote username, displayname, phone number or URI)
 longgetConnectTime()
          milliseconds elapsed between call initiation and call connect
 intgetDiscParty()
          the party which was initiated the disconnect (DISCBY_...
 java.lang.StringgetDiscPartyText()
          disconnect party as string
 java.lang.StringgetDiscReason()
          a text about the reason of the call disconnect (SIP disconnect code, CANCEL, BYE or some other error text)
 longgetDuration()
          milliseconds elapsed between call connect and hangup (0 for not connected calls.
 intgetLine()
          endpoint line
 java.lang.StringgetPeer()
          other party username, phone number or SIP URI
 java.lang.StringgetPeerAddress()
          ther endpoint address (usually the VoIP server IP or domain name)
 
Methods inherited from class webphone.SIPNotification
getNotificationType, toString
   

Field Detail

DISCBY_NOTSET

public static final int DISCBY_NOTSET
not set

See Also:
Constant Field Values

DISCBY_LOCAL

public static final int DISCBY_LOCAL
local endpoint

See Also:
Constant Field Values

DISCBY_REMOTE

public static final int DISCBY_REMOTE
peer

See Also:
Constant Field Values

DISCBY_UNKNOWN

public static final int DISCBY_UNKNOWN
undefined/timeout

See Also:
Constant Field Values
 
Method Detail

getLine

public int getLine()
endpoint line


getPeer

public java.lang.String getPeer()
other party username, phone number or SIP URI


getCaller

public java.lang.String getCaller()
the caller party name (our username in case when we are initiated the call, otherwise the remote username, displayname, phone number or URI)


getCalled

public java.lang.String getCalled()
called party name (our username in case when we are receiving the call, otherwise the remote username, phone number or URI)


getPeerAddress

public java.lang.String getPeerAddress()
ther endpoint address (usually the VoIP server IP or domain name)


getConnectTime

public long getConnectTime()
milliseconds elapsed between call initiation and call connect


getDuration

public long getDuration()
milliseconds elapsed between call connect and hangup (0 for not connected calls. Divide by 1000 to obtain seconds. Or round to nearest second as: (duration+500)/1000)


getDiscParty

public int getDiscParty()
the party which was initiated the disconnect (DISCBY_... constant)


getDiscReason

public java.lang.String getDiscReason()
a text about the reason of the call disconnect (SIP disconnect code, CANCEL, BYE or some other error text)


getDiscPartyText

public java.lang.String getDiscPartyText()
disconnect party as string