public static class SIPNotification.CDR extends 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| Modifier and Type | Field and Description |
|---|---|
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
|
line, 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_string, notification_type, NOTIFICATION_USSD, NOTIFICATION_VAD, NOTIFICATION_VIDEO, NOTIFICATION_VREC| Modifier and Type | Method and Description |
|---|---|
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)
|
void |
Parse(java.lang.String str,
java.lang.String[] params) |
getNotificationType, getNotificationTypeText, toStringpublic static final int DIRECTION_UNKNOWN
public static final int DIRECTION_OUT
public static final int DIRECTION_IN
public static final int DISCBY_NOTSET
public static final int DISCBY_LOCAL
public static final int DISCBY_REMOTE
public static final int DISCBY_TIMEOUT
public static final int DISCBY_UNKNOWN
public int getLine()
public java.lang.String getPeer()
public java.lang.String getCaller()
public java.lang.String getCalled()
public java.lang.String getPeerUsername()
public java.lang.String getPeerDisplayname()
public java.lang.String getPeerAddress()
public long getConnectTime()
public long getDuration()
public int getEndpointType()
public int getDiscParty()
public java.lang.String getDiscReason()
public int getReasonCode()
public java.lang.String getCallID()
public java.lang.String getDiscPartyText()
public java.lang.String getEndpointTypeText()
public void Parse(java.lang.String str,
java.lang.String[] params)