Changeset 1878
- Timestamp:
- Mar 20, 2008 2:40:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r1814 r1878 2071 2071 pjsip_dlg_inc_lock(inv->dlg); 2072 2072 2073 /* Check again that we didn't receive incoming re-INVITE */ 2074 if (inv->invite_tsx) { 2075 pjsip_tx_data_dec_ref(tdata); 2076 pjsip_dlg_dec_lock(inv->dlg); 2077 return PJ_EINVALIDOP; 2078 } 2079 2080 /* Associate our data in outgoing invite transaction */ 2073 2081 tsx_inv_data = PJ_POOL_ZALLOC_T(inv->pool, struct tsx_inv_data); 2074 2082 tsx_inv_data->inv = inv; … … 3275 3283 tsx->role == PJSIP_ROLE_UAC) 3276 3284 { 3285 /* Must not have other pending INVITE transaction */ 3286 pj_assert(inv->invite_tsx==NULL || tsx==inv->invite_tsx); 3287 3277 3288 /* 3278 3289 * Handle outgoing re-INVITE 3279 3290 */ 3280 if (tsx->state == PJSIP_TSX_STATE_TERMINATED && 3281 tsx->status_code/100 == 2) 3291 if (tsx->state == PJSIP_TSX_STATE_CALLING) { 3292 3293 /* Save pending invite transaction */ 3294 inv->invite_tsx = tsx; 3295 3296 } else if (tsx->state == PJSIP_TSX_STATE_TERMINATED && 3297 tsx->status_code/100 == 2) 3282 3298 { 3283 3299
Note: See TracChangeset
for help on using the changeset viewer.