Changeset 1242 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- May 2, 2007 11:29:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r1134 r1242 85 85 call->session = NULL; 86 86 call->xfer_sub = NULL; 87 call->last_code = 0;87 call->last_code = (pjsip_status_code) 0; 88 88 call->conf_slot = PJSUA_INVALID_ID; 89 89 call->last_text.ptr = call->last_text_buf_; … … 1947 1947 if (call->res_time.sec == 0) 1948 1948 pj_gettimeofday(&call->res_time); 1949 call->last_code = e->body.tsx_state.tsx->status_code; 1949 call->last_code = (pjsip_status_code) 1950 e->body.tsx_state.tsx->status_code; 1950 1951 pj_strncpy(&call->last_text, 1951 1952 &e->body.tsx_state.tsx->status_text, … … 1960 1961 pj_gettimeofday(&call->res_time); 1961 1962 if (e->body.tsx_state.tsx->status_code > call->last_code) { 1962 call->last_code = e->body.tsx_state.tsx->status_code; 1963 call->last_code = (pjsip_status_code) 1964 e->body.tsx_state.tsx->status_code; 1963 1965 pj_strncpy(&call->last_text, 1964 1966 &e->body.tsx_state.tsx->status_text, … … 1967 1969 break; 1968 1970 default: 1969 call->last_code = e->body.tsx_state.tsx->status_code; 1971 call->last_code = (pjsip_status_code) 1972 e->body.tsx_state.tsx->status_code; 1970 1973 pj_strncpy(&call->last_text, 1971 1974 &e->body.tsx_state.tsx->status_text, … … 2535 2538 2536 2539 if (code < 200) 2537 code = 200;2540 code = PJSIP_SC_OK; 2538 2541 if (code >= 300) { 2539 2542 /* Application rejects call transfer request */ … … 2776 2779 &im_data->body, 2777 2780 im_data->user_data, 2778 tsx->status_code, 2781 (pjsip_status_code) 2782 tsx->status_code, 2779 2783 &tsx->status_text); 2780 2784 }
Note: See TracChangeset
for help on using the changeset viewer.