use of org.pjsip.pjsua2.TimeVal in project vialer-android by VoIPGRID.
the class SipCall method getCallDuration.
public int getCallDuration() {
TimeVal timeVal = new TimeVal();
try {
CallInfo callInfo = this.getInfo();
timeVal = callInfo.getConnectDuration();
} catch (Exception e) {
e.printStackTrace();
}
return timeVal.getSec();
}