aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
AgeCommit message (Collapse)AuthorFilesLines
2006-09-29automerge commitroot1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43991 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28automerge commitroot1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43911 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-27automerge commitroot1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@11306 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26cast time_t to an int in printf/scanf (issue #5635)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-05stop recompiling cli.c on every 'make'kpfleming1-5/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6963 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-11fix command listing for top level CLI commands (issue #5416)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6740 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-25Fix CLI completion issue (bug #5041)markster1-14/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6640 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-24Fix CLI memory leak (bug #5035)markster1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6635 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-26fix format string (inspired by issue #4945)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6415 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-22make 'show modules like' not case sensitive (issue #4990)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6349 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-14Fix cli matchstr initialization (bug #4958)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6326 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-12Fix CLI formatting typo (bug #4945)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6324 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-08Better alignment/truncation of show channels output (bug #4741 with ↵markster1-30/+96
extensive mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6307 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-1/+1
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15phase two of string portability stuff:kpfleming1-6/+1
don't need ast_ prefixes on functions use individual #defines for function presence add vasprintf to portability library git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-10more ast_copy_string conversionsrussell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6073 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07make CLI output use singular/plural when appropriate (bug #4654)kpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6047 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-10restructure buggy parse_args routinekpfleming1-62/+52
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5898 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-20/+26
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06add support for per-module version numberskpfleming1-8/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06major Makefile and build process improvements, including removal of all ↵kpfleming1-3/+3
hardcoded paths (modules must now use run-time paths as they should) (bug #4116) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5855 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more efficient (and understandable) ast_channel_walk_locked, and vastly more ↵kpfleming1-127/+103
efficient ast_channel_by_name_locked (bug #4265) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5853 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-24print out appropriate message when no help text is available for a commandrussell1-3/+8
fix a seg fault when astmm is enabled (bug #4356) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5758 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-18Add optional call limitmarkster1-1/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5712 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-15add functions to register/unregister multiple CLI commands in a single ↵kpfleming1-0/+19
operation (bug #4255, with minor mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5662 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-29don't use '%i' at all, since we have no current use cases that need non ↵kpfleming1-1/+1
base-10 parsing (bug #4110) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5533 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-22phase 1 of header include cleanup (bug #4067)kpfleming1-5/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-9/+9
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-23Merge Russell's formatting patch (bug #3838)markster1-44/+45
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5234 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-05Allow debug to be enabled on a per-file basis...markster1-0/+25
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-04Rework channel structure to eliminate "pvt" portion of channel (bug #3573)markster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5137 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-23Merge anthm's CDR updates (bug #3595)markster1-3/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5068 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-05Allow uptime to be displayed in seconds (bug #3510, with mods)markster1-10/+28
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4968 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-01Fix agent moh issue (bug #3383)markster1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4943 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-06Fix command completion issue (bug #3257)markster1-15/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4694 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-29Fix additional typos (bug #3162)markster1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4581 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-26Fix CLI to report "N/A" when appropriate for time, chan_features updates, ↵markster1-3/+6
ALSA and OSS codec fixes (bug #3145) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4556 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-14Merge slimey's Solaris compatibility (with small mods) (bug #2740)markster1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4446 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-07Big diet for struct ast_channelmarkster1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4399 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-21Fix compiler warningmarkster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4302 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-18Minor command completion tweak (bug #988 bis)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4287 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-17Fix initialization of CLI (bug #2861)markster1-8/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4284 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-06Add features (incomplete, highly experimental), fix DundiLookup app, debug ↵markster1-17/+45
improvements (bug #2800) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4167 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-22This patch adds a new api call:anthm1-0/+5
int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t size); takes a chan and a char * 'buf' assumed to be 'size' bytes. The function fills 'buf' with a <CR>('\n') delimited list of name,value pairs in turn delimeted by '=' eg: SIPCALLID=f30e4e72-f715193f@1.2.3.4 SIPUSERAGENT=Sipura/SPA2000-2.0.6(c) SIPDOMAIN=1.2.3.4 It returns the acutal number of variables encountered. If the attempt to fill 'buf' goes beyond 'size' bytes the operation is halted and the incomplete string is returned as is. To demonstrate a use for this, the "show channel <channame>" command has been retrofitted with the call so it also dumps all of the chan's vars *CLI> show channel Zap/5-1 -- General -- Name: Zap/5-1 Type: Zap UniqueID: 1098480666.17 Caller ID: 4999 Caller ID Name: Tony DNID Digits: (N/A) State: Up (6) Rings: 0 NativeFormat: 68 WriteFormat: 4 ReadFormat: 4 1st File Descriptor: 22 Frames in: 41969 Frames out: 83240 Time to Hangup: 0 Elapsed Time: 0h13m54s -- PBX -- Context: phone1 Extension: 4994 Priority: 2 Call Group: 2 Pickup Group: 2 Application: Dial Data: IAX2/ulaw@cube1/00010014994@croip Stack: 0 Blocking in: ast_waitfor_nandfds Variables: DIALEDPEERNUMBER=ulaw@cube1/00010014994@croip DIALEDPEERNAME=IAX2/cube1/3 CALLTYPE=SPEECH tempvar=tempval git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4051 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-16Provide module command completion (make twisted happy)markster1-3/+24
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4022 f38db490-d61c-443f-a65b-d21fe96a405b