Ignore:
Timestamp:
Feb 5, 2007 6:59:31 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #89: implement transaction timeout in REGISTER request (thanks Frank Wiersma for reporting the problem)

File:
1 edited

Legend:

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

    r908 r932  
    3939#define THIS_FILE               "sip_regc.c" 
    4040 
     41/* Outgoing transaction timeout when server sends 100 but never replies 
     42 * with final response. Value is in MILISECONDS! 
     43 */ 
     44#define REGC_TSX_TIMEOUT        33000 
     45 
     46 
    4147/** 
    4248 * SIP client registration structure. 
     
    743749    regc->has_tsx = PJ_TRUE; 
    744750    ++regc->busy; 
    745     status = pjsip_endpt_send_request(regc->endpt, tdata, -1, regc, &tsx_callback); 
     751    status = pjsip_endpt_send_request(regc->endpt, tdata, REGC_TSX_TIMEOUT, 
     752                                      regc, &tsx_callback); 
    746753    if (status!=PJ_SUCCESS) { 
    747754        PJ_LOG(4,(THIS_FILE, "Error sending request, status=%d", status)); 
Note: See TracChangeset for help on using the changeset viewer.