Changeset 5170 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5099 r5170 4511 4511 * Always answer with 2xx. 4512 4512 */ 4513 pjsip_tx_data *tdata ;4513 pjsip_tx_data *tdata2; 4514 4514 const pj_str_t str_false = { "false", 5}; 4515 4515 pjsip_hdr *hdr; 4516 4516 4517 4517 status = pjsip_dlg_create_response(inv->dlg, rdata, code, NULL, 4518 &tdata );4518 &tdata2); 4519 4519 if (status != PJ_SUCCESS) { 4520 4520 pjsua_perror(THIS_FILE, "Unable to create 2xx response to REFER", … … 4525 4525 /* Add Refer-Sub header */ 4526 4526 hdr = (pjsip_hdr*) 4527 pjsip_generic_string_hdr_create(tdata ->pool, &str_refer_sub,4527 pjsip_generic_string_hdr_create(tdata2->pool, &str_refer_sub, 4528 4528 &str_false); 4529 pjsip_msg_add_hdr(tdata ->msg, hdr);4529 pjsip_msg_add_hdr(tdata2->msg, hdr); 4530 4530 4531 4531 4532 4532 /* Send answer */ 4533 4533 status = pjsip_dlg_send_response(inv->dlg, pjsip_rdata_get_tsx(rdata), 4534 tdata );4534 tdata2); 4535 4535 if (status != PJ_SUCCESS) { 4536 4536 pjsua_perror(THIS_FILE, "Unable to create 2xx response to REFER",
Note: See TracChangeset
for help on using the changeset viewer.