java.lang.Objectwebphone.SIPNotification
webphone.SIPNotification.AI
public static class SIPNotification.AI
Notifications from AI integration.
Triggered by: AI connection state change
Event: SIPNotificationListener.onAI
Fields: AI,line,callid,status
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
static int |
STATUS_CONNECTED
websocket connected |
static int |
STATUS_CONNECTING
websocket connecting |
static int |
STATUS_DISCONNECTED
stopped |
static int |
STATUS_ERROR
error |
static int |
STATUS_INIT
ctor - startup |
static int |
STATUS_NOTSET
not set yet. |
static int |
STATUS_RECEIVED
first audio or text received |
static int |
STATUS_SENDRECV
first audio or text send and received |
static int |
STATUS_SENT
first audio or text sent |
static int |
STATUS_SETUP
setup cmd sent |
static int |
STATUS_TRANSFER
call transfer |
static int |
STATUS_UNKNOWN
unknown. |
| Method Summary | |
|---|---|
java.lang.String |
getCallID()
SIP Call-ID |
int |
getLine()
endpoint line |
java.lang.String |
getPeer()
peer username or phone number |
int |
getStatAudioRec()
statistics: received audio packets from AI |
int |
getStatAudioSent()
statistics: sent audio packets to AI |
int |
getStatTxtRec()
statistics: received text messages from AI |
int |
getStatTxtSent()
statistics: sent text messages to AI |
int |
getStatus()
the status as int (STATUS_... |
java.lang.String |
getStatusText()
the status as string |
java.lang.String |
isTransferred()
returns the transfer target phone number or username if the call was transferred. |
| 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 |
|---|
public static final int STATUS_NOTSET
public static final int STATUS_INIT
public static final int STATUS_CONNECTING
public static final int STATUS_CONNECTED
public static final int STATUS_SETUP
public static final int STATUS_SENT
public static final int STATUS_RECEIVED
public static final int STATUS_SENDRECV
public static final int STATUS_TRANSFER
public static final int STATUS_DISCONNECTED
public static final int STATUS_ERROR
public static final int STATUS_UNKNOWN
| Method Detail |
|---|
public int getLine()
public java.lang.String getCallID()
public java.lang.String getPeer()
public int getStatus()
public java.lang.String getStatusText()
public int getStatAudioSent()
public int getStatAudioRec()
public int getStatTxtSent()
public int getStatTxtRec()
public java.lang.String isTransferred()