I'm making an Android VoIP app using PJSUA2 library. There is one Account instance and I'm calling account.create(accountConfig) method when logging in. If I keep on giving wrong credentials, same function is called repeatedly on the same account instance. After 3 attempts, this function is giving exception.
Title: pjsua_acc_add(&pj_acc_cfg, make_default, &id) Code: 70010 Description: Too many objects of the specified type (PJ_ETOOMANY) Location: ../src/pjsua2/account.cpp:700
How can I handle this error?