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