Changeset 563 for pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
- Timestamp:
- Jun 28, 2006 4:46:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r556 r563 1300 1300 pj_memcpy(&tsx->addr, &tsx->res_addr.addr, tsx->res_addr.addr_len); 1301 1301 tsx->addr_len = tsx->res_addr.addr_len; 1302 tsx->is_reliable = PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport); 1302 1303 } 1303 1304 … … 2131 2132 } 2132 2133 2133 /* Start timer H for transaction termination */ 2134 pjsip_endpt_schedule_timer(tsx->endpt,&tsx->timeout_timer, 2135 &timeout_timer_val); 2134 /* For INVITE, start timer H for transaction termination 2135 * regardless whether transport is reliable or not. 2136 * For non-INVITE, start timer J with the value of 64*T1 for 2137 * non-reliable transports, and zero for reliable transports. 2138 */ 2139 if (tsx->method.id == PJSIP_INVITE_METHOD) { 2140 /* Start timer H for INVITE */ 2141 pjsip_endpt_schedule_timer(tsx->endpt,&tsx->timeout_timer, 2142 &timeout_timer_val); 2143 } else if (!tsx->is_reliable) { 2144 /* Start timer J on 64*T1 seconds for non-INVITE */ 2145 pjsip_endpt_schedule_timer(tsx->endpt,&tsx->timeout_timer, 2146 &timeout_timer_val); 2147 } else { 2148 /* Start timer J on zero seconds for non-INVITE */ 2149 pj_time_val zero_time = { 0, 0 }; 2150 pjsip_endpt_schedule_timer(tsx->endpt,&tsx->timeout_timer, 2151 &zero_time); 2152 } 2136 2153 2137 2154 /* For INVITE, if unreliable transport is used, retransmission
Note: See TracChangeset
for help on using the changeset viewer.