Changeset 2058


Ignore:
Timestamp:
Jun 26, 2008 1:24:10 PM (11 years ago)
Author:
bennylp
Message:

Do no disconnect invite session if authentication fails for requests within dialog. Also clears up inv->invite_tsx if re-INVITE fails with authentication error, otherwise it will not be able to send further re-INVITEs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r2053 r2058  
    23542354        if (status != PJ_SUCCESS) { 
    23552355             
    2356             /* Does not have proper credentials.  
    2357              * End the session anyway. 
     2356            /* Somehow failed. Probably it's not a good idea to terminate 
     2357             * the session since this is just a request within dialog. And 
     2358             * even if we terminate we should send BYE. 
    23582359             */ 
     2360            /* 
    23592361            inv_set_cause(inv, PJSIP_SC_OK, NULL); 
    23602362            inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e); 
     2363            */ 
    23612364             
    23622365        } else { 
     
    25792582        pj_status_t status; 
    25802583 
     2584        if (tsx->method.id == PJSIP_INVITE_METHOD) 
     2585            inv->invite_tsx = NULL; 
     2586 
    25812587        status = pjsip_auth_clt_reinit_req( &inv->dlg->auth_sess,  
    25822588                                            e->body.tsx_state.src.rdata, 
     
    25842590     
    25852591        if (status != PJ_SUCCESS) { 
    2586             /* Does not have proper credentials. End the session. */ 
     2592            /* Somehow failed. Probably it's not a good idea to terminate 
     2593             * the session since this is just a request within dialog. And 
     2594             * even if we terminate we should send BYE. 
     2595             */ 
     2596            /* 
    25872597            inv_set_cause(inv, PJSIP_SC_OK, NULL); 
    25882598            inv_set_state(inv, PJSIP_INV_STATE_DISCONNECTED, e); 
     2599            */ 
    25892600             
    25902601        } else { 
    25912602            /* Re-send request. */ 
    2592             if (tsx->method.id == PJSIP_INVITE_METHOD) 
    2593                 inv->invite_tsx = NULL; 
    2594  
    25952603            status = pjsip_inv_send_msg(inv, tdata); 
    25962604        } 
Note: See TracChangeset for help on using the changeset viewer.