VoipLibBackend

public class VoipLibBackend extends Application implements VoipLib

This class implements the most.voip.api.VoipLib interface by using the PJSip library as backend. So, you can get a most.voip.api.VoipLib instance in the following way:

VoipLib myVoip = new VoipLibBackend();

To get a most.voip.api.interfaces.ICall instance you can call the getCall() method:

ICall myCall = myVoip.getCall();

To get a most.voip.api.interfaces.IAccount instance you can call the getAccount() method:

IAccount myAccount = myVoip.getAccount();

To get a most.voip.api.interfaces.IServer instance you can call the getServer() method:

IServer mySipSever = myVoip.getServer();

See also: VoipLib

Constructors

VoipLibBackend

public VoipLibBackend()

Methods

answerCall

public boolean answerCall()

destroyLib

public boolean destroyLib()

getAccount

public IAccount getAccount()

getCall

public ICall getCall()

getServer

public IServer getServer()

getSipUriFromExtension

public String getSipUriFromExtension(String extension)

Get a sip uri in the format sip:@sip_server_ip[:sip_server_port]

Parameters:
  • extension – the extension of the sip uri
Returns:

the sip uri

hangupCall

public boolean hangupCall()

holdCall

public boolean holdCall()

initLib

public boolean initLib(Context context, HashMap<String, String> configParams, Handler notificationHandler)

makeCall

public boolean makeCall(String extension)

registerAccount

public boolean registerAccount()

unholdCall

public boolean unholdCall()

unregisterAccount

public boolean unregisterAccount()