Ignore:
Timestamp:
Jan 24, 2014 9:32:27 AM (11 years ago)
Author:
riza
Message:

Re #1722:

  • add handler for 502/503 response to refresh request.
  • add expire timer for refresher.
File:
1 edited

Legend:

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

    r4713 r4715  
    33353335        handled = PJ_TRUE; 
    33363336    } 
     3337 
     3338    /* Process 502/503 error */ 
     3339    else if ((tsx->state == PJSIP_TSX_STATE_TERMINATED) && 
     3340             (tsx->status_code == 503 || tsx->status_code == 502)) 
     3341    { 
     3342        status = pjsip_timer_handle_refresh_error(inv, e); 
     3343 
     3344        handled = PJ_TRUE; 
     3345    } 
    33373346     
    33383347    /* Get/attach invite session's transaction data */ 
     
    36073616        return PJ_TRUE; /* Handled */ 
    36083617 
    3609     } else { 
     3618    }  
     3619    /* Process 502/503 error */ 
     3620    else if ((tsx->state == PJSIP_TSX_STATE_TERMINATED) && 
     3621             (tsx->status_code == 503 || tsx->status_code == 502)) 
     3622    { 
     3623        pjsip_timer_handle_refresh_error(inv, e); 
     3624 
     3625        return PJ_TRUE; 
     3626    }     
     3627    else { 
    36103628        return PJ_FALSE; /* Unhandled */ 
    36113629    } 
Note: See TracChangeset for help on using the changeset viewer.