I am building an app using pjsua2 library. The sample app coming with the library is working fine. But in my app, when I try to make a call using the below code,
if (currentCall != null) {return;}
String buddy_uri = "sip:" + number + "@" + domain;
MyCall call = new MyCall(account, -1);
CallOpParam prm = new CallOpParam(true);
try {
call.makeCall(buddy_uri, prm);
} catch (Exception e) {
call.delete();
return;
}
currentCall = call;
I'm getting the exception below,
java.lang.Exception: Title: pjsua_call_make_call(acc.getId(),
&pj_dst_uri, param.p_opt, this, param.p_msg_data, &id)
Code: 420003
Description: Audio subsystem not initialized (PJMEDIA_EAUD_INIT)
Location: ../src/pjsua2/call.cpp:490
This error comes only in Marshmallow, in Kitkat device, its working fine. Can somebody throw some light into this issue?