Ignore:
Timestamp:
Apr 3, 2007 6:01:27 PM (17 years ago)
Author:
bennylp
Message:

Fixed misc bugs with ICE: (1) moved STUN session from candidate to component since it causes STUN response to wrong session, and (2) keep-alive transaction timed-out when ICE is active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/include/pjnath/ice_session.h

    r1129 r1140  
    120120     */ 
    121121    pj_ice_sess_check   *valid_check; 
     122 
     123    /** 
     124     * The STUN session to be used to send and receive STUN messages for this 
     125     * component. 
     126     */ 
     127    pj_stun_session     *stun_sess; 
    122128 
    123129} pj_ice_sess_comp; 
     
    188194    pj_sockaddr          rel_addr; 
    189195 
    190     /** 
    191      * The STUN session to be used to send and receive STUN messages for this 
    192      * candidate. 
    193      */ 
    194     pj_stun_session     *stun_sess; 
    195  
    196196} pj_ice_sess_cand; 
    197197 
     
    367367     * @param ice           The ICE session. 
    368368     * @param comp_id       ICE component ID. 
    369      * @param cand_id       ICE candidate ID. 
    370369     * @param pkt           The STUN packet. 
    371370     * @param size          The size of the packet. 
     
    374373     */ 
    375374    pj_status_t (*on_tx_pkt)(pj_ice_sess *ice, unsigned comp_id,  
    376                              unsigned cand_id, 
    377375                             const void *pkt, pj_size_t size, 
    378376                             const pj_sockaddr_t *dst_addr, 
     
    696694 * @param ice           The ICE session. 
    697695 * @param comp_id       Component ID. 
    698  * @param cand_id       Candidate ID. 
    699696 * @param pkt           Incoming packet. 
    700697 * @param pkt_size      Size of incoming packet. 
     
    706703PJ_DECL(pj_status_t) pj_ice_sess_on_rx_pkt(pj_ice_sess *ice, 
    707704                                           unsigned comp_id, 
    708                                            unsigned cand_id, 
    709705                                           void *pkt, 
    710706                                           pj_size_t pkt_size, 
Note: See TracChangeset for help on using the changeset viewer.