Ignore:
Timestamp:
Mar 22, 2007 11:59:03 AM (13 years ago)
Author:
bennylp
Message:

Tested simple ICE with data

File:
1 edited

Legend:

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

    r1093 r1095  
    271271    pj_icemt *icemt = (pj_icemt*)ice->user_data; 
    272272 
    273     if (comp_id == RTP_COMP_ID) { 
     273    if (comp_id == RTP_COMP_ID && icemt->cb.on_rx_rtp) { 
    274274        (*icemt->cb.on_rx_rtp)(icemt, pkt, size, src_addr, src_addr_len); 
    275     } else if (comp_id == RTCP_COMP_ID) { 
     275    } else if (comp_id == RTCP_COMP_ID && icemt->cb.on_rx_rtcp) { 
    276276        (*icemt->cb.on_rx_rtcp)(icemt, pkt, size, src_addr, src_addr_len); 
    277     } else { 
    278         pj_assert(!"Invalid comp_id"); 
    279         return -1; 
    280     } 
    281  
    282     return PJ_SUCCESS; 
    283 } 
    284  
    285  
     277    } 
     278    return PJ_SUCCESS; 
     279} 
     280 
     281 
Note: See TracChangeset for help on using the changeset viewer.