Comments (2)
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.
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)
- Unable to find linphone.dll HOT 2
- using a different Microphone or Audio steam HOT 2
- Audio issue, probably NAT related HOT 1
- Need detailed log from inside Linphone HOT 1
- Parameters to provide STUN/TURN server HOT 1
- Can't record the call HOT 2
- Success create call but no sound when it picked up. HOT 10
- Audio disappears if Process is killed
- Read Custom Headers HOT 2
- Unable to send and receive chat message HOT 1
- System.BadImageFormatException HOT 2
- audio not working for both incoming and outgoing HOT 11
- Question about audio files
- RegisterFailed in case of IP to IP call (no proxy)
- Audio codecs, echocanceletion, keep alive query and auto registration HOT 1
- Unable to find 'liblinphone.dll' HOT 7
- Memory leak
- I can't use TransferCall() and there's some way to make it recieve dtmf HOT 1
- Problemas con conexion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sipdotnet.