[pjsip] Hold and Unhold call pjsua2 Android

Aduílio aduiliosilva at leucotron.com.br
Tue May 27 10:25:19 EDT 2014


I'm using pjsua2 with Android build.
I can put a call on hold using:

CallOpParam prm = new CallOpParam(true);
try {
     currentCall.setHold(prm);
} catch (Exception e) {
     e.printStackTrace();
}

To unhold call I tried this, but does not work:

CallOpParam prm = new CallOpParam(true);
try {
     currentCall.reinvite(prm);
} catch (Exception e) {
     e.printStackTrace();
}

How should I call the reinvite method?

Aduilio





More information about the pjsip mailing list