Changeset 5170 for pjproject/trunk/pjsip-apps/src/samples/stateful_proxy.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/stateful_proxy.c
r4420 r5170 248 248 /* This is CANCEL request */ 249 249 pjsip_transaction *invite_uas; 250 struct uas_data *uas_data ;250 struct uas_data *uas_data2; 251 251 pj_str_t key; 252 252 … … 270 270 * we receive final response from the UAC INVITE transaction. 271 271 */ 272 uas_data = (struct uas_data*) invite_uas->mod_data[mod_tu.id];273 if (uas_data ->uac_tsx && uas_data->uac_tsx->status_code < 200) {272 uas_data2 = (struct uas_data*) invite_uas->mod_data[mod_tu.id]; 273 if (uas_data2->uac_tsx && uas_data2->uac_tsx->status_code < 200) { 274 274 pjsip_tx_data *cancel; 275 275 276 pj_grp_lock_acquire(uas_data ->uac_tsx->grp_lock);277 278 pjsip_endpt_create_cancel(global.endpt, uas_data ->uac_tsx->last_tx,276 pj_grp_lock_acquire(uas_data2->uac_tsx->grp_lock); 277 278 pjsip_endpt_create_cancel(global.endpt, uas_data2->uac_tsx->last_tx, 279 279 &cancel); 280 280 pjsip_endpt_send_request(global.endpt, cancel, -1, NULL, NULL); 281 281 282 pj_grp_lock_release(uas_data ->uac_tsx->grp_lock);282 pj_grp_lock_release(uas_data2->uac_tsx->grp_lock); 283 283 } 284 284
Note: See TracChangeset
for help on using the changeset viewer.