Ignore:
Timestamp:
Mar 24, 2007 1:00:30 PM (17 years ago)
Author:
bennylp
Message:

ICE (work in progress): implement error codes

File:
1 edited

Legend:

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

    r1080 r1101  
    236236        tsx->complete = PJ_TRUE; 
    237237        if (tsx->cb.on_complete) { 
    238             tsx->cb.on_complete(tsx, PJNATH_ESTUNNOTRESPOND, NULL); 
     238            tsx->cb.on_complete(tsx, PJNATH_ESTUNTIMEDOUT, NULL); 
    239239        } 
    240240        return; 
     
    269269        PJ_LOG(4,(tsx->obj_name,  
    270270                  "STUN rx_msg() error: not response message")); 
    271         return PJNATH_ESTUNNOTRESPONSE; 
     271        return PJNATH_EINSTUNMSGTYPE; 
    272272    } 
    273273 
     
    301301        status = PJ_SUCCESS; 
    302302    } else { 
    303         status = PJNATH_ESTUNTSXFAILED; 
     303        status = PJ_STATUS_FROM_STUN_CODE(err_attr->err_class * 100 +  
     304                                          err_attr->number); 
    304305    } 
    305306 
Note: See TracChangeset for help on using the changeset viewer.