Changeset 5170 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_legacy.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_legacy.c
r5065 r5170 607 607 { 608 608 char buf[128]; 609 pjsua_msg_data msg_data ;609 pjsua_msg_data msg_data_; 610 610 input_result result; 611 611 pj_str_t tmp; … … 632 632 } 633 633 634 pjsua_msg_data_init(&msg_data );635 TEST_MULTIPART(&msg_data );634 pjsua_msg_data_init(&msg_data_); 635 TEST_MULTIPART(&msg_data_); 636 636 pjsua_call_make_call(current_acc, &tmp, &call_opt, NULL, 637 &msg_data , ¤t_call);637 &msg_data_, ¤t_call); 638 638 } 639 639 … … 758 758 pjsua_call_info call_info; 759 759 char buf[128]; 760 pjsua_msg_data msg_data ;760 pjsua_msg_data msg_data_; 761 761 762 762 if (current_call != -1) { … … 790 790 return; 791 791 792 pjsua_msg_data_init(&msg_data );792 pjsua_msg_data_init(&msg_data_); 793 793 794 794 if (st_code/100 == 3) { … … 799 799 pjsip_generic_string_hdr_init2(&hcontact, &hname, &hvalue); 800 800 801 pj_list_push_back(&msg_data .hdr_list, &hcontact);801 pj_list_push_back(&msg_data_.hdr_list, &hcontact); 802 802 } 803 803 … … 813 813 } 814 814 815 pjsua_call_answer2(current_call, &call_opt, st_code, NULL, &msg_data );815 pjsua_call_answer2(current_call, &call_opt, st_code, NULL, &msg_data_); 816 816 } 817 817 } … … 1080 1080 pjsua_call_info ci; 1081 1081 input_result result; 1082 pjsua_msg_data msg_data ;1082 pjsua_msg_data msg_data_; 1083 1083 1084 1084 pjsua_call_get_info(current_call, &ci); … … 1095 1095 } 1096 1096 1097 pjsua_msg_data_init(&msg_data );1097 pjsua_msg_data_init(&msg_data_); 1098 1098 if (no_refersub) { 1099 1099 /* Add Refer-Sub: false in outgoing REFER request */ 1100 1100 pjsip_generic_string_hdr_init2(&refer_sub, &STR_REFER_SUB, 1101 1101 &STR_FALSE); 1102 pj_list_push_back(&msg_data .hdr_list, &refer_sub);1102 pj_list_push_back(&msg_data_.hdr_list, &refer_sub); 1103 1103 } 1104 1104 if (result.nb_result != PJSUA_APP_NO_NB) { … … 1108 1108 pjsua_buddy_info binfo; 1109 1109 pjsua_buddy_get_info(result.nb_result-1, &binfo); 1110 pjsua_call_xfer( current_call, &binfo.uri, &msg_data );1110 pjsua_call_xfer( current_call, &binfo.uri, &msg_data_); 1111 1111 } 1112 1112 … … 1114 1114 pj_str_t tmp; 1115 1115 tmp = pj_str(result.uri_result); 1116 pjsua_call_xfer( current_call, &tmp, &msg_data );1116 pjsua_call_xfer( current_call, &tmp, &msg_data_); 1117 1117 } 1118 1118 } … … 1131 1131 pjsua_call_id ids[PJSUA_MAX_CALLS]; 1132 1132 pjsua_call_info ci; 1133 pjsua_msg_data msg_data ;1133 pjsua_msg_data msg_data_; 1134 1134 char buf[128]; 1135 1135 unsigned i, count; … … 1190 1190 } 1191 1191 1192 pjsua_msg_data_init(&msg_data );1192 pjsua_msg_data_init(&msg_data_); 1193 1193 if (no_refersub) { 1194 1194 /* Add Refer-Sub: false in outgoing REFER request */ 1195 1195 pjsip_generic_string_hdr_init2(&refer_sub, &STR_REFER_SUB, 1196 1196 &STR_FALSE); 1197 pj_list_push_back(&msg_data .hdr_list, &refer_sub);1197 pj_list_push_back(&msg_data_.hdr_list, &refer_sub); 1198 1198 } 1199 1199 1200 1200 pjsua_call_xfer_replaces(call, dst_call, 1201 1201 PJSUA_XFER_NO_REQUIRE_REPLACES, 1202 &msg_data );1202 &msg_data_); 1203 1203 } 1204 1204 } … … 1263 1263 for (i=0; i<digits.slen; ++i) { 1264 1264 char body[80]; 1265 pjsua_msg_data msg_data ;1265 pjsua_msg_data msg_data_; 1266 1266 1267 1267 pjsua_msg_data_init(&msg_data); 1268 msg_data .content_type = pj_str("application/dtmf-relay");1268 msg_data_.content_type = pj_str("application/dtmf-relay"); 1269 1269 1270 1270 pj_ansi_snprintf(body, sizeof(body), … … 1272 1272 "Duration=160", 1273 1273 buf[i]); 1274 msg_data .msg_body = pj_str(body);1274 msg_data_.msg_body = pj_str(body); 1275 1275 1276 1276 status = pjsua_call_send_request(current_call, &SIP_INFO, 1277 &msg_data);1277 &msg_data_); 1278 1278 if (status != PJ_SUCCESS) { 1279 1279 return;
Note: See TracChangeset
for help on using the changeset viewer.