russell
0e2d8be747
use arg parsing macros for WaitExten and Background (issue #6185 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8687 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-25 20:02:12 +00:00
russell
dca33b72ed
prevent writing outside of the provided workspace when calculating a
...
substring (issue #6271 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 02:10:19 +00:00
russell
8234cfd106
const-ify some fields in the ast_exten and ast_include structures (issue #6270 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 23:05:19 +00:00
russell
252fb982f4
on this pass, only remove duplicate log messages
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell
b79bdab5cc
finish reverting my pass through the tree to remove checks of the result of
...
ast_strdupa, this one is revision 8362
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8401 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:20:06 +00:00
russell
708a7ca40e
remove some useless checks after calls to ast_strdupa
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8362 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 00:42:25 +00:00
russell
c6643537f1
constify arguments in more places where strings should not be modified (issue #6286 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 22:17:31 +00:00
kpfleming
8723f63be1
remove some more deprecated (pre-1.2) stuff
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8157 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 23:45:05 +00:00
bweschke
6073eedd56
Another patch against this code (the right one now) to deal with cyclic ranges. #6230
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8059 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 17:35:12 +00:00
bweschke
e0da756966
Range should be inclusive, not exclusive, of the end of the range.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 16:01:40 +00:00
markster
53989b527e
Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:34:10 +00:00
markster
b66a895eaf
Merge rizzo's range optimizations (bug #6101 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:27:38 +00:00
russell
34a9d0f729
fix locking bug - lock instead of unlock (see commit to r7960 to branches/1.2)
...
store hint list using linked list macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7962 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 04:31:59 +00:00
tilghman
67ab12eba8
Bug 6099 - cleanup of parse_variable_name and pbx_retrieve_variable
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7911 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09 21:22:36 +00:00
kpfleming
b3aeb7784d
add memory-pool based string field management for structures
...
convert chan_sip sip_pvt and sip_registry structures to use string fields
add 'const' qualifiers to a few API calls that don't modify their input strings
add an asprintf() wrapper to astmm
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7797 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04 21:54:09 +00:00
kpfleming
385d29ad6f
update copyright headers for files changed this year
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7751 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03 22:16:23 +00:00
russell
5ec5256d82
clean up some loops and replace some duplicate code with a for loop (issue #6100 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7693 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-01 17:50:37 +00:00
russell
ab6566173e
update doxygen docs to specify authors
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
russell
e5eef15690
minor cleanups for another cli completion function ...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7661 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27 20:03:07 +00:00
russell
64632fcfa8
avoid duplicate strlen calls for the command completion functions for
...
'show application' and 'show applications'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7660 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27 19:59:09 +00:00
russell
22e42951e0
- normalize some loops
...
- simplify and reduce code by keeping track of return value
- replace some simple if/then sections with conditional expressions
(issue #6065 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7639 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26 21:38:50 +00:00
tilghman
b759554372
Bug 6057 - Deprecate builtins that have been replaced by functions
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7633 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26 16:48:12 +00:00
russell
470cfa71c8
minor cleanups ...
...
- use for loops instead of while loops for basic list traversals
- only calculate word length one time in CLI complete functions
- use calloc instead of malloc + memset
- remove some unnecessary casts
- formatting tweaks
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7618 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-24 06:23:36 +00:00
tilghman
1b08c58c31
Alphabetize the functions list
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7615 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-23 22:47:26 +00:00
kpfleming
7c789eb820
Merged revisions 7448-7449,7451,7453 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7448 | kpfleming | 2005-12-12 22:25:14 -0600 (Mon, 12 Dec 2005) | 2 lines
use the stream's current point when pausing/unpausing, instead of elapsed time (which doesn't work when the stream has been skipped forward or backward) (issue #5897 )
........
r7449 | kpfleming | 2005-12-12 22:43:38 -0600 (Mon, 12 Dec 2005) | 2 lines
only report AGENT_IDLE for callback mode agents when they are actually idle (issue #5902 )
........
r7451 | kpfleming | 2005-12-12 23:14:27 -0600 (Mon, 12 Dec 2005) | 2 lines
ensure that hangups while incoming calls are in early state are handled properly (issue #5919 )
........
r7453 | kpfleming | 2005-12-12 23:53:00 -0600 (Mon, 12 Dec 2005) | 2 lines
restore ability of caller to hangup calls that are still ringing (issue #5839 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7457 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13 06:00:17 +00:00
kpfleming
2fac57f45a
Merged revisions 7386 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7386 | kpfleming | 2005-12-07 19:05:43 -0600 (Wed, 07 Dec 2005) | 2 lines
initialize the buffer before using it...
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7387 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-08 01:06:09 +00:00
kpfleming
06d238bd07
Merged revisions 7382 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7382 | kpfleming | 2005-12-07 14:46:55 -0600 (Wed, 07 Dec 2005) | 2 lines
ensure that hints are allowed to use global variable references
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7383 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-07 20:47:59 +00:00
russell
70ab5bd048
This is the first round of removing applications that were marked as deprecated
...
in the 1.2 release. They are being removed from the trunk and will not be in
the next major release. The following is a list of the applications that are
being removed in this commit:
Curl, Cut, Sort, DBPut, DBGet, ENUMLookup, Eval
GetGroupCount, SetGroup, CheckGroup, GetGroupMatchCount
MD5, MD5Check, Math, SetCIDName, SetCIDNum, SetRDNIS, SetCallerID
TXTCIDName, AbsoluteTimeout, DigitTimeout, ResponseTimeout, SetAccount
SetLanguage, SetVar (renamed to Set)
These changes also include moving the "group show channels" cli command from
app_groupcount.c to cli.c.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7379 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-07 15:36:55 +00:00
russell
79a7c34a35
add support for 'show functions like <text>' (issue #5923 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7339 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-05 00:39:15 +00:00
tilghman
3365b1cc9f
Bug 5858 - Make the chanvars.c functions return a 'const char *'
...
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-03 19:25:33 +00:00
kpfleming
907b53f827
Merged revisions 7265-7266,7268-7275 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r7265 | oej | 2005-12-01 17:18:14 -0600 (Thu, 01 Dec 2005) | 2 lines
Changing bug report address to the Asterisk issue tracker
........
r7266 | kpfleming | 2005-12-01 17:18:29 -0600 (Thu, 01 Dec 2005) | 3 lines
Makefile 'update' target now supports updating from Subversion repositories (issue #5875 )
remove support for 'patches' subdirectory, it's no longer useful
........
r7268 | kpfleming | 2005-12-01 17:34:58 -0600 (Thu, 01 Dec 2005) | 2 lines
ensure channel's scheduling context is freed (issue #5788 )
........
r7269 | kpfleming | 2005-12-01 17:49:44 -0600 (Thu, 01 Dec 2005) | 2 lines
don't block waiting for the Festival server forever when it goes away (issue #5882 )
........
r7270 | kpfleming | 2005-12-01 18:26:12 -0600 (Thu, 01 Dec 2005) | 2 lines
allow variables to exist on both 'halves' of the Local channel (issue #5810 )
........
r7271 | kpfleming | 2005-12-01 18:28:48 -0600 (Thu, 01 Dec 2005) | 2 lines
protect agent_bridgedchannel() from segfaulting when there is no bridged channel (issue #5879 )
........
r7272 | kpfleming | 2005-12-01 18:39:00 -0600 (Thu, 01 Dec 2005) | 3 lines
properly handle password changes when mailbox is last line of config file and not followed by a newline (issue #5870 )
reformat password changing code to conform to coding guidelines (issue #5870 )
........
r7273 | kpfleming | 2005-12-01 18:42:40 -0600 (Thu, 01 Dec 2005) | 2 lines
allow previous context-searching behavior to be used if desired (issue #5899 )
........
r7274 | kpfleming | 2005-12-01 18:51:15 -0600 (Thu, 01 Dec 2005) | 2 lines
inherit channel variables into channels created by Page() application (issue #5888 )
........
r7275 | oej | 2005-12-01 18:52:13 -0600 (Thu, 01 Dec 2005) | 2 lines
Bug #5907 . Improve SIP INFO DTMF debugging output. (1.2 & Trunk)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7276 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-02 01:01:11 +00:00
kpfleming
24c1e3c222
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29 18:24:39 +00:00
markster
be1ababe30
Fix hint case sensitivity (bug #5856 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7197 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-25 19:52:30 +00:00
russell
3435044aad
issue #5805
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7160 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-21 01:39:26 +00:00
russell
8acbf04043
finish merging doxygen updates from issue #5605
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14 19:00:38 +00:00
kpfleming
af00d08aa1
issue #5673
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7062 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11 00:32:45 +00:00
russell
4221e76950
clean up descriptions for built-in applications
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7046 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-09 21:48:59 +00:00
kpfleming
ec5c12e2d6
issue #5664
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7039 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-09 01:51:46 +00:00
kpfleming
007af44e56
issue #2720
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7034 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 23:37:53 +00:00
kpfleming
ccc2fc8a31
issue #5569 minus lock.h changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:13:19 +00:00
kpfleming
82616a4d97
issue #5583
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7010 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 01:50:35 +00:00
russell
28eb6d3482
Convert some built-in applications to use new args parsing macros.
...
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6987 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06 21:00:35 +00:00
kpfleming
ae35e4e069
major update to arg/option parsing APIs and documentation
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6953 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03 21:19:11 +00:00
kpfleming
3b5ed22f12
fix various bugs related to list handling of channel variables (issue #5548 )
...
use nolock lists for channel variables, since no locks are needed (these lists are either temporary or protected by the channel's own lock)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6900 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31 15:34:11 +00:00
russell
4cc87ee6e1
clean up a lot of doxygen errors and warnings (issue #5522 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 23:11:36 +00:00
russell
1168964aa4
change ast_strlen_zero to also check for the string to be defined
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 18:54:24 +00:00
russell
bb65d2e30a
more doxygenification (issue #5513 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 13:03:17 +00:00
markster
02fb8bca83
Allow limitation by loadavg not just calls (should be BSD friendly)...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6850 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 03:58:32 +00:00
russell
2c3b3edc86
Doxygen documentation update from oej (issue #5505 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24 20:12:06 +00:00
markster
add0106fc4
The amazing disappearing and reappearing patch... This time with documentation explaining it.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6821 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 19:16:13 +00:00