Search in sources :

Example 1 with TimeVal

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();
}
Also used : TimeVal(org.pjsip.pjsua2.TimeVal) CallInfo(org.pjsip.pjsua2.CallInfo)

Aggregations

CallInfo (org.pjsip.pjsua2.CallInfo)1 TimeVal (org.pjsip.pjsua2.TimeVal)1