Ignore:
Timestamp:
Apr 3, 2007 7:15:10 PM (17 years ago)
Author:
bennylp
Message:

Added ICE-CONTROLLED and ICE-CONTROLLING attribute, handle ICE 487 error, and add response source address checking

File:
1 edited

Legend:

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

    r1140 r1141  
    276276            tsx->complete = PJ_TRUE; 
    277277            if (tsx->cb.on_complete) { 
    278                 tsx->cb.on_complete(tsx, PJNATH_ESTUNTIMEDOUT, NULL); 
     278                tsx->cb.on_complete(tsx, PJNATH_ESTUNTIMEDOUT, NULL, NULL, 0); 
    279279            } 
    280280        } 
     
    289289            tsx->complete = PJ_TRUE; 
    290290            if (tsx->cb.on_complete) { 
    291                 tsx->cb.on_complete(tsx, status, NULL); 
     291                tsx->cb.on_complete(tsx, status, NULL, NULL, 0); 
    292292            } 
    293293        } 
     
    314314 */ 
    315315PJ_DEF(pj_status_t) pj_stun_client_tsx_on_rx_msg(pj_stun_client_tsx *tsx, 
    316                                                  const pj_stun_msg *msg) 
     316                                                 const pj_stun_msg *msg, 
     317                                                 const pj_sockaddr_t *src_addr, 
     318                                                 unsigned src_addr_len) 
    317319{ 
    318320    pj_stun_errcode_attr *err_attr; 
     
    364366        tsx->complete = PJ_TRUE; 
    365367        if (tsx->cb.on_complete) { 
    366             tsx->cb.on_complete(tsx, status, msg); 
    367         } 
    368     } 
    369  
    370     return PJ_SUCCESS; 
    371  
    372 } 
    373  
     368            tsx->cb.on_complete(tsx, status, msg, src_addr, src_addr_len); 
     369        } 
     370    } 
     371 
     372    return PJ_SUCCESS; 
     373 
     374} 
     375 
Note: See TracChangeset for help on using the changeset viewer.