java.lang.Objectwebphone.SIPNotification
webphone.SIPNotification.CDR
public static class SIPNotification.CDR
CDR notification.
Triggered by: call disconect
Event: SIPNotificationListener.onCDR
Fields: CDR,line, peername,caller,called,peeraddress,connecttime,duration,discparty,reasontext
Field Summary | |
---|---|
static int | DISCBY_LOCAL
local endpoint |
static int | DISCBY_NOTSET
not set |
static int | DISCBY_REMOTE
peer |
static int | DISCBY_UNKNOWN
undefined/timeout |
Method Summary | |
---|---|
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) |
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) |
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 | getLine()
endpoint line |
java.lang.String | getPeer()
other party username, phone number or SIP URI |
java.lang.String | getPeerAddress()
ther endpoint address (usually the VoIP server IP or domain name) |
Methods inherited from class webphone.SIPNotification |
---|
getNotificationType, toString |
Field Detail |
---|
public static final int DISCBY_NOTSET
public static final int DISCBY_LOCAL
public static final int DISCBY_REMOTE
public static final int DISCBY_UNKNOWN
Method Detail |
---|
public int getLine()
public java.lang.String getPeer()
public java.lang.String getCaller()
public java.lang.String getCalled()
public java.lang.String getPeerAddress()
public long getConnectTime()
public long getDuration()
public int getDiscParty()
public java.lang.String getDiscReason()
public java.lang.String getDiscPartyText()