rtp-packetization.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Overview
  2. -------
  3. Asterisk currently supports configurable RTP packetization per codec for
  4. select RTP-based channels.
  5. Channels
  6. -------
  7. These channel drivers allow RTP packetization on a user/peer/friend
  8. or global level:
  9. chan_sip
  10. chan_skinny
  11. chan_h323
  12. chan_ooh323 (Asterisk-Addons)
  13. chan_gtalk
  14. chan_jingle
  15. Configuration
  16. -------
  17. To set a desired packetization interval on a specific codec,
  18. append that inteval to the allow= statement.
  19. Example:
  20. allow=ulaw:30,alaw,g729:60
  21. No packetization is specified in the case of alaw in this example,
  22. so the default of 20ms is used.
  23. Autoframing
  24. -------
  25. In addition, chan_sip has the ability to negotiate the desired
  26. framing at call establishment.
  27. In sip.conf if autoframing=yes is set in the global section, then
  28. all calls will try to set the packetization based on the remote
  29. endpoint's preferences. This behaviour depends on the endpoints
  30. ability to present the desired packetization (ptime:) in the SDP.
  31. If the endpoint does not include a ptime attribute, the call will
  32. be established with 20ms packetization.
  33. Autoframing can be set at the global level or on a user/peer/friend
  34. basis. If it is enabled at the global level, it applies to all
  35. users/peers/friends regardless of their prefered codec packetization.
  36. Codec framing options
  37. -------
  38. The following table lists the minimum and maximum values that are
  39. valid per codec, as well as the increment value used for each.
  40. Please note that the maximum values here are only recommended
  41. maximums, and should not exceed the RTP MTU.
  42. Name Min Max Default Increment
  43. g723 30 300 30 30
  44. gsm 20 300 20 20
  45. ulaw 10 150 20 10
  46. alaw 10 150 20 10
  47. g726 10 300 20 10
  48. ADPCM 10 300 20 10
  49. SLIN 10 70 20 10
  50. lpc10 20 20 20 20
  51. g729 10 230 20 10
  52. speex 10 60 20 10
  53. ilbc 30 30 30 30
  54. g726_aal2 10 300 20 10
  55. Invalid framing options are handled based on the following rules:
  56. 1. If the specified framing is less than the codec's minimum, then
  57. the minimum value is used.
  58. 2. If the specific framing is greater than the codec's maximum, then
  59. the maximum value is used
  60. 3. If the specificed framing does not meet the increment requirement,
  61. the specified framing is rounded down to the closest valid
  62. framing options.
  63. example allow=ulaw:33 will set the codec to 30ms framing
  64. 4. If no framing is specified in the allow= directive, then the
  65. codec default is used.