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
James Golovich
fa0ca01ffe
Minor formatting fix from code audit in cli.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 14:53:24 +00:00
Mark Spencer
8ed49644a6
Remaining rgagnon source audit improvements (bug #2011 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3430 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-14 07:44:19 +00:00
Malcolm Davenport
c5e44cc3cb
Bug # 1973: Change write to ast_carefulwrite
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-08 19:41:34 +00:00
James Golovich
8801247d76
Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3276 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 18:49:00 +00:00
Mark Spencer
5546e32355
Merge major BSD mutex and symbol conflict patches (bug #1816 ) (link patch still pending)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 17:42:14 +00:00
Mark Spencer
bad7cc9c14
Add "show channels concise" for machine readable format
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3187 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-11 00:18:30 +00:00
Mark Spencer
727abcdec7
Merge FreeBSD locking fixes (bug #1411 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-09 01:45:08 +00:00
James Golovich
fa9a8d158a
Hopefully last ast_strlen_zero fix in cli.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-28 19:23:30 +00:00
Mark Spencer
6195dd35e0
Make ast_channel_walk become ast_channel_walk_locked
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-20 16:30:10 +00:00
Anthony Minessale II
960c01e4c6
Patch Submitted by BKW on 5/10/2004 to chan_sip.c
...
Fixing 'show help' inefficency.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-10 18:45:20 +00:00
James Golovich
6f9829fa5e
Use ast_strlen_zero in cli.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2909 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-06 20:49:24 +00:00
James Golovich
0f2bcccaba
Free some cli memory
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-08 05:28:53 +00:00
James Golovich
8cfed866d3
Remove size restiction on remote console command completion (bug 1360)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 07:42:01 +00:00
James Golovich
51f004494a
Make sure time is valid for uptime (bug 1214)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-14 09:11:32 +00:00
James Golovich
fa4ed416c7
Fix comment in cli.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-06 09:01:08 +00:00
James Golovich
509e9a4d4e
Fix 'show channel<tab>' completion, where show channel would be
...
autocompleted instead of displaying channel and channels. Also update
comment to reflect that items in the list should have longest matches
first.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 09:07:00 +00:00
James Golovich
4b26ec2372
Fix command completion (bug #988 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-15 05:19:44 +00:00
Jeremy McNamara
c6fb650a62
another nickpick on formatting
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-16 01:24:00 +00:00
Jeremy McNamara
94fe1c8b26
Nitpic CLI output. Bug #858
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2041 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 22:56:53 +00:00
Mark Spencer
4518e7d1f0
Revert bad patch in 187
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-03 04:55:55 +00:00
Mark Spencer
8f276e00c5
Minor patch for improving console response with asterisk -r (bug #183 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-03 03:03:15 +00:00
Mark Spencer
d48b05d8ab
Back out "leak" fixes, as it causes segfaults
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-09 20:31:54 +00:00
Mark Spencer
9f110a3b81
CLI memory leak patch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-09 19:33:39 +00:00
Mark Spencer
d9d8746b06
Bah, it needs the free apparently
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-22 04:03:15 +00:00
Mark Spencer
ada63fbb4f
Switch to vasprintf (big #398 ) dropping bogus free()
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-22 03:52:56 +00:00
Mark Spencer
55e664cb00
Fix various compiler warnings (bug #322 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-27 02:45:37 +00:00
Mark Spencer
1bb58646de
Totally revamp thread debugging to support locating and removing deadlocks
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1310 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-08-13 15:25:16 +00:00
Mark Spencer
f945ae2122
Minor cleanups
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-06-27 23:02:52 +00:00
Mark Spencer
047bc4bd88
Add unique identifier
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-30 04:41:18 +00:00
Mark Spencer
fba6a02260
Show uptime
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-05-02 15:37:34 +00:00
Mark Spencer
0e451c786e
Little revert on some CLI stuff
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-04-30 19:04:00 +00:00
Mark Spencer
e4c20dbe87
Minor CLI fix
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-04-29 05:32:37 +00:00
Mark Spencer
43604eb770
Implement call pickup on SIP, override context if appropriate
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-04-09 04:00:43 +00:00