Changeset 5170 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r5149 r5170 139 139 { 140 140 pjsua_call_id call_id = entry->id; 141 pjsua_msg_data msg_data ;141 pjsua_msg_data msg_data_; 142 142 pjsip_generic_string_hdr warn; 143 143 pj_str_t hname = pj_str("Warning"); … … 152 152 153 153 /* Add warning header */ 154 pjsua_msg_data_init(&msg_data );154 pjsua_msg_data_init(&msg_data_); 155 155 pjsip_generic_string_hdr_init2(&warn, &hname, &hvalue); 156 pj_list_push_back(&msg_data .hdr_list, &warn);156 pj_list_push_back(&msg_data_.hdr_list, &warn); 157 157 158 158 /* Call duration has been exceeded; disconnect the call */ … … 161 161 app_config.duration, call_id)); 162 162 entry->id = PJSUA_INVALID_ID; 163 pjsua_call_hangup(call_id, 200, NULL, &msg_data );163 pjsua_call_hangup(call_id, 200, NULL, &msg_data_); 164 164 } 165 165 … … 294 294 295 295 if (app_config.auto_answer > 0) { 296 pjsua_call_setting call_opt;297 298 pjsua_call_setting_default(& call_opt);299 call_opt.aud_cnt = app_config.aud_cnt;300 call_opt.vid_cnt = app_config.vid.vid_cnt;301 302 pjsua_call_answer2(call_id, & call_opt, app_config.auto_answer, NULL,296 pjsua_call_setting opt; 297 298 pjsua_call_setting_default(&opt); 299 opt.aud_cnt = app_config.aud_cnt; 300 opt.vid_cnt = app_config.vid.vid_cnt; 301 302 pjsua_call_answer2(call_id, &opt, app_config.auto_answer, NULL, 303 303 NULL); 304 304 } … … 668 668 pjsip_status_code *code, 669 669 pj_str_t *reason, 670 pjsua_msg_data *msg_data )670 pjsua_msg_data *msg_data_) 671 671 { 672 672 /* Just accept the request (the default behavior) */ … … 678 678 PJ_UNUSED_ARG(code); 679 679 PJ_UNUSED_ARG(reason); 680 PJ_UNUSED_ARG(msg_data );680 PJ_UNUSED_ARG(msg_data_); 681 681 } 682 682 … … 1413 1413 char name[80]; 1414 1414 pj_str_t label; 1415 pj_status_t status ;1415 pj_status_t status2; 1416 1416 1417 1417 pj_ansi_snprintf(name, sizeof(name), "tone-%d,%d", … … 1419 1419 app_config.tones[i].freq2); 1420 1420 label = pj_str(name); 1421 status = pjmedia_tonegen_create2(app_config.pool, &label,1422 8000, 1, 160, 16,1423 PJMEDIA_TONEGEN_LOOP, &tport);1424 if (status != PJ_SUCCESS) {1421 status2 = pjmedia_tonegen_create2(app_config.pool, &label, 1422 8000, 1, 160, 16, 1423 PJMEDIA_TONEGEN_LOOP, &tport); 1424 if (status2 != PJ_SUCCESS) { 1425 1425 pjsua_perror(THIS_FILE, "Unable to create tone generator", status); 1426 1426 goto on_error; 1427 1427 } 1428 1428 1429 status = pjsua_conf_add_port(app_config.pool, tport,1429 status2 = pjsua_conf_add_port(app_config.pool, tport, 1430 1430 &app_config.tone_slots[i]); 1431 pj_assert(status == PJ_SUCCESS);1432 1433 status = pjmedia_tonegen_play(tport, 1, &app_config.tones[i], 0);1434 pj_assert(status == PJ_SUCCESS);1431 pj_assert(status2 == PJ_SUCCESS); 1432 1433 status2 = pjmedia_tonegen_play(tport, 1, &app_config.tones[i], 0); 1434 pj_assert(status2 == PJ_SUCCESS); 1435 1435 } 1436 1436 … … 1449 1449 /* Create ringback tones */ 1450 1450 if (app_config.no_tones == PJ_FALSE) { 1451 unsigned i,samples_per_frame;1451 unsigned samples_per_frame; 1452 1452 pjmedia_tone_desc tone[RING_CNT+RINGBACK_CNT]; 1453 1453 pj_str_t name;
Note: See TracChangeset
for help on using the changeset viewer.