api enhancements

This commit is contained in:
Simon Morlat 2010-04-28 16:54:37 +02:00
parent b59dc8318c
commit ca8da575f2
2 changed files with 16 additions and 8 deletions

View file

@ -80,7 +80,19 @@ public interface LinphoneCore {
void addAuthInfo(LinphoneAuthInfo info);
public void invite(String uri);
/**
* Build an address according to the current proxy config. In case destination is not a sip address, the default proxy domain is automatically appended
* @param destination
* @return
* @throws If no LinphoneAddress can be built from destination
*/
public LinphoneAddress interpretUrl(String destination) throws LinphoneCoreException;
/**
* Starts a call given a destination. Internally calls interpretUrl() then invite(LinphoneAddress).
* @param uri
*/
public void invite(String destination)throws LinphoneCoreException;
public void invite(LinphoneAddress to);
@ -150,13 +162,7 @@ public interface LinphoneCore {
* @return true is mic is muted
*/
public boolean isMicMuted();
/**
* Build an address according to the current proxy config. In case destination is not a sip uri, the default proxy domain is automatically appended
* @param destination
* @return
* @throws If no LinphonrAddress can be built from destination
*/
public LinphoneAddress interpretUrl(String destination) throws LinphoneCoreException;
/**
* Initiate a dtmf signal if in call
* @param number

View file

@ -54,6 +54,8 @@ abstract public class LinphoneCoreFactory {
abstract public LinphoneAddress createLinphoneAddress(String username,String domain,String displayName);
abstract public LinphoneAddress createLinphoneAddress(String address);
abstract public LinphoneProxyConfig createProxyConfig(String identity, String proxy,String route,boolean enableRegister) throws LinphoneCoreException;
/**
* Enable verbose traces