Commit Graph

97 Commits

Author SHA1 Message Date
Russell Bryant 7fa558c71e fix format string (inspired by issue #4945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 15:59:00 +00:00
Kevin P. Fleming 1b420b7696 make 'show modules like' not case sensitive (issue #4990)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 18:43:32 +00:00
Mark Spencer 436353205a Fix cli matchstr initialization (bug #4958)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 01:48:14 +00:00
Mark Spencer e65f1c2a95 Fix CLI formatting typo (bug #4945)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-12 18:29:41 +00:00
Mark Spencer 0462b845e2 Better alignment/truncation of show channels output (bug #4741 with extensive mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 01:45:29 +00:00
Kevin P. Fleming 22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming 9d8d86e19d phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:06:15 +00:00
Russell Bryant edbc500b77 more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6073 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 22:56:21 +00:00
Kevin P. Fleming f268ea2b3c make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07 22:32:20 +00:00
Kevin P. Fleming 0aae19259a restructure buggy parse_args routine
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5898 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-10 20:25:23 +00:00
Kevin P. Fleming 2b8338cb52 more file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
Kevin P. Fleming 0e6762dd5f remove experimental module version tags
add per-file revision tags and 'show version files' CLI command


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 20:27:51 +00:00
Kevin P. Fleming 43cf15e339 add support for per-module version numbers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 18:31:29 +00:00
Kevin P. Fleming 4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:04:58 +00:00
Kevin P. Fleming 1bac31d6bd more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 02:29:18 +00:00
Russell Bryant 4fcf27b681 print out appropriate message when no help text is available for a command
fix a seg fault when astmm is enabled (bug #4356)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-24 10:23:51 +00:00
Mark Spencer 38b7f7b4a4 Add optional call limit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 01:49:13 +00:00
Kevin P. Fleming 0356b70224 add functions to register/unregister multiple CLI commands in a single operation (bug #4255, with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 03:03:48 +00:00
Kevin P. Fleming 8634ef9e4a don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 17:00:33 +00:00
Kevin P. Fleming 199add9567 phase 1 of header include cleanup (bug #4067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 13:11:34 +00:00
Kevin P. Fleming 1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Mark Spencer 730194d609 Merge Russell's formatting patch (bug #3838)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-23 05:56:32 +00:00
Mark Spencer c6cb8f9239 Allow debug to be enabled on a per-file basis...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 04:04:55 +00:00
Mark Spencer 18d9b26cf9 Rework channel structure to eliminate "pvt" portion of channel (bug #3573)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 06:47:24 +00:00
Mark Spencer b6c4282a03 Merge anthm's CDR updates (bug #3595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-23 22:48:47 +00:00
Mark Spencer e414807aaf Allow uptime to be displayed in seconds (bug #3510, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-05 16:49:14 +00:00
Mark Spencer 3f306552dd Fix agent moh issue (bug #3383)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 07:09:56 +00:00
Russell Bryant 0c30452423 update copyright headers for 2005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 07:06:25 +00:00
Mark Spencer 71675d14f9 Fix command completion issue (bug #3257)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4694 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-06 08:11:43 +00:00
Mark Spencer f19f4411e1 Fix additional typos (bug #3162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 07:46:10 +00:00
Mark Spencer a479a033a1 Fix CLI to report "N/A" when appropriate for time, chan_features updates, ALSA and OSS codec fixes (bug #3145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-26 11:08:34 +00:00
Mark Spencer 9d40b8ee80 Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-14 23:36:30 +00:00
Mark Spencer c46e21252c Big diet for struct ast_channel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-07 20:38:43 +00:00
Mark Spencer 53082f28e9 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-21 17:02:04 +00:00
Mark Spencer a71e44bbdc Minor command completion tweak (bug #988 bis)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-18 04:11:51 +00:00
Mark Spencer a53765b55a Fix initialization of CLI (bug #2861)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4284 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 19:28:08 +00:00
Mark Spencer 6cb38ac23a Add features (incomplete, highly experimental), fix DundiLookup app, debug improvements (bug #2800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-06 21:33:01 +00:00
Anthony Minessale II 4f2438acab This patch adds a new api call:
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: https://origsvn.digium.com/svn/asterisk/trunk@4051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-22 20:59:38 +00:00
Mark Spencer 3e5368b763 Provide module command completion (make twisted happy)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 21:14:05 +00:00
Mark Spencer 7c4337dc91 Add option for "show modules like" (bug #2643)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3996 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:38:29 +00:00
Mark Spencer f9bd7c1e9e Handle excessive entries properly (bug #2634)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-14 04:12:05 +00:00
Mark Spencer befaca888d Minor config updates, add module counts (bug #2593)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 18:20:49 +00:00
Mark Spencer b70b531699 Fix small verboseness bugs (bug #2602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-08 04:23:22 +00:00
Mark Spencer 04fc29c8b2 Huge callerid rework (might break H.323, others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 00:58:31 +00:00
Mark Spencer d8aff59a9e Add set debug option, make output for set verbose better (bug #2428)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-13 18:19:15 +00:00
Mark Spencer eb57ea95d6 reload documentation, don't display res in app_test...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 14:02:12 +00:00
Mark Spencer d77ae42896 Display elapsed time in hours/mins/seconds (bug #2365 kinda sorta)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-03 03:44:35 +00:00
Mark Spencer fd7577eed2 Don't try to look offhook with channel banks & Loopstart (bug #2362), also make individual modules reloadable...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-02 20:45:24 +00:00
Mark Spencer ccbc7a6835 Fix a couple minor command line completion issues
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-07 19:27:54 +00:00
Mark Spencer f074b92823 Merge nicolasg's manager/cli patch (bug #2207)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 17:48:18 +00:00