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


Nested Class Summary
 
Nested classes/interfaces inherited from class webphone.SIPNotification
SIPNotification.Account, SIPNotification.AI, SIPNotification.Answer, SIPNotification.APIResult, SIPNotification.BLF, SIPNotification.Block, SIPNotification.CDR, SIPNotification.Chat, SIPNotification.ChatComposing, SIPNotification.ChatReport, SIPNotification.Credit, SIPNotification.DTMF, SIPNotification.Event, SIPNotification.Group, SIPNotification.INFO, SIPNotification.LicKey, SIPNotification.Line, SIPNotification.Log, SIPNotification.Media, SIPNotification.MWI, SIPNotification.NewContact, SIPNotification.PlayReady, SIPNotification.Popup, SIPNotification.Presence, SIPNotification.Rating, SIPNotification.Register, SIPNotification.RTPE, SIPNotification.RTPStat, SIPNotification.RTPT, SIPNotification.ServerContacts, SIPNotification.ShouldReset, SIPNotification.SIP, SIPNotification.SRS, SIPNotification.Start, SIPNotification.Status, SIPNotification.Stop, SIPNotification.USSD, SIPNotification.VAD, SIPNotification.Video, SIPNotification.Vrec
 
Field Summary
static int DIRECTION_IN
          incoming (server endpoint: incoming call when JVoIP acts as a UAS)
static int DIRECTION_OUT
          outgoing (client endpoint: the call was initiated by JVoIP and JVoIP acts as a UAC)
static int DIRECTION_UNKNOWN
          unknown
static int DISCBY_LOCAL
          local endpoint
static int DISCBY_NOTSET
          not set
static int DISCBY_REMOTE
          peer
static int DISCBY_TIMEOUT
          undefined/timeout
static int DISCBY_UNKNOWN
          other/transfer/etc
 
Fields inherited from class webphone.SIPNotification
NOTIFICATION_ACCOUNT, NOTIFICATION_AI, NOTIFICATION_ALL, NOTIFICATION_ANSWER, NOTIFICATION_APIRESULT, NOTIFICATION_BLF, NOTIFICATION_BLOCK, NOTIFICATION_CDR, NOTIFICATION_CHAT, NOTIFICATION_CHATCOMPOSING, NOTIFICATION_CHATREPORT, NOTIFICATION_CREDIT, NOTIFICATION_DTMF, NOTIFICATION_EVENT, NOTIFICATION_GROUP, NOTIFICATION_INFO, NOTIFICATION_INVALID, NOTIFICATION_LICKEY, NOTIFICATION_LINE, NOTIFICATION_LOG, NOTIFICATION_MEDIA, NOTIFICATION_MWI, NOTIFICATION_NEWUSER, NOTIFICATION_PLAYREADY, NOTIFICATION_POPUP, NOTIFICATION_PRESENCE, NOTIFICATION_RATING, NOTIFICATION_REGISTER, NOTIFICATION_RTPE, NOTIFICATION_RTPSTAT, NOTIFICATION_RTPT, NOTIFICATION_SERVERCONTACTS, NOTIFICATION_SHOULDRESET, NOTIFICATION_SIP, NOTIFICATION_SRS, NOTIFICATION_START, NOTIFICATION_STATUS, NOTIFICATION_STOP, NOTIFICATION_USSD, NOTIFICATION_VAD, NOTIFICATION_VIDEO, NOTIFICATION_VREC
 
Method Summary
 java.lang.String getCalled()
          called party username (our username in case when we are receiving the call, otherwise the remote username)
 java.lang.String getCaller()
          the caller party username (our username in case when we are initiated the call, otherwise the remote username)
 java.lang.String getCallID()
          SIP Call-ID
 long getConnectTime()
          milliseconds elapsed between call initiation and call connect
 int getDiscParty()
          the party which was initiated the disconnect (DISCBY_...
 java.lang.String getDiscPartyText()
          disconnect party as string
 java.lang.String getDiscReason()
          a text about the reason of the call disconnect (SIP disconnect code, CANCEL, BYE or some other error text)
 long getDuration()
          milliseconds elapsed between call connect and hangup (0 for not connected calls.
 int getEndpointType()
          in or out: one of the DIRECTION_ constrains
 java.lang.String getEndpointTypeText()
          direction as string
 int getLine()
          endpoint line
 java.lang.String getPeer()
          the other/remote party username, phone number or SIP URI
 java.lang.String getPeerAddress()
          the endpoint remote address (usually the VoIP server IP or domain name)
 java.lang.String getPeerDisplayname()
          the remote party displayname if any, otherwise same as getPeerUsername()
 java.lang.String getPeerUsername()
          the remote party username
 int getReasonCode()
          the SIP reason code received from server (-1 if not received; useful for STATUS_FAILED)
 
Methods inherited from class webphone.SIPNotification
getNotificationType, getNotificationTypeText, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTION_UNKNOWN

public static final int DIRECTION_UNKNOWN
unknown

See Also:
Constant Field Values

DIRECTION_OUT

public static final int DIRECTION_OUT
outgoing (client endpoint: the call was initiated by JVoIP and JVoIP acts as a UAC)

See Also:
Constant Field Values

DIRECTION_IN

public static final int DIRECTION_IN
incoming (server endpoint: incoming call when JVoIP acts as a UAS)

See Also:
Constant Field Values

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_TIMEOUT

public static final int DISCBY_TIMEOUT
undefined/timeout

See Also:
Constant Field Values

DISCBY_UNKNOWN

public static final int DISCBY_UNKNOWN
other/transfer/etc

See Also:
Constant Field Values
Method Detail

getLine

public int getLine()
endpoint line


getPeer

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


getCaller

public java.lang.String getCaller()
the caller party username (our username in case when we are initiated the call, otherwise the remote username)


getCalled

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


getPeerUsername

public java.lang.String getPeerUsername()
the remote party username


getPeerDisplayname

public java.lang.String getPeerDisplayname()
the remote party displayname if any, otherwise same as getPeerUsername()


getPeerAddress

public java.lang.String getPeerAddress()
the endpoint remote 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)


getEndpointType

public int getEndpointType()
in or out: one of the DIRECTION_ constrains


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)


getReasonCode

public int getReasonCode()
the SIP reason code received from server (-1 if not received; useful for STATUS_FAILED)


getCallID

public java.lang.String getCallID()
SIP Call-ID


getDiscPartyText

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


getEndpointTypeText

public java.lang.String getEndpointTypeText()
direction as string