Where is the source code of the CLI commands for Asterisk?

Where is the source code of the CLI commands for Asterisk?

Please help me if you know any.
Thanks in advance!

errr … why do you want the sourcecode for the CLI commands ?

if it’s really what you want, you could look through the source for asterisk … if you’re a C programmer you’ll be ok. maybe start with asterisk.c ??

! Execute a shell command
abort halt Cancel a running halt
add extension Add new extension into context
add ignorepat Add new ignore pattern
add queue member Add a channel to a specified queue
ael debug contexts Enable AEL contexts debug
ael debug macros Enable AEL macros debug
ael debug read Enable AEL read debug
ael debug tokens Enable AEL tokens debug
ael no debug Disable AEL debug messages
ael reload Reload AEL configuration
agent logoff Sets an agent offline
agi debug Enable AGI debugging
agi no debug Disable AGI debugging
cdr mysql status Show connection status of cdr_mysql
cdr status Display the CDR status
database del Removes database key/value
database deltree Removes database keytree/values
database get Gets database value
database put Adds/updates database value
database show Shows database contents
database showkey Shows database contents
debug channel Enable debugging on a channel
debug level Set global debug level
dnsmgr reload Reloads the DNS manager configuration
dnsmgr status Display the DNS manager status
dont include Remove a specified include from context
dump agihtml Dumps a list of agi command in html format
dundi debug Enable DUNDi debugging
dundi flush Flush DUNDi cache
dundi lookup Lookup a number in DUNDi
dundi no debug Disable DUNDi debugging
dundi no store history Disable DUNDi historic records
dundi precache Precache a number in DUNDi
dundi query Query a DUNDi EID
dundi show entityid Display Global Entity ID
dundi show mappings Show DUNDi mappings
dundi show peers Show defined DUNDi peers
dundi show peer Show info on a specific DUNDi peer
dundi show precache Show DUNDi precache
dundi show requests Show DUNDi requests
dundi show trans Show active DUNDi transactions
dundi store history Enable DUNDi historic records
extensions reload Reload extensions and only extensions
feature show channels Show status of feature channels
group show channels Show active channels with group(s)
help Display help list, or specific help on a command
iax2 debug Enable IAX debugging
iax2 jb debug Enable IAX jitterbuffer debugging
iax2 no debug Disable IAX debugging
iax2 no jb debug Disable IAX jitterbuffer debugging
iax2 no trunk debug Disable IAX trunk debugging
iax2 provision Provision an IAX device
iax2 prune realtime Prune a cached realtime lookup
iax2 reload Reload IAX configuration
iax2 set jitter Sets IAX jitter buffer
iax2 show cache Display IAX cached dialplan
iax2 show channels Show active IAX channels
iax2 show firmware Show available IAX firmwares
iax2 show netstats Show active IAX channel netstats
iax2 show peer Show details on specific IAX peer
iax2 show peers Show defined IAX peers
iax2 show provisioning Show iax provisioning
iax2 show registry Show IAX registration status
iax2 show stats Display IAX statistics
iax2 show users Show defined IAX users
iax2 test losspct Set IAX2 incoming frame loss percentage
iax2 trunk debug Enable IAX trunk debugging
include context Include context in other context
indication add Add the given indication to the country
indication remove Remove the given indication from the country
init keys Initialize RSA key passcodes
load Load a dynamic module by name
local show channels Show status of local channels
logger reload Reopens the log files
logger rotate Rotates and reopens the log files
logger show channels List configured log channels
meetme Execute a command on a conference or conferee
mgcp audit endpoint Audit specified MGCP endpoint
mgcp debug Enable MGCP debugging
mgcp no debug Disable MGCP debugging
mgcp reload Reload MGCP configuration
mgcp show endpoints Show defined MGCP endpoints
mixmonitor Execute a MixMonitor command
moh classes show List MOH classes
moh files show List MOH file-based classes
moh reload Music On Hold
no debug channel Disable debugging on a channel
pri debug span Enables PRI debugging on a span
pri intense debug span Enables REALLY INTENSE PRI debugging
pri no debug span Disables PRI debugging on a span
pri set debug file Sends PRI debug output to the specified file
pri show debug Displays current PRI debug settings
pri show spans Displays PRI Information
pri show span Displays PRI Information
pri unset debug file Ends PRI debug output to file
realtime load Used to print out RealTime variables.
realtime mysql status Shows connection information for the MySQL RealTime d river
realtime update Used to update RealTime variables.
reload Reload configuration
remove extension Remove a specified extension
remove ignorepat Remove ignore pattern from context
remove queue member Removes a channel from a specified queue
restart gracefully Restart Asterisk gracefully
restart now Restart Asterisk immediately
restart when convenient Restart Asterisk at empty call volume
rtp debug Enable RTP debugging
rtp debug ip Enable RTP debugging on IP
rtp no debug Disable RTP debugging
set debug Set level of debug chattiness
set verbose Set level of verboseness
logger mute Disable logging output to a console
show agents Show status of agents
show agi Show AGI commands or specific help
show applications Shows registered dialplan applications
show application Describe a specific dialplan application
show audio codecs Shows audio codecs
show channel Display information on a specific channel
show channels Display information on channels
show channeltypes Show available channel types
show codecs Shows codecs
show codec Shows a specific codec
show conferences Show status of conferences
show config mappings Show Config mappings (file names to config engines)
show dialplan Show dialplan
show features Lists configured features
show file formats Displays file formats
show functions Shows registered dialplan functions
show function Describe a specific dialplan function
show hints Show dialplan hints
show image codecs Shows image codecs
show image formats Displays image formats
show indications Show a list of all country/indications
show keys Displays RSA key information
show license Show the license(s) for this copy of Asterisk
show manager command Show a manager interface command
show manager commands List manager interface commands
show manager connected Show connected manager interface users
show modules List modules and info
show modules like List modules and info
show parkedcalls Lists parked calls
show queue Show status of a specified queue
show queues Show status of queues
show switches Show alternative switches
show translation Display translation matrix
show uptime Show uptime information
show version Display version info
show version files Show versions of files used to build Asterisk
show video codecs Shows video codecs
show voicemail users List defined voicemail boxes
show voicemail zones List zone message formats
show warranty Show the warranty (if any) for this copy of Asterisk
sip debug Enable SIP debugging
sip debug ip Enable SIP debugging on IP
sip debug peer Enable SIP debugging on Peername
sip history Enable SIP history
sip no debug Disable SIP debugging
sip no history Disable SIP history
sip notify Send a notify packet to a SIP peer
sip prune realtime Prune cached Realtime object(s)
sip prune realtime peer Prune cached Realtime peer(s)
sip prune realtime user Prune cached Realtime user(s)
sip reload Reload SIP configuration
sip show channels Show active SIP channels
sip show channel Show detailed SIP channel info
sip show domains List our local SIP domains.
sip show history Show SIP dialog history
sip show inuse List all inuse/limits
sip show objects Show all SIP object allocations
sip show peer Show details on specific SIP peer
sip show peers Show defined SIP peers
sip show registry Show SIP registration status
sip show settings Show SIP global settings
sip show subscriptions Show active SIP subscriptions
sip show users Show defined SIP users
sip show user Show details on specific SIP user
skinny debug Enable Skinny debugging
skinny no debug Disable Skinny debugging
skinny show devices Show defined Skinny devices
skinny show lines Show defined Skinny lines per device
soft hangup Request a hangup on a given channel
stop gracefully Gracefully shut down Asterisk
stop now Shut down Asterisk immediately
stop when convenient Shut down Asterisk at empty call volume
unload Unload a dynamic module by name
zap destroy channel Destroy a channel
zap show cadences List cadences
zap show channels Show active zapata channels
zap show channel Show information on a channel
zap show status Show all Zaptel cards status