- Timestamp:
- Nov 25, 2006 2:50:25 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/config.c
r798 r831 22 22 23 23 static const char *id = "config.c"; 24 const char *PJ_VERSION = "0.5.8. 5";24 const char *PJ_VERSION = "0.5.8.9"; 25 25 26 26 PJ_DEF(void) pj_dump_config(void) -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r798 r831 1328 1328 } 1329 1329 1330 /* Dump media state upon disconnected */ 1331 if (1) { 1332 char buf[1024]; 1333 pjsua_call_dump(call_id, PJ_TRUE, buf, 1334 sizeof(buf), " "); 1335 PJ_LOG(5,(THIS_FILE, 1336 "Call %d disconnected, dumping media stats\n%s", 1337 call_id, buf)); 1338 } 1339 1330 1340 } else { 1331 1341 … … 1344 1354 } 1345 1355 1346 PJ_LOG(3,(THIS_FILE, "Call %d state changed to %s", 1347 call_id, 1348 call_info.state_text.ptr)); 1356 if (call_info.state == PJSIP_INV_STATE_EARLY) { 1357 int code; 1358 pj_str_t reason; 1359 pjsip_msg *msg; 1360 1361 /* This can only occur because of TX or RX message */ 1362 pj_assert(e->type == PJSIP_EVENT_TSX_STATE); 1363 1364 if (e->body.tsx_state.type == PJSIP_EVENT_RX_MSG) { 1365 msg = e->body.tsx_state.src.rdata->msg_info.msg; 1366 } else { 1367 msg = e->body.tsx_state.src.tdata->msg; 1368 } 1369 1370 code = msg->line.status.code; 1371 reason = msg->line.status.reason; 1372 1373 PJ_LOG(3,(THIS_FILE, "Call %d state changed to %s (%d %.*s)", 1374 call_id, call_info.state_text.ptr, 1375 code, (int)reason.slen, reason.ptr)); 1376 } else { 1377 PJ_LOG(3,(THIS_FILE, "Call %d state changed to %s", 1378 call_id, 1379 call_info.state_text.ptr)); 1380 } 1349 1381 1350 1382 if (current_call==PJSUA_INVALID_ID) -
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r797 r831 36 36 static const char *inv_state_names[] = 37 37 { 38 "NULL 39 "CALLING 40 "INCOMING 41 "EARLY 38 "NULL", 39 "CALLING", 40 "INCOMING", 41 "EARLY", 42 42 "CONNECTING", 43 43 "CONFIRMED ", -
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.