Changeset 3598 for pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c
- Timestamp:
- Jun 24, 2011 7:35:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c
r3574 r3598 196 196 { 197 197 pjsip_inv_state prev_state = inv->state; 198 pj_bool_t dont_notify = PJ_FALSE; 198 199 pj_status_t status; 199 200 201 /* Prevent STATE_CALLING from being reported more than once because 202 * of authentication 203 * https://trac.pjsip.org/repos/ticket/1318 204 */ 205 if (state==PJSIP_INV_STATE_CALLING && 206 (inv->cb_called & (1 << PJSIP_INV_STATE_CALLING)) != 0) 207 { 208 dont_notify = PJ_TRUE; 209 } 200 210 201 211 /* If state is confirmed, check that SDP negotiation is done, … … 225 235 inv->cause != 0); 226 236 237 /* Mark the callback as called for this state */ 238 inv->cb_called |= (1 << state); 239 227 240 /* Call on_state_changed() callback. */ 228 if (mod_inv.cb.on_state_changed && inv->notify )241 if (mod_inv.cb.on_state_changed && inv->notify && !dont_notify) 229 242 (*mod_inv.cb.on_state_changed)(inv, e); 230 243
Note: See TracChangeset
for help on using the changeset viewer.