- Timestamp:
- Feb 8, 2006 9:22:02 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.2/pjsip/src/pjsip/sip_transaction.c
r88 r151 1376 1376 1377 1377 } else if (event->type == PJSIP_EVENT_RX_MSG) { 1378 int code;1379 1378 1380 1379 /* Cancel retransmission timer A. */ … … 1540 1539 } 1541 1540 1542 /* Start timer J at 64*T1 for unreliable transport or zero for 1543 * reliable transport. 1544 */ 1545 if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 1541 /* Setup timeout timer: */ 1542 1543 if (tsx->method.id == PJSIP_INVITE_METHOD) { 1544 1545 /* Start Timer H at 64*T1 for INVITE server transaction, 1546 * regardless of transport. 1547 */ 1546 1548 timeout = timeout_timer_val; 1549 1550 } else if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 1551 1552 /* For non-INVITE, start timer J at 64*T1 for unreliable 1553 * transport. 1554 */ 1555 timeout = timeout_timer_val; 1556 1547 1557 } else { 1558 1559 /* Transaction terminates immediately for non-INVITE when 1560 * reliable transport is used. 1561 */ 1548 1562 timeout.sec = timeout.msec = 0; 1549 1563 } 1564 1565 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, 1566 &timeout); 1550 1567 1551 1568 pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, &timeout);
Note: See TracChangeset
for help on using the changeset viewer.