Results 1 to 3 of 3
  1. #1
    rostamiani is offline Member
    Join Date
    Jun 2015
    Posts
    2
    Rep Power
    0

    Question Thread: How can I create a SIP connecton using Liblinphone interface class?

    I'm new to Java and want to develop a SIP client for Android using Liblinphone library.
    There is a LinphoneAuthInfo class that accepts authentication.
    And a LinphoneCore.addAuthInfo() That adds authentication info to the core.

    **The problem is that I cannot initialize LinphoneAuthInfo and LinphoneCore classes because they are interface classes and I don't know how to use theme.**

    If they was not interface classes I would do this:

    Java Code:
    // Create Authentication object
    LinphoneAuthInfo authInfos;
    authInfos.setDomain(id);
    authInfos.setUserId(username);
    authInfos.setPassword(password);
    
    // Config Core
    LinphoneCore linCore;
    linCore.addAuthInfo(authInfos);
    And finaly, this is the Liblinphone reference page:

    LinphoneCore
    LinphoneAuthInfo

    And thanks for your help

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: Thread: How can I create a SIP connecton using Liblinphone interface class?

    Quote Originally Posted by rostamiani View Post
    **The problem is that I cannot initialize LinphoneAuthInfo and LinphoneCore classes because they are interface classes and I don't know how to use theme.**
    You seem to be tryig to run before you've learned to walk. Check out Implementing an Interface (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)

    Better still, go through the entire preliminary sections of the tutorial. A forum cannot teach basic knowledge.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    rostamiani is offline Member
    Join Date
    Jun 2015
    Posts
    2
    Rep Power
    0

    Default Re: Thread: How can I create a SIP connecton using Liblinphone interface class?

    Quote Originally Posted by DarrylBurke View Post
    You seem to be tryig to run before you've learned to walk. Check out Implementing an Interface (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)

    Better still, go through the entire preliminary sections of the tutorial. A forum cannot teach basic knowledge.

    db
    Thanks. I think I know what an interface is now.
    Is it true that I shold not use LinphoneCore itself. I should use the classes that are sing LinphoneCore. Is this right?
    All of these methonds within LinphoneCore are accessible with inherited classes.

Similar Threads

  1. Replies: 1
    Last Post: 07-08-2012, 05:23 PM
  2. Replies: 0
    Last Post: 10-31-2011, 11:55 AM
  3. Create extra GUI interface
    By africanhacker in forum New To Java
    Replies: 7
    Last Post: 03-27-2011, 10:05 AM
  4. Create interface from my code
    By Lyricid in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2009, 05:39 PM
  5. runnable interface in thread
    By ADARSH in forum New To Java
    Replies: 1
    Last Post: 11-01-2009, 08:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •