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) |
asBinder
int getVersion() throws RemoteException
RemoteException
void sipStart() throws RemoteException
RemoteException
void sipStop() throws RemoteException
RemoteException
void forceStopService() throws RemoteException
RemoteException
void askThreadedRestart() throws RemoteException
RemoteException
void addAllAccounts() throws RemoteException
RemoteException
void removeAllAccounts() throws RemoteException
RemoteException
void reAddAllAccounts() throws RemoteException
RemoteException
void 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 registrationRemoteException
SipProfileState getSipProfileState(int accountId) throws RemoteException
accountId
- the account/profile id for which we'd like to get the info (in database)RemoteException
void switchToAutoAnswer() throws RemoteException
RemoteException
void ignoreNextOutgoingCallFor(String number) throws RemoteException
RemoteException
void 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.RemoteException
void 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_HEADERS
RemoteException
int 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.RemoteException
int 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.RemoteException
int sendDtmf(int callId, int keyCode) throws RemoteException
RemoteException
int hold(int callId) throws RemoteException
RemoteException
int reinvite(int callId, boolean unhold) throws RemoteException
RemoteException
int xfer(int callId, String callee) throws RemoteException
RemoteException
int xferReplace(int callId, int otherCallId, int options) throws RemoteException
RemoteException
SipCallSession getCallInfo(int callId) throws RemoteException
RemoteException
SipCallSession[] getCalls() throws RemoteException
RemoteException
String showCallInfosDialog(int callId) throws RemoteException
RemoteException
void setMicrophoneMute(boolean on) throws RemoteException
RemoteException
void setSpeakerphoneOn(boolean on) throws RemoteException
RemoteException
void setBluetoothOn(boolean on) throws RemoteException
RemoteException
void confAdjustTxLevel(int port, float value) throws RemoteException
RemoteException
void confAdjustRxLevel(int port, float value) throws RemoteException
RemoteException
long confGetRxTxLevel(int port) throws RemoteException
port
- Port id we'd like to have the levelRemoteException
void setEchoCancellation(boolean on) throws RemoteException
RemoteException
void adjustVolume(SipCallSession callInfo, int direction, int flags) throws RemoteException
RemoteException
MediaState getCurrentMediaState() throws RemoteException
RemoteException
int startLoopbackTest() throws RemoteException
RemoteException
int stopLoopbackTest() throws RemoteException
RemoteException
void 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.RemoteException
void stopRecording(int callId) throws RemoteException
callId
- the call id to stop recording (of all recording ways)RemoteException
boolean isRecording(int callId) throws RemoteException
callId
- the call id to get recording status of.RemoteException
boolean canRecord(int callId) throws RemoteException
callId
- the call id to get record capability of.RemoteException
void 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 waysRemoteException
void sendMessage(String msg, String toNumber, long accountId) throws RemoteException
RemoteException
void setPresence(int presence, String statusText, long accountId) throws RemoteException
RemoteException
int getPresence(long accountId) throws RemoteException
RemoteException
String getPresenceStatus(long accountId) throws RemoteException
RemoteException
void zrtpSASVerified(int callId) throws RemoteException
RemoteException
void updateCallOptions(int callId, Bundle options) throws RemoteException
RemoteException
void zrtpSASRevoke(int callId) throws RemoteException
RemoteException