mvanbaak has committed a change to the trunk version of Asterisk which allows for it to perform like older versions of Asterisk did so that you can type the same commands on different versions of Asterisk you work with.
The diff is available from here.
The cli_aliases.conf file will contain by default:
;
; CLI Aliases configuration
;
; This module also registers a "cli show aliases" CLI command to list
; configured CLI aliases.
[general]
; Here you define what alias templates you want to use. You can also define
; multiple templates to use as well. If you do, and there is a conflict, then
; the first alias defined will win.
;
template = friendly ; By default, include friendly aliases
;template = asterisk12 ; Asterisk 1.2 style syntax
;template = asterisk14 ; Asterisk 1.4 style syntax
;template = individual_custom ; see [individual_custom] example below which
; includes a list of aliases from an external
; file
; Because the Asterisk CLI syntax follows a "module verb argument" syntax,
; sometimes we run into an issue between being consistant with this format
; in the core system, and maintaining system friendliness. In order to get
; around this we're providing some useful aliases by default.
;
[friendly]
hangup request=channel request hangup
originate=channel originate
help=core show help
pri intense debug span=pri set debug 2 span
; CLI Alias Templates
; -------------------
;
; You can define several alias templates.
; It works with context templates like all other configuration files
;
;[asterisk](!)
; To create an alias you simply set the variable name as the alias and variable
; value as the real CLI command you want executed
;
;die die die=stop now
;[asterisk16](asterisk)
; Alias for making voicemail reload actually do module reload app_voicemail.so
;voicemail reload=module reload app_voicemail.so
; This will make the CLI command "mr" behave as though it is "module reload".
;mr=module reload
;
;
; In addition, you could also include a flat file of aliases which is loaded by
; the [individual_custom] template in the [general] section.
;
;[individual_custom]
;#include "/etc/asterisk/aliases"
; Implemented CLI Alias Templates
; -------------------------------
;
; Below here we have provided you with some templates, easily allowing you to
; utilize previous Asterisk CLI commands with any version of Asterisk. In this
; way you will be able to use Asterisk 1.2 and 1.4 style CLI syntax with any
; version Asterisk going forward into the future.
;
; We have also separated out the vanilla syntax into a context template which
; allows you to keep your custom changes separate of the standard templates
; we have provided you. In this way you can clearly see your custom changes,
; and also allowing you to combine various templates as you see fit.
;
; The naming scheme we have used is recommended, but certainly is not enforced
; by Asterisk. If you wish to use the provided templates, simply define the
; context name which does not utilize the '_tpl' at the end. For example,
; if you would like to use the Asterisk 1.2 style syntax, define in the
; [general] section
[asterisk12_tpl](!)
show channeltypes=core show channeltypes
show channeltype=core show channeltype
show manager command=manager show command
show manager commands=manager show commands
show manager connected=manager show connected
show manager eventq=manager show eventq
rtp no debug=rtp set debug off
rtp rtcp debug ip=rtcp debug ip
rtp rtcp debug=rtcp debug
rtp rtcp no debug=rtcp debug off
rtp rtcp stats=rtcp stats
rtp rtcp no stats=rtcp stats off
stun no debug=stun debug off
udptl no debug=udptl debug off
show image formats=core show image formats
show file formats=core show file formats
show applications=core show applications
show functions=core show functions
show switches=core show switches
show hints=core show hints
show globals=core show globals
show function=core show function
show application=core show application
set global=core set global
show dialplan=dialplan show
show codecs=core show codecs
show audio codecs=core show audio codecs
show video codecs=core show video codecs
show image codecs=core show image codecs
show codec=core show codec
moh classes show=moh show classes
moh files show=moh show files
agi no debug=agi debug off
show agi=agi show
dump agihtml=agi dumphtml
show features=feature show
show indications=indication show
answer=console answer
hangup=console hangup
flash=console flash
dial=console dial
mute=console mute
unmute=console unmute
transfer=console transfer
send text=console send text
autoanswer=console autoanswer
oss boost=console boost
console=console active
save dialplan=dialplan save
add extension=dialplan add extension
remove extension=dialplan remove extension
add ignorepat=dialplan add ignorepat
remove ignorepat=dialplan remove ignorepat
include context=dialplan add include
dont include=dialplan remove include
extensions reload=dialplan reload
show translation=core show translation
convert=file convert
show queue=queue show
add queue member=queue add member
remove queue member=queue remove member
ael no debug=ael nodebug
sip debug=sip set debug
sip no debug=sip set debug off
show voicemail users=voicemail show users
show voicemail zones=voicemail show zones
iax2 trunk debug=iax2 set debug trunk
iax2 jb debug=iax2 set debug jb
iax2 no debug=iax2 set debug off
iax2 no trunk debug=iax2 set debug trunk off
iax2 no jb debug=iax2 set debug jb off
show agents=agent show
show agents online=agent show online
show memory allocations=memory show allocations
show memory summary=memory show summary
show version=core show version
show version files=core show file version
show profile=core show profile
clear profile=core clear profile
[asterisk12](asterisk12_tpl)
; add any additional custom commands you want below here, for example:
;die quickly=stop now
[asterisk14_tpl](!)
cdr status=cdr show status
rtp debug=rtp set debug on
rtcp debug=rtcp set debug on
rtcp stats=rtcp set stats on
stun debug=stun set debug on
udptl debug=udptl set debug on
core show globals=dialplan show globals
core set global=dialplan set global
core set chanvar=dialplan set chanvar
agi dumphtml=agi dump html
ael debug=ael set debug
funcdevstate list=devstate list
sip history=sip set history on
skinny debug=skinny set debug on
mgcp set debug=mgcp set debug on
abort shutdown=core abort shutdown
stop now=core stop now
stop gracefully=core stop gracefully
stop when convenient=core stop when convenient
restart now=core restart now
restart gracefully=core restart gracefully
restart when convenient=core restart when convenient
[asterisk14](asterisk14_tpl)
; add any additional custom commands you want below here.
Current Rating: 0/10 (0 votes) Comments (1 posted) ZyZvbVjCvddL Written by Wolf59 (October 23, 2009, 7:43 am)
Anyway these are some great tips & these posts are even better. , Similar Articles (Based on Title) RFC: internal CLI changes - November 14, 2006 Luigi has posted a request for comment on a bugtracker entry.
VoIP-info.org: Version 0.9.1 of LDAPget application module released. - December 7, 2004 Version 0.9.1 of LDAPget application module has been released. It now supports the most recent CVS.
JavaScript module for Asterisk Unveiled - June 22, 2005 Anthm has posted details of a new module for using javascript with Asterisk.
*-Dev: asterisk audio conversion module - December 20, 2005 Redice Li has posted details of an audio conversion module for Asterisk.
*-Dev: Module testing framework - December 29, 2005 Olle has posted details of a new module test branch.
New Asterisk Module Generator Tool - August 23, 2006 Justin Tunney has posted details of a web based application that will generate the framework necessary for building your own Asterisk modules.
Another module for testing: chan_console - December 28, 2007 Russell Bryant has posted details of a branch of SVN which is ready for testing.
How to write an Asterisk Module - June 23, 2008 Russell has written a two part article on writing Asterisk modules.
How-to: Write an Asterisk Module, Part 3 - July 1, 2008 Russell has posted the third in his series on writing Asterisk modules.
Digium G.729 codec module updated and new performance testing tool released - February 17, 2009 Kevin Fleming has posted details of an update to G.729.
PA648C Video Compression Module - August 19, 2009 Palmmicro Video and Audio compression chip with H.264 support.
Flite module for asterisk 1.6.x - August 31, 2009 zaf has written a flite module which does text to speech with Asterisk.
RSS News Feed Added - September 18, 2004 We have added an RSS News Feed to the SineApps News Page
Original Content (C) 2004-2010
Matt Riddell

