Changeset 831 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Nov 25, 2006 2:50:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r813 r831 91 91 call->last_text.ptr = call->last_text_buf_; 92 92 call->last_text.slen = 0; 93 call->conn_time.sec = 0; 94 call->conn_time.msec = 0; 95 call->res_time.sec = 0; 96 call->res_time.msec = 0; 93 97 } 94 98 … … 1777 1781 1778 1782 /* Calculate call duration */ 1779 if (call-> inv->state >= PJSIP_INV_STATE_CONFIRMED) {1783 if (call->conn_time.sec != 0) { 1780 1784 pj_gettimeofday(&duration); 1781 1785 PJ_TIME_VAL_SUB(duration, call->conn_time); … … 1788 1792 1789 1793 /* Calculate first response delay */ 1790 if (call-> inv->state >= PJSIP_INV_STATE_EARLY) {1794 if (call->res_time.sec != 0) { 1791 1795 res_delay = call->res_time; 1792 1796 PJ_TIME_VAL_SUB(res_delay, call->start_time); … … 1977 1981 call->inv = NULL; 1978 1982 --pjsua_var.call_cnt; 1983 1984 /* Reset call */ 1985 reset_call(call->index); 1986 1979 1987 } 1980 1988
Note: See TracChangeset
for help on using the changeset viewer.