Changeset 2534


Ignore:
Timestamp:
Mar 23, 2009 1:09:09 PM (16 years ago)
Author:
bennylp
Message:

Ticket #719: backported from ticket #718

Location:
pjproject/branches/1.0
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0

  • pjproject/branches/1.0/pjsip/src/pjsip/sip_transaction.c

    r2394 r2534  
    13771377        tsx->addr_len = tsx->res_addr.addr_len; 
    13781378        tsx->is_reliable = PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport); 
     1379    } else { 
     1380        tsx->is_reliable =  
     1381            (tsx->res_addr.dst_host.flag & PJSIP_TRANSPORT_RELIABLE); 
    13791382    } 
    13801383 
     
    23162319                    timeout = timeout_timer_val; 
    23172320                     
    2318                 } else if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 
     2321                } else if (!tsx->is_reliable) { 
    23192322                     
    23202323                    /* For non-INVITE, start timer J at 64*T1 for unreliable 
     
    26562659        /* Start Timer D with TD/T4 timer if unreliable transport is used. */ 
    26572660        /* Note: tsx->transport may be NULL! */ 
    2658         if ((tsx->transport && PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) 
    2659             || ((tsx->transport_flag & PJSIP_TRANSPORT_RELIABLE) == 0))  
    2660         { 
     2661        if (!tsx->is_reliable) { 
    26612662            if (tsx->method.id == PJSIP_INVITE_METHOD) { 
    26622663                timeout = td_timer_val; 
     
    27232724             * zero seconds for reliable transports. 
    27242725             */ 
    2725             if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 
     2726            if (!tsx->is_reliable) { 
    27262727                timeout.sec = 0;  
    27272728                timeout.msec = 0; 
Note: See TracChangeset for help on using the changeset viewer.