Ignore:
Timestamp:
Sep 30, 2007 4:50:27 PM (17 years ago)
Author:
bennylp
Message:

Ticket #385: Support for reliable provisional response (100rel, PRACK)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r1415 r1463  
    18161816 
    18171817/* 
     1818 * Manually retransmit the last messagewithout updating the transaction state. 
     1819 */ 
     1820PJ_DEF(pj_status_t) pjsip_tsx_retransmit_no_state(pjsip_transaction *tsx, 
     1821                                                  pjsip_tx_data *tdata) 
     1822{ 
     1823    struct tsx_lock_data lck; 
     1824    pj_status_t status; 
     1825 
     1826    lock_tsx(tsx, &lck); 
     1827    if (tdata == NULL) { 
     1828        tdata = tsx->last_tx; 
     1829    } 
     1830    status = tsx_send_msg(tsx, tdata); 
     1831    unlock_tsx(tsx, &lck); 
     1832 
     1833    /* Only decrement reference counter when it returns success. 
     1834     * (This is the specification from the .PDF design document). 
     1835     */ 
     1836    if (status == PJ_SUCCESS) { 
     1837        pjsip_tx_data_dec_ref(tdata); 
     1838    } 
     1839 
     1840    return status; 
     1841} 
     1842 
     1843 
     1844/* 
    18181845 * Retransmit last message sent. 
    18191846 */ 
Note: See TracChangeset for help on using the changeset viewer.