[pjsua] delete call instance

GS
Gökmen SÖZDEMİR
Fri, Jan 18, 2019 2:33 PM

Hi,

I want to delete my call instance when call is closed.

onCallState(OnCallStateParam &prm){
CallInfo ci = getInfo();
İf(ci.state == PJSIP_INVE_STATE_DISCONNECTED){
delete this;
}
}

After destroying call, follwing message appears and cannot receive calls anymore:

"Pjsua acc.c !Deleting account 0..
Pjsua acc.c .Account id 0 deleted"

So ,
my question is why account is deleting when i delete call and how to delete call instance correctly?

Thank you.

Best regards,
Gökmen

Hi, I want to delete my call instance when call is closed. onCallState(OnCallStateParam &prm){ CallInfo ci = getInfo(); İf(ci.state == PJSIP_INVE_STATE_DISCONNECTED){ delete this; } } After destroying call, follwing message appears and cannot receive calls anymore: "Pjsua acc.c !Deleting account 0.. Pjsua acc.c .Account id 0 deleted" So , my question is why account is deleting when i delete call and how to delete call instance correctly? Thank you. Best regards, Gökmen