Giter Site home page Giter Site logo

Comments (5)

tahirjilani avatar tahirjilani commented on May 29, 2024

@bmutinda
were you able to resolve your issue?
I am getting something similar when I accept video call from webrtc:

Linphone core [0x6f8ac338] notifying [call_stats_updated]
4794-17314/ Sending RTCP RR compound message on session [0x6f82c148].
4794-17314/ Sending RTCP RR compound message on session [0x6f82c148].
4794-17314/ Sending RTCP RR compound message on session [0x6f82c148].
4794-17314/ Sending RTCP RR compound message on session [0x6f82c148].
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] JNI ERROR (app bug): local reference table overflow (max=512)
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] local reference table dump:
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] Last 10 entries (of 512):
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 511: 0x1385b790 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 510: 0x1385b5b0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 509: 0x1385b4c0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 508: 0x1385b2e0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 507: 0x13841fb0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 506: 0x13841ce0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 505: 0x13841a60 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 504: 0x13841a10 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 503: 0x138419c0 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 502: 0x13841970 org.linphone.core.LinphoneCallStatsImpl
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] Summary:
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98] 512 of org.linphone.core.LinphoneCallStatsImpl (512 unique instances)
4794-15509/ A/art: art/runtime/indirect_reference_table.cc:98]

from liblinphone.

bmutinda avatar bmutinda commented on May 29, 2024

@tahirjilani yes I did. This is what I did.
.I removed the existing account before adding a new one -- mostly when a user updates his settings
Let me just dump the code that I used to achieve this.

// Removing account 
try{
    LinphoneAuthInfo[] infos = linphoneCore.getAuthInfosList();
    for ( LinphoneAuthInfo info: infos){
        linphoneCore.removeAuthInfo(info);
    }
    LinphoneProxyConfig[] configs = linphoneCore.getProxyConfigList();
    for (LinphoneProxyConfig config: configs ){
        linphoneCore.removeProxyConfig( config );
    }

    linphoneCore.clearAuthInfos();
    linphoneCore.clearProxyConfigs();
    linphoneCore.clearCallLogs();
}catch (Exception e){
    e.printStackTrace();
}

// Adding account 

/**
 * ....... [Ommitted codes here to pull user profile and server settings]
 */

LinphoneCore linphoneCore = getLinphoneCore();
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(
        sipProfile.getUsername(), sipProfile.getPassword(), null, sipServer.domain );
linphoneCore.addAuthInfo(authInfo);
LinphoneAddress proxyAddr = null;
try {
    proxyAddr = LinphoneCoreFactory.instance().createLinphoneAddress(sipServer.proxy);
    proxyAddr.setTransport(LinphoneAddress.TransportType.LinphoneTransportUdp);
    LinphoneProxyConfig proxycon = linphoneCore.createProxyConfig(sipProfile.getAccId(), proxyAddr.asStringUriOnly(), proxyAddr.asStringUriOnly(), true);

    proxycon.enableRegister( true ); // Activate registration
    proxycon.setIdentity(sipProfile.getAccId() );
    proxycon.setProxy(sipServer.domain);

    linphoneCore.addProxyConfig(proxycon);
    linphoneCore.setDefaultProxyConfig(proxycon);
    proxycon.done();
} catch (LinphoneCoreException e) {
    e.printStackTrace();
}

Hope it helps you.
Thanks

from liblinphone.

tahirjilani avatar tahirjilani commented on May 29, 2024

@bmutinda many thanks for the prompt reply.

I think my issue is different .it works fine if i make a call from Android to webrtc. Only issue happens if I accept a video call from webrtc. Sometime call goes fine otherwise it crashes frequently. Perhaps it generates lot of stats update calls which break the system.
i have my heads down.

thanks

from liblinphone.

bmutinda avatar bmutinda commented on May 29, 2024

@tahirjilani I haven't tried with video because I never needed it but maybe I should enable and give it a try.

from liblinphone.

Wescoeur avatar Wescoeur commented on May 29, 2024

No longer relevant today.

from liblinphone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.