cli_aliases.conf.sample 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ;
  2. ; CLI Aliases configuration
  3. ;
  4. ; This module also registers a "cli show aliases" CLI command to list
  5. ; configured CLI aliases.
  6. [general]
  7. ; Here you define what alias templates you want to use. You can also define
  8. ; multiple templates to use as well. If you do, and there is a conflict, then
  9. ; the first alias defined will win.
  10. ;
  11. template = friendly ; By default, include friendly aliases
  12. ;template = asterisk12 ; Asterisk 1.2 style syntax
  13. ;template = asterisk14 ; Asterisk 1.4 style syntax
  14. ;template = individual_custom ; see [individual_custom] example below which
  15. ; includes a list of aliases from an external
  16. ; file
  17. ; Because the Asterisk CLI syntax follows a "module verb argument" syntax,
  18. ; sometimes we run into an issue between being consistant with this format
  19. ; in the core system, and maintaining system friendliness. In order to get
  20. ; around this we're providing some useful aliases by default.
  21. ;
  22. [friendly]
  23. hangup request=channel request hangup
  24. originate=channel originate
  25. help=core show help
  26. pri intense debug span=pri set debug intense span
  27. reload=module reload
  28. ; CLI Alias Templates
  29. ; -------------------
  30. ;
  31. ; You can define several alias templates.
  32. ; It works with context templates like all other configuration files
  33. ;
  34. ;[asterisk](!)
  35. ; To create an alias you simply set the variable name as the alias and variable
  36. ; value as the real CLI command you want executed
  37. ;
  38. ;die die die=stop now
  39. ;[asterisk16](asterisk)
  40. ; Alias for making voicemail reload actually do module reload app_voicemail.so
  41. ;voicemail reload=module reload app_voicemail.so
  42. ; This will make the CLI command "mr" behave as though it is "module reload".
  43. ;mr=module reload
  44. ;
  45. ;
  46. ; In addition, you could also include a flat file of aliases which is loaded by
  47. ; the [individual_custom] template in the [general] section.
  48. ;
  49. ;[individual_custom]
  50. ;#include "/etc/asterisk/aliases"
  51. ; Implemented CLI Alias Templates
  52. ; -------------------------------
  53. ;
  54. ; Below here we have provided you with some templates, easily allowing you to
  55. ; utilize previous Asterisk CLI commands with any version of Asterisk. In this
  56. ; way you will be able to use Asterisk 1.2 and 1.4 style CLI syntax with any
  57. ; version Asterisk going forward into the future.
  58. ;
  59. ; We have also separated out the vanilla syntax into a context template which
  60. ; allows you to keep your custom changes separate of the standard templates
  61. ; we have provided you. In this way you can clearly see your custom changes,
  62. ; and also allowing you to combine various templates as you see fit.
  63. ;
  64. ; The naming scheme we have used is recommended, but certainly is not enforced
  65. ; by Asterisk. If you wish to use the provided templates, simply define the
  66. ; context name which does not utilize the '_tpl' at the end. For example,
  67. ; if you would like to use the Asterisk 1.2 style syntax, define in the
  68. ; [general] section
  69. [asterisk12_tpl](!)
  70. show channeltypes=core show channeltypes
  71. show channeltype=core show channeltype
  72. show manager command=manager show command
  73. show manager commands=manager show commands
  74. show manager connected=manager show connected
  75. show manager eventq=manager show eventq
  76. rtp no debug=rtp set debug off
  77. rtp rtcp debug ip=rtcp debug ip
  78. rtp rtcp debug=rtcp debug
  79. rtp rtcp no debug=rtcp debug off
  80. rtp rtcp stats=rtcp stats
  81. rtp rtcp no stats=rtcp stats off
  82. stun no debug=stun debug off
  83. udptl no debug=udptl debug off
  84. show image formats=core show image formats
  85. show file formats=core show file formats
  86. show applications=core show applications
  87. show functions=core show functions
  88. show switches=core show switches
  89. show hints=core show hints
  90. show globals=core show globals
  91. show function=core show function
  92. show application=core show application
  93. set global=core set global
  94. show dialplan=dialplan show
  95. show codecs=core show codecs
  96. show audio codecs=core show audio codecs
  97. show video codecs=core show video codecs
  98. show image codecs=core show image codecs
  99. show codec=core show codec
  100. moh classes show=moh show classes
  101. moh files show=moh show files
  102. agi no debug=agi debug off
  103. show agi=agi show
  104. dump agihtml=agi dumphtml
  105. show features=feature show
  106. show indications=indication show
  107. answer=console answer
  108. hangup=console hangup
  109. flash=console flash
  110. dial=console dial
  111. mute=console mute
  112. unmute=console unmute
  113. transfer=console transfer
  114. send text=console send text
  115. autoanswer=console autoanswer
  116. oss boost=console boost
  117. console=console active
  118. save dialplan=dialplan save
  119. add extension=dialplan add extension
  120. remove extension=dialplan remove extension
  121. add ignorepat=dialplan add ignorepat
  122. remove ignorepat=dialplan remove ignorepat
  123. include context=dialplan add include
  124. dont include=dialplan remove include
  125. extensions reload=dialplan reload
  126. show translation=core show translation
  127. convert=file convert
  128. show queue=queue show
  129. add queue member=queue add member
  130. remove queue member=queue remove member
  131. ael no debug=ael nodebug
  132. sip debug=sip set debug
  133. sip no debug=sip set debug off
  134. show voicemail users=voicemail show users
  135. show voicemail zones=voicemail show zones
  136. iax2 trunk debug=iax2 set debug trunk
  137. iax2 jb debug=iax2 set debug jb
  138. iax2 no debug=iax2 set debug off
  139. iax2 no trunk debug=iax2 set debug trunk off
  140. iax2 no jb debug=iax2 set debug jb off
  141. show agents=agent show
  142. show agents online=agent show online
  143. show memory allocations=memory show allocations
  144. show memory summary=memory show summary
  145. show version=core show version
  146. show version files=core show file version
  147. show profile=core show profile
  148. clear profile=core clear profile
  149. soft hangup=channel request hangup
  150. [asterisk12](asterisk12_tpl)
  151. ; add any additional custom commands you want below here, for example:
  152. ;die quickly=stop now
  153. [asterisk14_tpl](!)
  154. cdr status=cdr show status
  155. rtp debug=rtp set debug on
  156. rtcp debug=rtcp set debug on
  157. rtcp stats=rtcp set stats on
  158. stun debug=stun set debug on
  159. udptl debug=udptl set debug on
  160. core show globals=dialplan show globals
  161. core set global=dialplan set global
  162. core set chanvar=dialplan set chanvar
  163. agi dumphtml=agi dump html
  164. ael debug=ael set debug
  165. funcdevstate list=devstate list
  166. sip history=sip set history on
  167. skinny debug=skinny set debug on
  168. mgcp set debug=mgcp set debug on
  169. abort shutdown=core abort shutdown
  170. stop now=core stop now
  171. stop gracefully=core stop gracefully
  172. stop when convenient=core stop when convenient
  173. restart now=core restart now
  174. restart gracefully=core restart gracefully
  175. restart when convenient=core restart when convenient
  176. soft hangup=channel request hangup
  177. [asterisk14](asterisk14_tpl)
  178. ; add any additional custom commands you want below here.
  179. [asterisk11_tpl](!)
  180. jabber list nodes=xmpp list nodes
  181. jabber purge nodes=xmpp purge nodes
  182. jabber delete node=xmpp delete node
  183. jabber create collection=xmpp create collection
  184. jabber create leaf=xmpp create leaf
  185. jabber set debug=xmpp set debug
  186. jabber show connections=xmpp show connections
  187. jabber show buddies=xmpp show buddies
  188. [asterisk11](asterisk11_tpl)
  189. ; add any additional custom commands you want below here.