Open Daniel231 opened 5 years ago
Did you ever get it back to work ?
Yepp i've successfully managed to fix the problem for all devices types, idk if its best practice but its work :D.
The problem was with the function getMedia in Call.js inside pjsua2 folder, from some reason when i used this method at first time i've always got 0/null answer but when i've put a break point before calling this method i did received a correct value from some reason its seemed like this method acting in async way.
So this the solution iv`e come with is this:
android/src/main/java/org/pjsip/pjsua2/Call.java:
public synchronized Media getMedia(long med_idx) {
Media media = null;
do {
try {
wait(100);
} catch (Exception e) {
e.printStackTrace();
}
long cPtr = pjsua2JNI.Call_getMedia(swigCPtr, this, med_idx);
media = (cPtr == 0) ? null : new Media(cPtr, false);
} while (media == null);
return media;
}
}
and that it the rest of the code is the same as i wrote above, hope that helps i'm here if there is some issues sorry for the long delay with the answer XD
Hi guys, I'm trying to implement conference call for android. Iv'e looked at this documentation https://www.pjsip.org/docs/book-latest/html/media.html#conference-call , and successfully made a conference call.
the problem is that ive changed something in the code and i cant fix it back.
any help?
my code:
PjSipService.java:
PjSipModule.java:
Endpoint.js: