|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mizuvoip.jvoip.SipStack
public class SipStack
This is the old documentation using notification strings (instead of SIPNotification objects)
AJVoIP SIP Stack API: https://www.mizu-voip.com/Software/SIPSDK/AndroidSIPSDK.aspx.
Lookup the documentation for a detailed description: https://www.mizu-voip.com/Portals/0/Files/AJVoIP_With_Notification_Strings.pdf
Sample project: https://www.mizu-voip.com/Portals/0/Files/AJVoIPTest_With_Notification_Strings.zip
Field Summary | |
---|---|
Common | common
Internal common object instance. |
webphone | phone
Internal phone object instance. |
Constructor Summary | |
---|---|
SipStack()
Constructor to create a new SIP stack. |
Method Summary | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
boolean | Accept(int line)
Connect incoming call. | |||||||||||||||||
boolean | AcceptStrict(int line)
Connect incoming call. | |||||||||||||||||
boolean | AddContact(java.lang.String params)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | AddLog(int level,
java.lang.String text)
Add to sip stack log. | |||||||||||||||||
boolean | AddLog(java.lang.String text)
Add to sip stack log. | |||||||||||||||||
boolean | AddToBlacklist(java.lang.String str)
Add user to blacklist | |||||||||||||||||
boolean | AddVideo(int line,
int type)
Deprecated. | |||||||||||||||||
boolean | Call(int line,
java.lang.String number)
Initiate call to a number or sip username. | |||||||||||||||||
boolean | Call(int line,
java.lang.String number,
boolean async)
Initiate call to a number or sip username. | |||||||||||||||||
boolean | CallEx(int line,
java.lang.String number,
int type)
Deprecated. | |||||||||||||||||
int | CallIDToLine(java.lang.String callid)
Get the line number for a SIP Call-ID. | |||||||||||||||||
boolean | CanBluetooth()
Query bluetooth setting. | |||||||||||||||||
boolean | CapabilityRequest(java.lang.String server,
java.lang.String username)
Request server or server capabilities with SIP OPTIONS. | |||||||||||||||||
boolean | CheckBLF(java.lang.String userlist)
To subscribe to other extensions call state, you can set the blfuserlist parameter or use the API_CheckBLF(userlist) to subscribe to other extension(s) state changes (users separated by comma). | |||||||||||||||||
boolean | CheckPresence(java.lang.String userlist)
Call this function to save softswitch resources, you should carefully select the contacts. | |||||||||||||||||
boolean | CheckVoicemail(int line)
Will (re)subscribe for voicemail notifications. | |||||||||||||||||
boolean | ClearCredentials()
Clear existing user account details. | |||||||||||||||||
void | ClearSettings()
Clear all settings (including stored settings) | |||||||||||||||||
boolean | Conf(int line,
java.lang.String number)
Add people to conference or initiate conference call. | |||||||||||||||||
boolean | ConfEx(int line,
java.lang.String number,
boolean add)
Add/remove people to/from conference. | |||||||||||||||||
boolean | CredentialsChanged(java.lang.String newserver,
java.lang.String newusername)
Deprecated. | |||||||||||||||||
boolean | DelContact(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | DelSettings(int level)
Delete settings and data. | |||||||||||||||||
boolean | Dtmf(int line,
java.lang.String dtmf)
Send DTMF message by In-Band,SIP INFO or RFC2833 method (depending on the “dtmfmode” parameter). | |||||||||||||||||
void | Exit()
Will destroy the SIP stack. | |||||||||||||||||
void | ExitEx()
Will destroy the SIP stack and also will exit the Java Virtial Machine. | |||||||||||||||||
boolean | Forward(int line,
java.lang.String peer)
Forward incoming call to peer (with 302 Moved Temporarily disconnect code) | |||||||||||||||||
void | FullStop()
Will stop the SIP stack and all services (push notifications or jobs/alarms that might have started to keep your app running as background service) | |||||||||||||||||
java.lang.String | GetAddress()
Query local address. | |||||||||||||||||
java.lang.String | GetAltWorkdir()
Query the application alternative working directory (such as folder on external SD card). | |||||||||||||||||
java.lang.String | GetAudioDevice(int dev)
Query the current audio device name. | |||||||||||||||||
java.lang.String | GetAudioDeviceList(int dev)
Query the list of available audio devices. | |||||||||||||||||
java.lang.String | GetBindir()
Query the application path (folder with the app binaries or app home folder) | |||||||||||||||||
java.lang.String | GetBlacklist()
Query the current blacklist | |||||||||||||||||
java.lang.String | GetCallerID()
Query the peer Caller ID. | |||||||||||||||||
java.lang.String | GetCallerID(int line)
Query the peer Caller ID. | |||||||||||||||||
java.lang.String | GetCallerID(int line,
int type)
Deprecated. | |||||||||||||||||
Common | GetCommonObj()
Provides access to the internal Common object instance. | |||||||||||||||||
java.lang.String | GetConfigHash()
Get a has value of the configuration. | |||||||||||||||||
java.lang.String | GetContact(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactName(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactPhone(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactPresence(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactPresenceStr(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContacts()
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactSIP(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
java.lang.String | GetContactSpeedDial(java.lang.String name)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
int | GetCurrentConnectedCallCount()
Query the number of simultaneous calls currently in progress. | |||||||||||||||||
java.lang.String | GetDeviceID()
Get device identifier. | |||||||||||||||||
java.lang.String | GetDiscReasonText(java.lang.String line)
Query the disconnect reason of the last disconnected call. | |||||||||||||||||
GUtility | GetGUtilityObj()
| |||||||||||||||||
java.lang.String | GetIncomingDisplay(int line)
Get incoming caller id (might return two lines: caller id \n caller name) | |||||||||||||||||
java.lang.String | GetLastCallDetails()
Get details about the last finished call. | |||||||||||||||||
java.lang.String | GetLastRecFileName()
Query recently recorded file. | |||||||||||||||||
java.lang.String | GetLastRecInvite()
Get last received INVITE message. | |||||||||||||||||
java.lang.String | GetLastRecSIPMessage(java.lang.String line)
Get last received SIP message. | |||||||||||||||||
int | GetLine()
Get the currently active line. | |||||||||||||||||
java.lang.String | GetLineDetails(int line)
Get details about a line. | |||||||||||||||||
int | GetLineStatus(int line)
Query the state of a line. | |||||||||||||||||
java.lang.String | GetLineStatusText(int line)
Query the state of a line. | |||||||||||||||||
java.lang.String | GetLogs()
Can be used to get the logs (which are otherwise written also to standard output and to Logcat). | |||||||||||||||||
java.lang.String | GetMAC()
Get the device MAC address if possible. | |||||||||||||||||
java.lang.String | GetNotifications()
Return the notification strings. | |||||||||||||||||
java.lang.String | GetNotificationsSync()
Return the notification strings. | |||||||||||||||||
static SipStack | GetObj()
Access the sipstack instance from static code. | |||||||||||||||||
java.lang.String | GetParameter(java.lang.String param)
Query parameter. | |||||||||||||||||
java.lang.String | GetPresenceStatus()
Query local presence state. | |||||||||||||||||
int | GetPushNotifications()
Simplified query for push notification state if push was initited befere with the SetPushNotifications API. | |||||||||||||||||
int | GetPushNotificationsEx(boolean thissessiononly)
Query the push notification state if push was initited befere with the SetPushNotifications API. | |||||||||||||||||
java.lang.String | GetRegFailReason(boolean extended)
Query the reason of the last failed registration. | |||||||||||||||||
java.lang.String | GetSIPHeader(int line,
java.lang.String hdr)
Return a sip header value received by JVoIP. | |||||||||||||||||
java.lang.String | GetSIPMessage(int line,
int dir,
int type)
Return the last received or sent SIP signaling message as raw text. | |||||||||||||||||
java.lang.String | GetStatus(int line)
Returns line state or global state if you pass -2 as line parameter | |||||||||||||||||
java.lang.String | GetStatus(int line,
int strict)
Returns line state or global state if you pass -2 as line parameter | |||||||||||||||||
int | GetStatusId(int line)
Returns line state or global state id. | |||||||||||||||||
java.lang.String | GetVersion()
Get the SIP stack version number. | |||||||||||||||||
int | GetVolume(int dev)
Get Volume level | |||||||||||||||||
static webphone | GetWebPhoneObj()
Provides access to the internal phone object instance. | |||||||||||||||||
static webphone | GetWebPhoneObj(Context contextin)
Provides access to the internal phone object instance. | |||||||||||||||||
java.lang.String | GetWorkdir()
Query the application working directory (data folder) Based on appcontext.getFilesDir().getPath() and Environment.getDataDirectory().getPath(); | |||||||||||||||||
boolean | Hangup()
Disconnect call. | |||||||||||||||||
boolean | Hangup(int line)
Disconnect current call(s). | |||||||||||||||||
boolean | Hangup(int line,
java.lang.String reason)
Disconnect current call(s). | |||||||||||||||||
boolean | HasCallInProgress()
Query of there is any call in progress (including calls in ringing or connected state). | |||||||||||||||||
boolean | HasCallInSpeaking()
Query of there is any connected call. | |||||||||||||||||
int | HiddenLine()
Query hiddel endpoint channel. | |||||||||||||||||
boolean | Hold(int line,
boolean hold)
Hold current call. | |||||||||||||||||
boolean | HoldChange(int line)
Togle hold state of the call. | |||||||||||||||||
java.lang.String | HTTPGet(java.lang.String uri)
Send a HTTP GET request. | |||||||||||||||||
boolean | HTTPKeepAlive()
Deprecated. | |||||||||||||||||
boolean | HTTPPost(java.lang.String uri,
java.lang.String data)
Send a HTTP POST request. | |||||||||||||||||
java.lang.String | HTTPReq(java.lang.String uri,
java.lang.String data)
Send a HTTP POST or GET request. | |||||||||||||||||
boolean | HTTPReqAsync(java.lang.String uri,
java.lang.String data)
Send a HTTP POST or GET request. | |||||||||||||||||
boolean | Ignore(int line)
Ignore incoming call. | |||||||||||||||||
boolean | Init(Context context_in)
Initialize the SIP stack. | |||||||||||||||||
boolean | IsBluetooth()
Check if call on bluetooth. | |||||||||||||||||
int | IsEncrypted()
Check if the connection is encrypted. | |||||||||||||||||
boolean | IsIdle()
Query idle state | |||||||||||||||||
int | IsInCall()
Query of there is any call in progress. | |||||||||||||||||
boolean | IsIncomingVideo()
Check if current incoming call is video call. | |||||||||||||||||
boolean | IsLoudspeaker()
Query if using loudspeaker | |||||||||||||||||
int | IsMuted(int line)
Return if the selected line is muted or not. | |||||||||||||||||
int | IsOnHold(int line)
Query if the selected line is on hold or not | |||||||||||||||||
boolean | IsOnline()
Query online state. | |||||||||||||||||
boolean | IsRegistered()
Get the registered state. | |||||||||||||||||
int | IsRegisteredEx()
Get the extended registered state. | |||||||||||||||||
boolean | IsSpeaking()
Query of there is any connected call. | |||||||||||||||||
java.lang.String | LineToCallID(int line)
Get the SIP Call-ID for a line number. | |||||||||||||||||
java.lang.String | LoadFile(java.lang.String filename)
Load file content from local disk. | |||||||||||||||||
boolean | LoadFileRemote(java.lang.String filename)
Load file from remote storage. | |||||||||||||||||
java.lang.String | LoadFileRemoteSync(java.lang.String filename)
Will download the specified file from remote storage synchronously (will block until done or fails). | |||||||||||||||||
boolean | Mute(int line,
boolean mute,
int what)
Mute current call. | |||||||||||||||||
boolean | MuteEx(int line,
boolean mute,
int what)
Mute current call. | |||||||||||||||||
boolean | MuteVideo(int state,
int direction,
int height)
Disable/enable video(stream) during a video call. | |||||||||||||||||
boolean | NATKeepAlive(java.lang.String server)
Rarely needed if any, because the siptack will do it automatically. | |||||||||||||||||
boolean | NeedRatingRequest()
Some servers might report call rating automatically in signaling. | |||||||||||||||||
boolean | NewUser(java.lang.String user)
On newuser, you should ask the user if wish to accept it. | |||||||||||||||||
void | NoUnregister()
Signal that no unregistration is needed. | |||||||||||||||||
boolean | NumExists()
Use this only with the Mizu Softswitch. | |||||||||||||||||
void | OnVideoRemoved(GVideo instance)
This function should not be used. | |||||||||||||||||
boolean | PeerIsMizu(int line)
Check if peer is Mizutech software. | |||||||||||||||||
boolean | PlayFile(java.lang.String filename)
Play any sound file locally. | |||||||||||||||||
boolean | PlayFile(java.lang.String filename,
boolean start)
Play any sound file locally. | |||||||||||||||||
boolean | PlaySound(int start,
int resourceid,
int loop)
Play any sound from resource file. | |||||||||||||||||
boolean | PlaySound(int start,
java.lang.String file,
boolean localfile,
boolean toremotepeer,
int line)
Play any sound file. | |||||||||||||||||
java.lang.String | Poll()
Deprecated. | |||||||||||||||||
boolean | PushContactlist(java.lang.String userlist)
User for presence. | |||||||||||||||||
boolean | RecFiles_Clear()
Delete old recorded files. | |||||||||||||||||
boolean | RecFiles_Del()
Delete local recorded files. | |||||||||||||||||
boolean | RecFiles_Upload()
Upload pending recorded files (if ftp/http URI was set) | |||||||||||||||||
boolean | Record(int record)
Deprecated. | |||||||||||||||||
boolean | Register()
Set parameters for authentication and register to the SIP server. | |||||||||||||||||
boolean | Register(java.lang.String server,
java.lang.String username,
java.lang.String password,
boolean async)
Set parameters for authentication and register to the SIP server. | |||||||||||||||||
boolean | Register(java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String authusername,
java.lang.String displayname,
boolean async)
Set parameters for authentication and register to the SIP server. | |||||||||||||||||
boolean | Registered()
Get the registered state. | |||||||||||||||||
boolean | RegisterEx(java.lang.String accounts)
You can use this function for multiple secondary accounts (up to 99) on the same or other servers. | |||||||||||||||||
boolean | Reject(int line)
Reject incoming call. | |||||||||||||||||
boolean | RejectEx(int line,
java.lang.String reasontext)
Reject incoming call. | |||||||||||||||||
boolean | RemoveVideo()
Will remove the video fragment (will also disconnect video call if any). | |||||||||||||||||
boolean | ReStart()
Will restart the SIP stack. | |||||||||||||||||
boolean | SaveFile(java.lang.String filename,
java.lang.String content)
Will save the text file to local disk in the working directory in encrypted format (use API_SaveFileRaw to save as-is) | |||||||||||||||||
boolean | SaveFileRaw(java.lang.String filename,
java.lang.String content)
Will save the text file to local disk in the working directory as is. | |||||||||||||||||
boolean | SaveFileRemote(java.lang.String filename,
java.lang.String content)
Save file to remote storage (preconfigured ftp or http server ) | |||||||||||||||||
void | SaveSettings()
Might be called before quit to make sure that the settings are saved properly (call it before Stop). | |||||||||||||||||
boolean | SendChat(int line,
java.lang.String number,
java.lang.String message)
Send a instant message. | |||||||||||||||||
boolean | SendChat(int line,
java.lang.String number,
java.lang.String group,
java.lang.String message)
Group messaging. | |||||||||||||||||
boolean | SendChatIsComposing(int line,
java.lang.String number)
Send IM typing notification. | |||||||||||||||||
boolean | SendSIP(java.lang.String msg)
Will send a custom SIP signaling message (for example OPTIONS, NOTIFY, etc). | |||||||||||||||||
boolean | SendSMS(int line,
java.lang.String number,
java.lang.String message)
Send a SMS message if softswitch has SMS delivery capabilities (Otherwise might try to deliver as IM). | |||||||||||||||||
boolean | ServerIsMizu()
Check if SIP server is Mizutech softswitch. | |||||||||||||||||
boolean | SetAudioDevice(int dev,
java.lang.String devicename)
Select an audio device. | |||||||||||||||||
boolean | SetAudioDevice(int dev,
java.lang.String devicename,
int immediate)
Select an audio device. | |||||||||||||||||
boolean | SetBlacklist(java.lang.String str)
Set whole blacklist. | |||||||||||||||||
void | SetBluetooth(boolean on)
Set audio via Bluetooth. | |||||||||||||||||
boolean | SetContact(java.lang.String name,
java.lang.String params)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContactName(java.lang.String name,
java.lang.String param)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContactPhone(java.lang.String name,
java.lang.String param)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContacts(java.lang.String contacts)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContactSIP(java.lang.String name,
java.lang.String param)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContactSpeedDial(java.lang.String name,
java.lang.String param)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetContactStatus(java.lang.String name,
java.lang.String param)
Helper function for contact manipulation in case if you wish contact management to be handled by the SIP stack. | |||||||||||||||||
boolean | SetCredentials()
Deprecated. | |||||||||||||||||
boolean | SetCredentials(java.lang.String server,
java.lang.String username,
java.lang.String password)
Set parameters for authentication. | |||||||||||||||||
boolean | SetCredentials(java.lang.String server,
java.lang.String username,
java.lang.String password,
java.lang.String authusername,
java.lang.String displayname)
Set parameters for authentication. | |||||||||||||||||
boolean | SetCredentialsMD5(java.lang.String server,
java.lang.String username,
java.lang.String md5,
java.lang.String realm)
Set parameters for authentication. | |||||||||||||||||
boolean | SetIdle(boolean idle)
You might use this API to further extend the battery life (above the usual phone power state changes). | |||||||||||||||||
boolean | SetLine(int line)
Will set the current channel. | |||||||||||||||||
boolean | SetLineEx(java.lang.String line)
Will set the current channel. | |||||||||||||||||
boolean | SetLogLevel(int level)
Set loglevel at runtime. | |||||||||||||||||
boolean | SetParameter(java.lang.String param,
boolean value)
Configure the SIP stack by passing any parameter. | |||||||||||||||||
boolean | SetParameter(java.lang.String param,
int value)
Configure the SIP stack by passing any parameter. | |||||||||||||||||
boolean | SetParameter(java.lang.String param,
java.lang.String value)
Configure the SIP stack by passing any parameter. | |||||||||||||||||
boolean | SetParameters(java.lang.String parameters)
Configure the SIP stack with a list of parameters. | |||||||||||||||||
boolean | SetPresenceStatus(java.lang.String status)
Use the API_SetPresenceStatus(statustring) function call to change the user online status. | |||||||||||||||||
boolean | SetPushNotifications(int pushnotifications,
java.lang.String clientid,
java.lang.String packagename,
java.lang.String gateway)
Call this function if you wish the SIP stack to manage push notifications, useful especially when used with the mizu server or MPUSH gateway. | |||||||||||||||||
boolean | SetSIPHeader(int line,
java.lang.String hdr)
Set a custom sip header (a line in the SIP signaling) that will be sent with all messages. | |||||||||||||||||
boolean | SetSpeakerMode(boolean loud)
Set speaker mode, | |||||||||||||||||
boolean | SetSSID(java.lang.String ssidval)
Should not be used. | |||||||||||||||||
boolean | SetVideoDevice(java.lang.String devicename)
Select video device. | |||||||||||||||||
boolean | SetVideoDisplaySize(int type,
int width,
int height)
Use this function to control the video display size (both for remote and local video). | |||||||||||||||||
boolean | SetVolume(int dev,
int volume)
Set volume for the selected device. | |||||||||||||||||
boolean | SetVolumeIn(int val)
Deprecated. | |||||||||||||||||
boolean | SetVolumeOut(int val)
Deprecated. | |||||||||||||||||
int | ShouldReset()
Check if the sipstack should be restarted. | |||||||||||||||||
boolean | ShouldResetBeforeCall()
This function might be called before calls and you should quickly restart the sipstack if returns true (the continue to make the call). | |||||||||||||||||
boolean | Start()
Will start the SIP engine (starting the internal main thread). | |||||||||||||||||
boolean | StartRing(int line)
Will start local ringtone. | |||||||||||||||||
boolean | StartStack()
Deprecated. | |||||||||||||||||
void | Stop()
Will stop the SIP stack. | |||||||||||||||||
void | Stop(boolean fast)
Will restart the SIP stack. | |||||||||||||||||
boolean | StopRing(int line)
Will stop pending ring tone. | |||||||||||||||||
boolean | StreamSoundBuff(int start,
int line,
byte[] buff,
int len)
Audio streaming from buffer. | |||||||||||||||||
boolean | StreamSoundStream(int start,
int line,
java.io.InputStream inputstream)
Audio streaming from InputStream. | |||||||||||||||||
boolean | Test()
Test API availability. | |||||||||||||||||
java.lang.String | TestEcho(java.lang.String echo)
Test API availability. | |||||||||||||||||
boolean | Transfer(int line,
java.lang.String number)
Transfer current call to peer which is usually a phone number or a SIP username. | |||||||||||||||||
boolean | Unregister()
Will stop all endpoints (hangup current calls if any and unregister) | |||||||||||||||||
boolean | Unsubscribe()
You might use the API_UnSubscribe() API to unsubscribe all endpoints (this includes presence, voicemail and BLF subscribes). | |||||||||||||||||
java.lang.String | VAD()
Query for voice activity statistics. | |||||||||||||||||
boolean | VideoCall(java.lang.String destination,
int fragmentResId,
FragmentActivity fragmentinstance)
phonepublic webphone phone
commonpublic Common common
SipStackpublic SipStack()
Initpublic boolean Init(Context context_in)
Startpublic boolean Start()
StartStackpublic boolean StartStack()
GetCommonObjpublic Common GetCommonObj()
GetObjpublic static SipStack GetObj()
GetWebPhoneObjpublic static webphone GetWebPhoneObj()
GetWebPhoneObjpublic static webphone GetWebPhoneObj(Context contextin)
ReStartpublic boolean ReStart()
FullStoppublic void FullStop()
Stoppublic void Stop()
Stoppublic void Stop(boolean fast)
Exitpublic void Exit()
ExitExpublic void ExitEx()
WaitForpublic void WaitFor()
SaveSettingspublic void SaveSettings()
ClearSettingspublic void ClearSettings()
GetVersionpublic java.lang.String GetVersion()
GetStatuspublic java.lang.String GetStatus(int line)
GetStatusIdpublic int GetStatusId(int line)
GetStatuspublic java.lang.String GetStatus(int line, int strict)
VoiceRecordpublic boolean VoiceRecord(int startstop, int now, java.lang.String filename)
SetCredentialsMD5public boolean SetCredentialsMD5(java.lang.String server, java.lang.String username, java.lang.String md5, java.lang.String realm)
SetCredentialspublic boolean SetCredentials(java.lang.String server, java.lang.String username, java.lang.String password)
SetCredentialspublic boolean SetCredentials(java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String authusername, java.lang.String displayname)
SetCredentialspublic boolean SetCredentials()
RegisterExpublic boolean RegisterEx(java.lang.String accounts)
Registerpublic boolean Register(java.lang.String server, java.lang.String username, java.lang.String password, boolean async)
Registerpublic boolean Register(java.lang.String server, java.lang.String username, java.lang.String password, java.lang.String authusername, java.lang.String displayname, boolean async)
Registerpublic boolean Register()
Unregisterpublic boolean Unregister()
HTTPKeepAlivepublic boolean HTTPKeepAlive()
StopRingpublic boolean StopRing(int line)
StartRingpublic boolean StartRing(int line)
NATKeepAlivepublic boolean NATKeepAlive(java.lang.String server)
CapabilityRequestpublic boolean CapabilityRequest(java.lang.String server, java.lang.String username)
LineToCallIDpublic java.lang.String LineToCallID(int line)
CallIDToLinepublic int CallIDToLine(java.lang.String callid)
SetLinepublic boolean SetLine(int line)
SetLineExpublic boolean SetLineEx(java.lang.String line)
GetLinepublic int GetLine()
Callpublic boolean Call(int line, java.lang.String number)
Callpublic boolean Call(int line, java.lang.String number, boolean async)
CallExpublic boolean CallEx(int line, java.lang.String number, int type)
RemoveVideopublic boolean RemoveVideo()
OnVideoRemovedpublic void OnVideoRemoved(GVideo instance)
VideoCallSetVideoDisplaySizepublic boolean SetVideoDisplaySize(int type, int width, int height)
MuteVideopublic boolean MuteVideo(int state, int direction, int height)
AddVideopublic boolean AddVideo(int line, int type)
Acceptpublic boolean Accept(int line)
AcceptStrictpublic boolean AcceptStrict(int line)
Rejectpublic boolean Reject(int line)
RejectExpublic boolean RejectEx(int line, java.lang.String reasontext)
Hanguppublic boolean Hangup()
Hanguppublic boolean Hangup(int line)
Hanguppublic boolean Hangup(int line, java.lang.String reason)
Transferpublic boolean Transfer(int line, java.lang.String number)
Confpublic boolean Conf(int line, java.lang.String number)
ConfExpublic boolean ConfEx(int line, java.lang.String number, boolean add)
Mutepublic boolean Mute(int line, boolean mute, int what)
MuteExpublic boolean MuteEx(int line, boolean mute, int what)
IsMutedpublic int IsMuted(int line)
IsOnHoldpublic int IsOnHold(int line)
Ignorepublic boolean Ignore(int line)
Forwardpublic boolean Forward(int line, java.lang.String peer)
Holdpublic boolean Hold(int line, boolean hold)
HoldChangepublic boolean HoldChange(int line)
Dtmfpublic boolean Dtmf(int line, java.lang.String dtmf)
SendChatpublic boolean SendChat(int line, java.lang.String number, java.lang.String message)
SendChatpublic boolean SendChat(int line, java.lang.String number, java.lang.String group, java.lang.String message)
SendSMSpublic boolean SendSMS(int line, java.lang.String number, java.lang.String message)
SendChatIsComposingpublic boolean SendChatIsComposing(int line, java.lang.String number)
SetVolumeInpublic boolean SetVolumeIn(int val)
SetVolumeOutpublic boolean SetVolumeOut(int val)
SetVolumepublic boolean SetVolume(int dev, int volume)
GetVolumepublic int GetVolume(int dev)
SetLogLevelpublic boolean SetLogLevel(int level)
HasCallInProgresspublic boolean HasCallInProgress()
HasCallInSpeakingpublic boolean HasCallInSpeaking()
IsInCallpublic int IsInCall()
IsSpeakingpublic boolean IsSpeaking()
GetCurrentConnectedCallCountpublic int GetCurrentConnectedCallCount()
SetIdlepublic boolean SetIdle(boolean idle)
IsIdlepublic boolean IsIdle()
IsOnlinepublic boolean IsOnline()
NeedRatingRequestpublic boolean NeedRatingRequest()
GetRegFailReasonpublic java.lang.String GetRegFailReason(boolean extended)
PeerIsMizupublic boolean PeerIsMizu(int line)
ServerIsMizupublic boolean ServerIsMizu()
GetDiscReasonTextpublic java.lang.String GetDiscReasonText(java.lang.String line)
ShouldResetpublic int ShouldReset()
ShouldResetBeforeCallpublic boolean ShouldResetBeforeCall()
CanBluetoothpublic boolean CanBluetooth()
IsBluetoothpublic boolean IsBluetooth()
PlaySoundpublic boolean PlaySound(int start, java.lang.String file, boolean localfile, boolean toremotepeer, int line)
StreamSoundStreampublic boolean StreamSoundStream(int start, int line, java.io.InputStream inputstream)
StreamSoundBuffpublic boolean StreamSoundBuff(int start, int line, byte[] buff, int len)
PlaySoundpublic boolean PlaySound(int start, int resourceid, int loop)
PlayFilepublic boolean PlayFile(java.lang.String filename)
PlayFilepublic boolean PlayFile(java.lang.String filename, boolean start)
SetBluetoothpublic void SetBluetooth(boolean on)
IsLoudspeakerpublic boolean IsLoudspeaker()
SetSpeakerModepublic boolean SetSpeakerMode(boolean loud)
GetIncomingDisplaypublic java.lang.String GetIncomingDisplay(int line)
GetLogspublic java.lang.String GetLogs()
GetNotificationspublic java.lang.String GetNotifications()
GetNotificationsSyncpublic java.lang.String GetNotificationsSync()
Pollpublic java.lang.String Poll()
GetAddresspublic java.lang.String GetAddress()
GetLastRecFileNamepublic java.lang.String GetLastRecFileName()
Testpublic boolean Test()
TestEchopublic java.lang.String TestEcho(java.lang.String echo)
SetParameterspublic boolean SetParameters(java.lang.String parameters)
SetParameterpublic boolean SetParameter(java.lang.String param, java.lang.String value)
SetParameterpublic boolean SetParameter(java.lang.String param, int value)
SetParameterpublic boolean SetParameter(java.lang.String param, boolean value)
GetParameterpublic java.lang.String GetParameter(java.lang.String param)
SetSSIDpublic boolean SetSSID(java.lang.String ssidval)
DelSettingspublic boolean DelSettings(int level)
GetConfigHashpublic java.lang.String GetConfigHash()
IsEncryptedpublic int IsEncrypted()
GetBindirpublic java.lang.String GetBindir()
GetWorkdirpublic java.lang.String GetWorkdir()
GetAltWorkdirpublic java.lang.String GetAltWorkdir()
RecFiles_Delpublic boolean RecFiles_Del()
RecFiles_Clearpublic boolean RecFiles_Clear()
RecFiles_Uploadpublic boolean RecFiles_Upload()
VADpublic java.lang.String VAD()
IsRegisteredpublic boolean IsRegistered()
Registeredpublic boolean Registered()
IsRegisteredExpublic int IsRegisteredEx()
SaveFilepublic boolean SaveFile(java.lang.String filename, java.lang.String content)
SaveFileRawpublic boolean SaveFileRaw(java.lang.String filename, java.lang.String content)
SaveFileRemotepublic boolean SaveFileRemote(java.lang.String filename, java.lang.String content)
LoadFilepublic java.lang.String LoadFile(java.lang.String filename)
LoadFileRemotepublic boolean LoadFileRemote(java.lang.String filename)
LoadFileRemoteSyncpublic java.lang.String LoadFileRemoteSync(java.lang.String filename)
HTTPGetpublic java.lang.String HTTPGet(java.lang.String uri)
HTTPPostpublic boolean HTTPPost(java.lang.String uri, java.lang.String data)
HTTPReqpublic java.lang.String HTTPReq(java.lang.String uri, java.lang.String data)
HTTPReqAsyncpublic boolean HTTPReqAsync(java.lang.String uri, java.lang.String data)
ClearCredentialspublic boolean ClearCredentials()
SendSIPpublic boolean SendSIP(java.lang.String msg)
GetSIPHeaderpublic java.lang.String GetSIPHeader(int line, java.lang.String hdr)
GetSIPMessagepublic java.lang.String GetSIPMessage(int line, int dir, int type)
SetSIPHeaderpublic boolean SetSIPHeader(int line, java.lang.String hdr)
GetLineStatuspublic int GetLineStatus(int line)
GetLineStatusTextpublic java.lang.String GetLineStatusText(int line)
GetLastCallDetailspublic java.lang.String GetLastCallDetails()
IsIncomingVideopublic boolean IsIncomingVideo()
GetLastRecInvitepublic java.lang.String GetLastRecInvite()
GetLastRecSIPMessagepublic java.lang.String GetLastRecSIPMessage(java.lang.String line)
AddLogpublic boolean AddLog(java.lang.String text)
AddLogpublic boolean AddLog(int level, java.lang.String text)
PushContactlistpublic boolean PushContactlist(java.lang.String userlist)
GetPresenceStatuspublic java.lang.String GetPresenceStatus()
SetPresenceStatuspublic boolean SetPresenceStatus(java.lang.String status)
CheckPresencepublic boolean CheckPresence(java.lang.String userlist)
CheckBLFpublic boolean CheckBLF(java.lang.String userlist)
Unsubscribepublic boolean Unsubscribe()
NewUserpublic boolean NewUser(java.lang.String user)
SetBlacklistpublic boolean SetBlacklist(java.lang.String str)
AddToBlacklistpublic boolean AddToBlacklist(java.lang.String str)
GetBlacklistpublic java.lang.String GetBlacklist()
NumExistspublic boolean NumExists()
SetContactpublic boolean SetContact(java.lang.String name, java.lang.String params)
SetContactPhonepublic boolean SetContactPhone(java.lang.String name, java.lang.String param)
SetContactSIPpublic boolean SetContactSIP(java.lang.String name, java.lang.String param)
SetContactNamepublic boolean SetContactName(java.lang.String name, java.lang.String param)
SetContactSpeedDialpublic boolean SetContactSpeedDial(java.lang.String name, java.lang.String param)
SetContactStatuspublic boolean SetContactStatus(java.lang.String name, java.lang.String param)
GetContactPhonepublic java.lang.String GetContactPhone(java.lang.String name)
GetContactSIPpublic java.lang.String GetContactSIP(java.lang.String name)
GetContactNamepublic java.lang.String GetContactName(java.lang.String name)
GetContactSpeedDialpublic java.lang.String GetContactSpeedDial(java.lang.String name)
AddContactpublic boolean AddContact(java.lang.String params)
DelContactpublic boolean DelContact(java.lang.String name)
GetContactpublic java.lang.String GetContact(java.lang.String name)
GetContactPresencepublic java.lang.String GetContactPresence(java.lang.String name)
GetContactPresenceStrpublic java.lang.String GetContactPresenceStr(java.lang.String name)
SetContactspublic boolean SetContacts(java.lang.String contacts)
GetContactspublic java.lang.String GetContacts()
CheckVoicemailpublic boolean CheckVoicemail(int line)
Recordpublic boolean Record(int record)
GetMACpublic java.lang.String GetMAC()
GetAudioDeviceListpublic java.lang.String GetAudioDeviceList(int dev)
SetAudioDevicepublic boolean SetAudioDevice(int dev, java.lang.String devicename)
SetVideoDevicepublic boolean SetVideoDevice(java.lang.String devicename)
GetAudioDevicepublic java.lang.String GetAudioDevice(int dev)
SetAudioDevicepublic boolean SetAudioDevice(int dev, java.lang.String devicename, int immediate)
GetCallerIDpublic java.lang.String GetCallerID()
GetCallerIDpublic java.lang.String GetCallerID(int line)
GetCallerIDpublic java.lang.String GetCallerID(int line, int type)
GetLineDetailspublic java.lang.String GetLineDetails(int line)
HiddenLinepublic int HiddenLine()
CredentialsChangedpublic boolean CredentialsChanged(java.lang.String newserver, java.lang.String newusername)
NoUnregisterpublic void NoUnregister()
GetDeviceIDpublic java.lang.String GetDeviceID()
GetPushNotificationspublic int GetPushNotifications()
GetPushNotificationsExpublic int GetPushNotificationsEx(boolean thissessiononly)
SetPushNotificationspublic boolean SetPushNotifications(int pushnotifications, java.lang.String clientid, java.lang.String packagename, java.lang.String gateway)
GetGUtilityObjpublic GUtility GetGUtilityObj()
|