Hold and Unhold call pjsua2 Android

A
Aduílio
Tue, May 27, 2014 2:25 PM

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

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
M
Ming
Wed, May 28, 2014 1:45 AM

Hi Aduilio,

Please have a look at: https://trac.pjsip.org/repos/changeset/4780 (which
is included in release 2.2.1).

Regards,
Ming

On Tue, May 27, 2014 at 10:25 PM, Aduílio aduiliosilva@leucotron.com.brwrote:

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


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Aduilio, Please have a look at: https://trac.pjsip.org/repos/changeset/4780 (which is included in release 2.2.1). Regards, Ming On Tue, May 27, 2014 at 10:25 PM, Aduílio <aduiliosilva@leucotron.com.br>wrote: > 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 > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >