public interface ISipService extends IInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
ISipService.Stub
Local-side IPC implementation stub class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllAccounts()
Add all accounts available in database and marked active to running sip stack (loaded previously using sipStart)
|
void |
adjustVolume(SipCallSession callInfo,
int direction,
int flags) |
int |
answer(int callId,
int status)
Answer a call.
|
void |
askThreadedRestart()
Restart the sip stack
|
boolean |
canRecord(int callId)
Can the call be recorded ?
|
void |
confAdjustRxLevel(int port,
float value) |
void |
confAdjustTxLevel(int port,
float value) |
long |
confGetRxTxLevel(int port)
Get Rx and Tx sound level for a given port.
|
void |
forceStopService()
Force to stop the sip service (stack + everything that goes arround stack)
|
SipCallSession |
getCallInfo(int callId) |
SipCallSession[] |
getCalls() |
MediaState |
getCurrentMediaState() |
int |
getPresence(long accountId) |
String |
getPresenceStatus(long accountId) |
SipProfileState |
getSipProfileState(int accountId)
Get registration state for a given account id
|
int |
getVersion()
Get the current API version
|
int |
hangup(int callId,
int status)
Hangup a call.
|
int |
hold(int callId) |
void |
ignoreNextOutgoingCallFor(String number)
Ignore next outgoing call request from tel handler processing
|
boolean |
isRecording(int callId)
Is the call being recorded (for at least one way) ?
|
void |
makeCall(String callee,
int accountId)
Place a call.
|
void |
makeCallWithOptions(String callee,
int accountId,
Bundle options)
Place a call.
|
void |
playWaveFile(String filePath,
int callId,
int way) |
void |
reAddAllAccounts()
remove and add all accounts available in database and marked active
|
int |
reinvite(int callId,
boolean unhold) |
void |
removeAllAccounts()
Remove all accounts from running sip stack (this does nothing in database)
|
int |
sendDtmf(int callId,
int keyCode) |
void |
sendMessage(String msg,
String toNumber,
long accountId) |
void |
setAccountRegistration(int accountId,
int renew)
Change registration for a given account/profile id (id in database)
|
void |
setBluetoothOn(boolean on) |
void |
setEchoCancellation(boolean on) |
void |
setMicrophoneMute(boolean on) |
void |
setPresence(int presence,
String statusText,
long accountId) |
void |
setSpeakerphoneOn(boolean on) |
String |
showCallInfosDialog(int callId) |
void |
sipStart()
Start the sip stack
|
void |
sipStop()
Stop the sip stack
|
int |
startLoopbackTest() |
void |
startRecording(int callId,
int way)
Start recording of a call to a file.
|
int |
stopLoopbackTest() |
void |
stopRecording(int callId)
Stop recording of a call.
|
void |
switchToAutoAnswer()
Switch next incoming request to auto answer
|
void |
updateCallOptions(int callId,
Bundle options) |
int |
xfer(int callId,
String callee) |
int |
xferReplace(int callId,
int otherCallId,
int options) |
void |
zrtpSASRevoke(int callId)
Revoke a ZRTP SAS
|
void |
zrtpSASVerified(int callId) |
asBinderint getVersion()
throws RemoteException
RemoteExceptionvoid sipStart()
throws RemoteException
RemoteExceptionvoid sipStop()
throws RemoteException
RemoteExceptionvoid forceStopService()
throws RemoteException
RemoteExceptionvoid askThreadedRestart()
throws RemoteException
RemoteExceptionvoid addAllAccounts()
throws RemoteException
RemoteExceptionvoid removeAllAccounts()
throws RemoteException
RemoteExceptionvoid reAddAllAccounts()
throws RemoteException
RemoteExceptionvoid setAccountRegistration(int accountId,
int renew)
throws RemoteException
accountId - the account for which we'd like to change the registration staterenew - 0 if we don't want to unregister, 1 to renew registrationRemoteExceptionSipProfileState getSipProfileState(int accountId) throws RemoteException
accountId - the account/profile id for which we'd like to get the info (in database)RemoteExceptionvoid switchToAutoAnswer()
throws RemoteException
RemoteExceptionvoid ignoreNextOutgoingCallFor(String number) throws RemoteException
RemoteExceptionvoid makeCall(String callee, int accountId) throws RemoteException
callee - The sip uri to call.
It can also be a simple number, in which case the app will autocomplete.
If you add the scheme, take care to fill completely else it could be considered as a call
to a sip IP/domainaccountId - The id of the account to use for this call.RemoteExceptionvoid makeCallWithOptions(String callee, int accountId, Bundle options) throws RemoteException
callee - The sip uri to call.
It can also be a simple number, in which case the app will autocomplete.
If you add the scheme, take care to fill completely else it could be considered as a call
to a sip IP/domainaccountId - The id of the account to use for this call.options - The options you'd like to apply for this calls SipCallSession.OPT_CALL_VIDEO, SipCallSession.OPT_CALL_EXTRA_HEADERSRemoteExceptionint answer(int callId,
int status)
throws RemoteException
callId - The id of the call to answer.status - The sip status code you'd like to answer with. 200 to take the call. 400 <= status < 500 if refusing.RemoteExceptionint hangup(int callId,
int status)
throws RemoteException
callId - The id of the call to hangup.status - The sip status code you'd like to hangup with.RemoteExceptionint sendDtmf(int callId,
int keyCode)
throws RemoteException
RemoteExceptionint hold(int callId)
throws RemoteException
RemoteExceptionint reinvite(int callId,
boolean unhold)
throws RemoteException
RemoteExceptionint xfer(int callId,
String callee)
throws RemoteException
RemoteExceptionint xferReplace(int callId,
int otherCallId,
int options)
throws RemoteException
RemoteExceptionSipCallSession getCallInfo(int callId) throws RemoteException
RemoteExceptionSipCallSession[] getCalls() throws RemoteException
RemoteExceptionString showCallInfosDialog(int callId) throws RemoteException
RemoteExceptionvoid setMicrophoneMute(boolean on)
throws RemoteException
RemoteExceptionvoid setSpeakerphoneOn(boolean on)
throws RemoteException
RemoteExceptionvoid setBluetoothOn(boolean on)
throws RemoteException
RemoteExceptionvoid confAdjustTxLevel(int port,
float value)
throws RemoteException
RemoteExceptionvoid confAdjustRxLevel(int port,
float value)
throws RemoteException
RemoteExceptionlong confGetRxTxLevel(int port)
throws RemoteException
port - Port id we'd like to have the levelRemoteExceptionvoid setEchoCancellation(boolean on)
throws RemoteException
RemoteExceptionvoid adjustVolume(SipCallSession callInfo, int direction, int flags) throws RemoteException
RemoteExceptionMediaState getCurrentMediaState() throws RemoteException
RemoteExceptionint startLoopbackTest()
throws RemoteException
RemoteExceptionint stopLoopbackTest()
throws RemoteException
RemoteExceptionvoid startRecording(int callId,
int way)
throws RemoteException
callId - the call id to start recording of.way - the way the recording takes
SipManager.BITMASK_IN => record remote party (what goes out speaker/earpiece)
SipManager.BITMASK_OUT => record self (what comes from micro),
If 0 will record all ways.RemoteExceptionvoid stopRecording(int callId)
throws RemoteException
callId - the call id to stop recording (of all recording ways)RemoteExceptionboolean isRecording(int callId)
throws RemoteException
callId - the call id to get recording status of.RemoteExceptionboolean canRecord(int callId)
throws RemoteException
callId - the call id to get record capability of.RemoteExceptionvoid playWaveFile(String filePath, int callId, int way) throws RemoteException
filePath - filePath the file to play in streamcallId - the call to play toway - the way the file should be played
SipManager.BITMASK_IN => send to user (speaker/earpiece)
SipManager.BITMASK_OUT => send to remote party (micro),
example : way = 3 : will play sound both waysRemoteExceptionvoid sendMessage(String msg, String toNumber, long accountId) throws RemoteException
RemoteExceptionvoid setPresence(int presence,
String statusText,
long accountId)
throws RemoteException
RemoteExceptionint getPresence(long accountId)
throws RemoteException
RemoteExceptionString getPresenceStatus(long accountId) throws RemoteException
RemoteExceptionvoid zrtpSASVerified(int callId)
throws RemoteException
RemoteExceptionvoid updateCallOptions(int callId,
Bundle options)
throws RemoteException
RemoteExceptionvoid zrtpSASRevoke(int callId)
throws RemoteException
RemoteException