Giter VIP home page Giter VIP logo

Comments (2)

3dprogramin avatar 3dprogramin commented on June 29, 2024

Interested in the very same thing. Trying to end a call, if nobody is answering for 30 seconds but can't do that since I don't have a Call object available only when somebody answers.
Any other way to terminate a call ?
PS For me even a way to terminate all calls would help. Thanks !

from sipdotnet.

3dprogramin avatar 3dprogramin commented on June 29, 2024

UPDATE - solution
I took a look at Linphone.cs and found something interesting

public void DestroyPhone ()
		{
            if (RegistrationStateChangedEvent != null)
                RegistrationStateChangedEvent(LinphoneRegistrationState.LinphoneRegistrationProgress); // disconnecting

			linphone_core_terminate_all_calls (linphoneCore);

			SetTimeout (delegate {
                linphone_call_params_unref (callsDefaultParams);

To be more exact, this line linphone_core_terminate_all_calls (linphoneCore); which terminates all calls.

I made a fork here which has a TerminateAllCalls method inside Linphone object, so you can terminate calls that weren't answered yet (you don't have any Call object yet), but it terminates all calls.

This works for me though, hope it helps somebody else too !

from sipdotnet.

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.