You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am developing a c++ console program using c++ wrapper of liblinphone. I am able to perform a video call, however, when I terminate the ongoing call, my application crashes. From the logs I figured out the problem, which was liblinphone-fatal-Attempt to move CallSession [03501C44] to Released state while it was not previously in Error or End state, aborting
While hanging up the call, first the call is entering to Released state, I am getting above log then after a few millis call is entering into End state.
Any idea on what could be the possible reason for this.
Following is the code I used to perform video call and to terminate the call, I am following linphone-desktop repository and Csharp turtorials for this code::
void LinphoneManager::Call(string sipAddress) {
shared_ptr<Address> address = storedCore->interpretUrl(sipAddress);
shared_ptr<linphone::CallParams> params = storedCore->createCallParams(nullptr);
params->enableVideo(true);
params->setProxyConfig(storedCore->getDefaultProxyConfig());
currentCall = storedCore->inviteAddressWithParams(address, params); // Current call declared as class members ( shared_ptr<Call> currentCall ;)
currentCall->enableCamera(true);
//After call is connected I am adding Dtmf listener to call
shared_ptr<DtmfListener> DTMF = make_shared<DtmfListener>(callBack);
currentCall->addListener(DTMF);
}
void LinphoneManager::callHangUp() {
managerLogger->info("Inside call hangup");
shared_ptr<linphone::Address> address = storedCore->interpretUrl(sipAddToCall);
if (!address)
managerLogger->warn("Cannot terminate Call. The address cannot be parsed : {}", sipAddToCall);
else {
std::shared_ptr<linphone::Call> call = storedCore->getCallByRemoteAddress2(address);
if (call) {
call->terminate();
}
else {
managerLogger->warn("Cannot terminate call as it doesn't exist : {}", sipAddToCall);
}
}
}
Following are the logs generated after call Hang up ::
I am developing a c++ console program using c++ wrapper of liblinphone. I am able to perform a video call, however, when I terminate the ongoing call, my application crashes. From the logs I figured out the problem, which was liblinphone-fatal-Attempt to move CallSession [03501C44] to Released state while it was not previously in Error or End state, aborting
While hanging up the call, first the call is entering to Released state, I am getting above log then after a few millis call is entering into End state.
Any idea on what could be the possible reason for this.
Following is the code I used to perform video call and to terminate the call, I am following linphone-desktop repository and Csharp turtorials for this code::
Following are the logs generated after call Hang up ::
The text was updated successfully, but these errors were encountered: