際際滷

際際滷Share a Scribd company logo
Start working on Android Linphone
Let's start to customize....
Call button(CallButton.java)
lTo start outbound calling on a specifiec address, use:-
LinphoneManager.getInstance().newOutgoingCall(AddressType address);
Or
LinphoneManager.getInstance().newOutgoingCall(String to, String
displayName);
Address/to can be user_name or user_name@sip.linphone.org beacuse
interpretUrl(String to) converts string to LinphonAddress(SIP Address).
InterpretUrl is a method of LinphoneCore class.
lTo terminate call, use:-
lLinphoneManager.getInstance().terminateCall();
Call button(CallButton.java)
lWhen we pressed on call button:-
If address is empty: take last user name from call log and show on dialer
screen if call log is not empty.
If address is wrong: terminate call and show wrong address as toast message.
Else: start calling(If no incoming call on pending state).
LinphonePreferences.java
lThis file has all details of registered user. For example:-
User name, id, password, domain, proxy, transport, expire, display name, etc.
lSet user details or delete details methods are available and
easily recognized by name.
lTo create object of this class, use:-
lLinphonePreferences mPrefs = LinphonePreferences.instance();
lTo get default user index, use:-
lint n=mPrefs.getDefaultAccountIndex();
lAll methods are example of getter and setter.

More Related Content

Android Linphone by www.coders-hub.com

  • 1. Start working on Android Linphone Let's start to customize....
  • 2. Call button(CallButton.java) lTo start outbound calling on a specifiec address, use:- LinphoneManager.getInstance().newOutgoingCall(AddressType address); Or LinphoneManager.getInstance().newOutgoingCall(String to, String displayName); Address/to can be user_name or user_name@sip.linphone.org beacuse interpretUrl(String to) converts string to LinphonAddress(SIP Address). InterpretUrl is a method of LinphoneCore class. lTo terminate call, use:- lLinphoneManager.getInstance().terminateCall();
  • 3. Call button(CallButton.java) lWhen we pressed on call button:- If address is empty: take last user name from call log and show on dialer screen if call log is not empty. If address is wrong: terminate call and show wrong address as toast message. Else: start calling(If no incoming call on pending state).
  • 4. LinphonePreferences.java lThis file has all details of registered user. For example:- User name, id, password, domain, proxy, transport, expire, display name, etc. lSet user details or delete details methods are available and easily recognized by name. lTo create object of this class, use:- lLinphonePreferences mPrefs = LinphonePreferences.instance(); lTo get default user index, use:- lint n=mPrefs.getDefaultAccountIndex(); lAll methods are example of getter and setter.