cli_aliases.conf.sample 7.1 KB

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