Crash in recording call, when pjmedia_conf_connect_port executed SIGABRT in pjsip
if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE) {
userCall.hasConnected = true
pjsua_conf_connect(ci.conf_slot, 0)
pjsua_conf_connect(0, ci.conf_slot)
if recorderPortId != PJSUA_INVALID_ID.rawValue {
pjsua_conf_connect(ci.conf_slot, recorderPortId)
}
}
We should be connecting the conf port after it connects the sound port. Even if you connect port after creating a recorder connect it here. You will have a clear voice recorded.