Changeset 4371


Ignore:
Timestamp:
Feb 26, 2013 12:38:27 PM (11 years ago)
Author:
nanang
Message:

Close #1627: invoke on_tsx_state_changed() callback from on_call_state(DISCONNECTED).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r4356 r4371  
    35043504    } 
    35053505 
     3506    /* Ticket #1627: Invoke on_call_tsx_state() when call is disconnected. */ 
     3507    if (inv->state == PJSIP_INV_STATE_DISCONNECTED && 
     3508        e->type == PJSIP_EVENT_TSX_STATE && 
     3509        call->inv && 
     3510        pjsua_var.ua_cfg.cb.on_call_tsx_state) 
     3511    { 
     3512        (*pjsua_var.ua_cfg.cb.on_call_tsx_state)(call->index, 
     3513                                                 e->body.tsx_state.tsx, e); 
     3514    } 
    35063515 
    35073516    if (pjsua_var.ua_cfg.cb.on_call_state) 
     
    44154424 
    44164425    if (call->inv == NULL) { 
    4417         /* Shouldn't happen. It happens only when we don't terminate the 
    4418          * server subscription caused by REFER after the call has been 
    4419          * transfered (and this call has been disconnected), and we 
    4420          * receive another REFER for this call. 
    4421          */ 
     4426        /* Call has been disconnected. */ 
    44224427        goto on_return; 
    44234428    } 
Note: See TracChangeset for help on using the changeset viewer.