oss.conf.sample 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. ;
  2. ; Automatically generated from ../channels/chan_oss.c
  3. ;
  4. [general]
  5. ; General config options, with default values shown.
  6. ; You should use one section per device, with [general] being used
  7. ; for the first device and also as a template for other devices.
  8. ;
  9. ; All but 'debug' can go also in the device-specific sections.
  10. ;
  11. ; debug = 0x0 ; misc debug flags, default is 0
  12. ; Set the device to use for I/O
  13. ; device = /dev/dsp
  14. ; Optional mixer command to run upon startup (e.g. to set
  15. ; volume levels, mutes, etc.
  16. ; mixer =
  17. ; Software mic volume booster (or attenuator), useful for sound
  18. ; cards or microphones with poor sensitivity. The volume level
  19. ; is in dB, ranging from -20.0 to +20.0
  20. ; boost = n ; mic volume boost in dB
  21. ; Set the callerid for outgoing calls
  22. ; callerid = John Doe <555-1234>
  23. ; autoanswer = no ; no autoanswer on call
  24. ; autohangup = yes ; hangup when other party closes
  25. ; extension = s ; default extension to call
  26. ; context = default ; default context for outgoing calls
  27. ; language = "" ; default language
  28. ; If you set overridecontext to 'yes', then the whole dial string
  29. ; will be interpreted as an extension, which is extremely useful
  30. ; to dial SIP, IAX and other extensions which use the '@' character.
  31. ; The default is 'no' just for backward compatibility, but the
  32. ; suggestion is to change it.
  33. ; overridecontext = no ; if 'no', the last @ will start the context
  34. ; if 'yes' the whole string is an extension.
  35. ; low level device parameters in case you have problems with the
  36. ; device driver on your operating system. You should not touch these
  37. ; unless you know what you are doing.
  38. ; queuesize = 10 ; frames in device driver
  39. ; frags = 8 ; argument to SETFRAGMENT
  40. ; ----------------------------- JITTER BUFFER CONFIGURATION --------------------------
  41. ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of an
  42. ; OSS channel. Defaults to "no". An enabled jitterbuffer will
  43. ; be used only if the sending side can create and the receiving
  44. ; side can not accept jitter. The OSS channel can't accept jitter,
  45. ; thus an enabled jitterbuffer on the receive OSS side will always
  46. ; be used if the sending side can create jitter.
  47. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  48. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  49. ; resynchronized. Useful to improve the quality of the voice, with
  50. ; big jumps in/broken timestamps, usually sent from exotic devices
  51. ; and programs. Defaults to 1000.
  52. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of an OSS
  53. ; channel. Two implementations are currently available - "fixed"
  54. ; (with size always equals to jbmax-size) and "adaptive" (with
  55. ; variable size, actually the new jb of IAX2). Defaults to fixed.
  56. ; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
  57. ; The option represents the number of milliseconds by which the new
  58. ; jitter buffer will pad its size. the default is 40, so without
  59. ; modification, the new jitter buffer will set its size to the jitter
  60. ; value plus 40 milliseconds. increasing this value may help if your
  61. ; network normally has low jitter, but occasionally has spikes.
  62. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  63. ; ----------------------------------------------------------------------------------
  64. ; below is an entry for a second console channel
  65. ; [card1]
  66. ; device = /dev/dsp1 ; alternate device
  67. ; Below are the settings to support video. You can include them
  68. ; in your general configuration as [general](+,video)
  69. ; The parameters are all available through the CLI as "console name value"
  70. ; Section names used here are only examples.
  71. [my_video](!) ; you can just include in your config
  72. videodevice = /dev/video0 ; uses your V4L webcam as video source
  73. videodevice = X11 ; X11 grabber. Dragging on the local display moves the origin.
  74. videocodec = h263 ; also h261, h263p, h264, mpeg4, ...
  75. ; video_size is the geometry used by the encoder.
  76. ; Depending on the codec your choice is restricted.
  77. video_size = 352x288 ; the format WIDTHxHEIGHT is also ok
  78. video_size = cif ; sqcif, qcif, cif, qvga, vga, ...
  79. ; You can also set the geometry used for the camera, local display and remote display.
  80. ; The local window is on the right, the remote window is on the left.
  81. ; Right clicking with the mouse on a video window increases the size,
  82. ; center-clicking reduces the size.
  83. camera_size = cif
  84. remote_size = cif
  85. local_size = qcif
  86. bitrate = 60000 ; rate told to ffmpeg.
  87. fps = 5 ; frames per second from the source.
  88. ; qmin = 3 ; quantizer value passed to the encoder.
  89. ; The keypad is made of an image (in any format supported by SDL_image)
  90. ; and some configuration entries indicating the location and function of buttons.
  91. ; These entries can also be contained in the comment field of the image,
  92. ; which is a lot more convenient to manage.
  93. ; E.g. for jpeg you can write them with wrjpgcom (part of libjpeg).
  94. ; The format to define keys is
  95. ; region = <event> <shape> x0 y0 x1 y1 h
  96. ; where <event> is the event to be generated (a digit, pickup, hangup,...)
  97. ; <shape> is the shape of the region (currently 'rect' and 'circle' are
  98. ; supported, the latter is really an ellipse), x0 y0 x1 y1 are the
  99. ; coordinates of the base of the rectangle or main diameter of the ellipse,
  100. ; (they can be rotated) while h is the height of the rectangle or the other
  101. ; diameter of the ellipse.
  102. ;
  103. [my_skin](!)
  104. keypad = /tmp/keypad.jpg
  105. region = 1 rect 19 18 67 18 28
  106. region = 2 rect 84 18 133 18 28
  107. region = 3 rect 152 18 201 18 28
  108. region = 4 rect 19 60 67 60 28
  109. region = 5 rect 84 60 133 60 28
  110. region = 6 rect 152 60 201 60 28
  111. region = 7 rect 19 103 67 103 28
  112. region = 8 rect 84 103 133 103 28
  113. region = 9 rect 152 103 201 103 28
  114. region = * rect 19 146 67 146 28
  115. region = 0 rect 84 146 133 146 28
  116. region = # rect 152 146 201 146 28
  117. region = pickup rect 229 15 267 15 40
  118. region = hangup rect 230 66 270 64 40
  119. region = mute circle 232 141 264 141 33
  120. region = sendvideo circle 235 185 266 185 33
  121. region = autoanswer rect 228 212 275 212 50
  122. ; another skin with entries for the keypad and a small font
  123. ; to write to the message boards in the skin.
  124. [skin2](!)
  125. keypad = /tmp/kpad2.jpg
  126. keypad_font = /tmp/font.png
  127. ; to add video support, uncomment this and remember to install
  128. ; the keypad and keypad_font files to the right place
  129. ; [general](+,my_video,skin2)