Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.5 KiB

  1. /*---------------------------------------------------
  2. Copyright (c) 1998, Microsoft Corporation
  3. File: timerval.h
  4. Purpose:
  5. Contains H.323 related timer values. Timer values are only
  6. used to clean up state in case of client error and are not
  7. aggressive.
  8. History:
  9. 1. created as cb931pdu.h for q931 consts (rajeevb, 19-Jun-1998)
  10. 2. now contains all timer values for q931 and h245 (rajeevb, 19-Jun-1998)
  11. ---------------------------------------------------*/
  12. #ifndef __CB_TIMER_H__
  13. #define __CB_TIMER_H__
  14. // timers defined below are in seconds and indicate
  15. // the number of seconds to wait before attempting to
  16. // cleanup
  17. // these are only loosely based on the H.323 specs in that
  18. // they are only used to clean-up state and give a long leash
  19. // to callee's in responding to messages (more than the spec)
  20. #ifndef DBG
  21. // we wait for the callee to respond
  22. // to a SETUP PDU, we wait for a
  23. // CALL PROCEEDING, ALERTING, CONNECT or RELEASE COMPLETE PDU
  24. // the H.225 spec suggests that the caller wait for 4s
  25. const DWORD Q931_POST_SETUP_TIMER_VALUE = 60000; // 1min
  26. // we wait for the callee to respond
  27. // to a CALL PROCEEDING PDU, we wait for an
  28. // ALERTING, CONNECT or RELEASE COMPLETE PDU
  29. // the H.225 spec doesn't define the time to wait for this
  30. const DWORD Q931_POST_CALL_PROC_TIMER_VALUE = 600000; // 10mins
  31. // we wait for the callee to respond
  32. // to an ALERTING PDU, we wait for a
  33. // CONNECT or RELEASE COMPLETE PDU
  34. // the H.225 spec suggests 180s (3mins) of wait for this
  35. const DWORD Q931_POST_ALERTING_TIMER_VALUE = 600000; // 10mins
  36. // we wait for the callee to respond
  37. // to an OPEN LOGICAL CHANNEL PDU, we wait for a
  38. // OPEN LOGICAL CHANNEL ACK/REJECT PDU from the callee
  39. // the caller may send a CLOSE LOGICAL CHANNEL PDU in the meantime
  40. // which would cause this to be reset
  41. // I (rajeevb) couldn't find H.245 spec suggestion for this
  42. const DWORD LC_POST_OPEN_TIMER_VALUE = 600000; // 10mins
  43. // we wait for the callee to respond
  44. // to an CLOSE LOGICAL CHANNEL PDU, we wait for a
  45. // CLOSE LOGICAL CHANNEL ACK PDU from the callee
  46. // I (rajeevb) couldn't find H.245 spec suggestion for this
  47. const DWORD LC_POST_CLOSE_TIMER_VALUE = 600000; // 10mins
  48. #else // DBG
  49. // Feel free to play around with the Timer values here
  50. const DWORD Q931_POST_SETUP_TIMER_VALUE = 60000; // 1min
  51. const DWORD Q931_POST_CALL_PROC_TIMER_VALUE = 60000; //600000; // 10mins
  52. const DWORD Q931_POST_ALERTING_TIMER_VALUE = 60001; //600001; // 10mins
  53. const DWORD LC_POST_OPEN_TIMER_VALUE = 600000; // 10mins
  54. const DWORD LC_POST_CLOSE_TIMER_VALUE = 600001; // 10mins
  55. #endif // DBG
  56. #endif // __CB_TIMER_H__