Ignore:
Timestamp:
Mar 29, 2007 9:54:21 PM (17 years ago)
Author:
bennylp
Message:

Added ICE-CONTROLLING and ICE-CONTROLLED STUN attribute types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_transaction.c

    r1111 r1114  
    285285                pj_stun_msg_find_attr(msg, PJ_STUN_ATTR_ERROR_CODE, 0); 
    286286 
    287     if (err_attr && err_attr->err_class <= 2) { 
     287    if (err_attr && err_attr->err_code <= 200) { 
    288288        /* draft-ietf-behave-rfc3489bis-05.txt Section 8.3.2: 
    289289         * Any response between 100 and 299 MUST result in the cessation 
     
    292292        PJ_LOG(4,(tsx->obj_name,  
    293293                  "STUN rx_msg() error: received provisional %d code (%.*s)", 
    294                   err_attr->err_class * 100 + err_attr->number, 
     294                  err_attr->err_code, 
    295295                  (int)err_attr->reason.slen, 
    296296                  err_attr->reason.ptr)); 
     
    301301        status = PJ_SUCCESS; 
    302302    } else { 
    303         status = PJ_STATUS_FROM_STUN_CODE(err_attr->err_class * 100 +  
    304                                           err_attr->number); 
     303        status = PJ_STATUS_FROM_STUN_CODE(err_attr->err_code); 
    305304    } 
    306305 
Note: See TracChangeset for help on using the changeset viewer.