Icons by: FastIcon.com
|
Sound card Line-In as MOH source May 16, 2005 Average Vote: 10
Niksa Baldun has posted a script (line of code) to allow you to select the line in of your sound card as a music on hold source.
39 Free Softphones August 14, 2009 Average Vote: 9.9
I decided to do another round up article, this time focusing on the 39 best free softphones.
Asterisk IPv6 update February 1, 2010 Average Vote: 9.9
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.
Interview with Mark Spencer November 26, 2004 Average Vote: 9.8
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.
Monitoring Asterisk with Munin January 7, 2010 Average Vote: 9.8
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.
Unit Test Framework Now Available January 5, 2010 Average Vote: 9.6
David Vossel has posted details of the new unit test framework in Asterisk - this will likely lead to some pretty decent advances in stability.
Wishlist for 1.8 - new media negotiation February 8, 2010 Average Vote: 9.5
Olle has posted a note explaining his with for codec negotiation fixup.
Asterisk-Addons 1.6.0.2 Now Available May 22, 2009 Average Vote: 9.5
The Asterisk Development Team is pleased to announce the release of Asterisk-Addons 1.6.0.2.
Interview with John Todd August 22, 2009 Average Vote: 9.4
We have just completed an interview with John Todd - the Asterisk Open Source Community Director.
New feature for AMI Redirect command September 22, 2009 Average Vote: 9.3
Hakon Nessjoen has posted an email asking for testing of a patch for redirecting channels in different directions.
Asterisk in a Fortune 500 company January 18, 2010 Average Vote: 9.3
John Todd has posted an interesting link about a speech that will take place in which Jeremy Wadhams from Yahoo will discuss an Asterisk implementation in a Fortune 500 company.
New feature: Asterisk Manager Interface commands for DeviceState February 1, 2010 Average Vote: 9.3
Hakon Nessjoen has another path - this one allows getting and setting device state via the Asterisk Manager interface.
State of FAX (primarily T.38) in Asterisk trunk (planning for 1.8 release) December 4, 2009 Average Vote: 9.3
Kevin Fleming has written up a description of where fax is at in Asterisk.
Billing systems and Daily Grind January 8, 2010 Average Vote: 9.3
Most of the articles I write on the Daily Asterisk News are about releases of software etc, but I thought I would give you an update on what I am working on day to day.
Amazing Asterisk Sign August 18, 2009 Average Vote: 9.3
Leif Madsen posted a link to a cool photo of someone hijacking a sign for Asterisk.
Wishlist for 1.8 - new media negotiation February 8, 2010 Olle has posted a note explaining his with for codec negotiation fixup.
Asterisk 1.6.0.22, 1.6.1.14, and 1.6.2.2 Released February 4, 2010 The Asterisk Development Team has announced security releases for Asterisk.
Simplified Voting February 1, 2010 Hi all, I was going through the stats for the Daily Asterisk News and noted that the star rating system I was using was taking 180KB to download.
MixMonitor Mute February 1, 2010 Julian Lyndon-Smith has posted details of a patch he has written to temporarily mute MixMonitor recordings.
Asterisk IPv6 update February 1, 2010 Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.
New feature: Asterisk Manager Interface commands for DeviceState February 1, 2010 Hakon Nessjoen has another path - this one allows getting and setting device state via the Asterisk Manager interface.
New feature in app_queue: Give members a penalty time for not answering February 1, 2010 Hakon Nessjoen has posted detail of a patch he has written to add a new option to queues.conf.
Asterisk with Apple iPad January 28, 2010 Apple has release the iPad today - their latest product - a tablet computer with a multi touch surface. It strikes me that this could potentially be used for a fantastic cheap receptionists console.
Adventures in RTCP - a short report January 28, 2010 Olle has posted a writeup on his RTCP work - still could do with more testers.
Asterisk GSoC 2010 January 28, 2010 Russell has posted details of the Google Summer of Code program which will be running again this year. |