Commit Graph

425 Commits

Author SHA1 Message Date
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming 49ade5ed71 slightly clear argument processing
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 17:19:55 +00:00
Kevin P. Fleming cabcfd8921 check call limit in ast_pbx_start(), instead of waiting until background thread has been launched (needed for issue #5131)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-13 21:59:45 +00:00
Kevin P. Fleming 1e854ea773 remove useless buffer initializations (issue #5134)
convert pbx_dundi to use ast_copy_string) (issue #5134)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 21:01:31 +00:00
Kevin P. Fleming 04ebc9b7db remove unused header and old comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-02 18:07:26 +00:00
Kevin P. Fleming d10c2c7ee7 don't unlock a channel we didn't lock
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 20:15:58 +00:00
Kevin P. Fleming 388e8bd9a8 massive upgrade to SUBSCRIBE, device state and messaging support (issue #3644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 23:53:29 +00:00
Kevin P. Fleming 0f03a734b1 don't make expression evaluator allocate a memory buffer for each result
to
be returned; use the buffers already present in the PBX for this purpose
update testexpr2/check_expr to allocate buffers for expression
evaluation


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6440 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 22:03:37 +00:00
Kevin P. Fleming 99929b21e4 preserve hint watchers and laststate across 'extensions reload' (issue #2522)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-27 23:55:14 +00:00
Kevin P. Fleming 26ea6ea391 add count to 'show functions' CLI command (issue #4991)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 18:47:19 +00:00
Russell Bryant 6e9eaaf217 fix execiftime and include some code cleanup while we're at it (bug #4380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-19 07:12:53 +00:00
Josh Roberson ccb3b5d1d4 Fix misspelling of "Launching" in pbx.c (Bug #<4964)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 01:56:40 +00:00
Russell Bryant 324f7d150f formatting fixes (bug #4736)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 15:54:17 +00:00
Russell Bryant a9c7f50a09 Allow manager originate to specifiy more than one variable to be set.
Allow manager originate and spool files to set writable dialplan functions,
including those that use the pipe symbol to seperate arguments.
Allow CDR dialplan function to be able to set the account code and userfield.
This deprecates the use of the Account header in manager originate and spool
files, as well as the SetAccount and SetCDRUserField applications.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:24:51 +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
Kevin P. Fleming 7dfba67f7d ensure that channels that are busy/congested are marked AST_STATE_BUSY (bug #4706)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:02:37 +00:00
Kevin P. Fleming 97671a2b05 add 'exit context' and 'only stop on match' options to Background app (bug #4511)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:34:06 +00:00
Russell Bryant 4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:49:57 +00:00
Kevin P. Fleming c13d601fb4 queue device state changes and handle them serially in a background thread
optimize device state related functions
add ast_get_channel_by_name_prefix to allow searching for matching channels in O(1) operation


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08 21:14:34 +00:00
Kevin P. Fleming 11ea6fe59f use ast_build_string() to build strings into buffers, and general cleanup of variable serializing functions used by 'show channel' (bug #4558)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 23:37:01 +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 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
Kevin P. Fleming 723d6b5be8 more ast_copy_string() conversion
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 16:32:16 +00:00
Kevin P. Fleming b972421945 don't try to copy NULL appdata (bug #4422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 16:08:44 +00:00
Kevin P. Fleming 7a2d5cbb3e make ast_waitstream_* return value compatible with platforms that use unsigned char by default (bug #4455)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 15:04:43 +00:00
Kevin P. Fleming fdbb400a0b use ast_cli_register_multiple() for pbx CLI commands
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 03:09:20 +00:00
Kevin P. Fleming db402ee5d6 allow ast_add_extension2 to accept a NULL destructor (bug #4411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 02:21:07 +00:00
Kevin P. Fleming 23472dd2c0 support configurable batch posting of CDRs (off by default) (bug #3883)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 01:42:31 +00:00
Russell Bryant 2cd9d4c676 fix return value for ExecIfTime when time is outside of the specified range (bug #4380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-26 15:50:50 +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 9cea81b035 rename SetVar application to Set, deprecate SetVar
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:32:38 +00:00
Kevin P. Fleming fa60672d58 add dialplan functions for Caller ID, language and timeouts (bug #4219, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 17:45:30 +00:00
Russell Bryant 15623c07d1 clarify docs on ImportVar (that's for you, mog :p)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-14 00:36:55 +00:00
Mark Spencer fa2381c19c Fix formatting of functions (bug #4196, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:10:58 +00:00
Mark Spencer 087eb40b76 Fix double unlock of hintlock (bug #4205)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 16:54:53 +00:00
Anthony Minessale II 6b7677e842 expose function execution routines and warn about trying to set a read-only cdr var
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 15:07:49 +00:00
Kevin P. Fleming 4d2537ae11 major re-work of dialplan functions, including:
- locking of functions list during registration/unregistration/searching
 - rename of function description structure to be consistent with the rest of the API
 - addition of 'desc' element to description structure, for detailed description (like applications)
 - addition of 'show function' CLI command to show function details
 - conversion of existing functions to use uppercase names to match policy
 - creation of new 'pbx_functions.so' module to contain standard 'builtin' functions
 - removal of all builtin functions from pbx.c and apps and placement into new 'funcs' directory


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:39:33 +00:00
Kevin P. Fleming a0f2a2e7c4 remove hardcoded CDR() support from pbx_builtin_setvar_helper in favor of already-implemented CDR() function
make SetVar() options actually work as documented
remove SetVar() 'c' and 'r' options, since the CDR() function can provide this functionality
add 'r' option to CDR() function to control recursive retrieval/storage
(inspired by bug #4143, but without the SetVar syntax changes)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 15:56:44 +00:00
Kevin P. Fleming b9bda6aa41 add MD5 and CHECK_MD5 functions, deprecate MD5 and MD5Check apps (bug #4123)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-04 04:05:34 +00:00
Kevin P. Fleming 8c087b7d73 make verbosity of function registration match apps/manager events/etc.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 23:09:28 +00:00
Kevin P. Fleming b1826af735 add SIP_HEADER function, mark SIPGetHeader app deprecated (will be removed on 2005-05-31)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-01 18:37:37 +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 bced63033d make 'goto' APIs aware of auto-processing loops, so they know exactly when to set the requested priority or one priority lower
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-29 15:04:26 +00:00
Kevin P. Fleming fefe2e8b4f protect ResponseTimeout and DigitTimeout apps from crashing when called in non-PBX channels (bug #4078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 02:48:25 +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 06de953fbc add ability to send transferring party to a dialplan target after they blind transfer another party (bug #4056, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22 02:55:14 +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
Kevin P. Fleming 6d05d785be correct default language setting for Background() app (bug #4044)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 16:11:16 +00:00
Mark Spencer f933db8c24 Fix docs for digit/response timeout to mention default values (bug #4050)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-20 14:40:47 +00:00
Mark Spencer d3213d7f47 Fix locking issue (bug #4041)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-17 03:44:19 +00:00
Mark Spencer 4b7e548d92 Add MusicOnHold to waitexten, update Background to use newstyle options (bug #4000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-15 05:47:40 +00:00
Russell Bryant 7bffc0459c add missing newlines, fix misspelling of nonexistent (bug #4027)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13 23:33:47 +00:00
Kevin P. Fleming 7e3e619497 further thought says '!' is a better early-match wildcard (bug #3889, take 2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 22:24:17 +00:00
Kevin P. Fleming ee9c852b4d add 'early-match' wildcard for extension patterns (bug #3889)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-03 21:32:33 +00:00
Kevin P. Fleming 0403510bbd Fix up formatting and a few typos/poor grammar in pbx.c (bug #3924)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5347 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:56:35 +00:00
Kevin P. Fleming 793040a782 revert previous commit... was the wrong fix (my first oops)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:39:58 +00:00
Kevin P. Fleming 3cc8b20876 ensure that variables supplied to ast_pbx_outgoing_exten are applied to the channel even in 'sync' mode (bug #3922, for HEAD only)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-01 19:24:29 +00:00
Mark Spencer b02fd7a66d Make sure ExecIf stuff returns properly (bug #3864)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:18:58 +00:00
Mark Spencer eb91006b7c Allow functions to be written to (bug #2278, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:16:49 +00:00
Russell Bryant cd0655bf89 formatting fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 21:01:59 +00:00
Mark Spencer 6546acebfb Add comments for hints (bug #3783)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 21:05:10 +00:00
Mark Spencer 0b23f4a6a7 Merge builtin If function (bug #3779)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 20:20:37 +00:00
Mark Spencer 5e8a912baf Fix serious typo (code segment was only enabled with verbose!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5178 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-14 05:51:20 +00:00
Mark Spencer d42e070073 Unbreak expression handling from addition of function variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-05 05:21:45 +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 fba0b595ab Add registerable functional variables (bug #3636, with doc mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5136 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-04 06:36:18 +00:00
Mark Spencer 233e26b112 Fix SetVar (bug #3668) and g + transfer (#3650)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-26 03:57:10 +00:00
Mark Spencer 5a9f337de0 Add execiftime, remove duplicate agent logoff CLI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-25 00:25:28 +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 56e13139d4 Add "show hints" to CLI (bug #3631)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-21 06:31:01 +00:00
Mark Spencer a06c6bf412 Fix ${CALLINGSUBADDR}
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-17 19:41:23 +00:00
Mark Spencer 2887217560 Fix colon expansion (bug #3572)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-13 20:57:52 +00:00
Mark Spencer 3ed0a01068 Fix (in an admittedly icky way) the CALL variable broken issues (bug #3549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-10 16:38:39 +00:00
Mark Spencer ad369fa974 Optimize variable lookups (bug #3541)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-09 21:10:41 +00:00
Mark Spencer ab0566923b Include uniqueid in response for ManagerOriginate stuff (bug #3439)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-02 02:54:15 +00:00
Mark Spencer 6ed8f15260 Allow hints to have names (bug #3471)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-02-01 01:53:25 +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 278a0a0891 Implement eswitch for evalulating variables at runtime (bug #3168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-13 05:14:56 +00:00
Mark Spencer 74deb4f9e0 Restore functionality of "show dialplan" with no arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-12 16:28:25 +00:00
Mark Spencer ca4c644403 Improve show dialplan support to support patterns and also to select contexts (bug #3230)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 20:28:47 +00:00
Mark Spencer 7abe9e6c16 List improvements from kpfleming (bugs #3166,#3140)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-01 21:26:37 +00:00
Mark Spencer 658000cc9a Increase max stack size for context searches (bug #3182)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4617 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 00:37:55 +00:00
Mark Spencer ccead56701 Log execution stack if option_debug is enabled (bug #3177)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4598 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 23:40:54 +00:00
Mark Spencer ed18567073 Allow Answer(delay) to create delay after answering (bug #3160)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-29 12:49:35 +00:00
Mark Spencer eda2d325b7 Fix pbx.c to be able to display hints (bug #3074)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 22:52:40 +00:00
Anthony Minessale II 886ebab04a fix transfer goto issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 20:31:37 +00:00
Mark Spencer cecda3fb67 Speed up ast_list macros (bug #3135)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 15:11:46 +00:00
Mark Spencer 3fde2e56b8 Fix AGI to know about "builtin" variables, too (bug #2737)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 02:47:01 +00:00
Mark Spencer 374c9c1789 SMS fix, pbx optimization (bug #3098)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-19 17:16:39 +00:00
Mark Spencer b3a0ef24ed Fix comment issues (bug #3089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 22:04:07 +00:00
Mark Spencer 343ef16d4f Make sure context is passed properly on _exec (bug #2969)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 03:50:19 +00:00
Russell Bryant 9470de1b49 Show some counters with 'show dialplan' (bug #2968)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-11 03:08:12 +00:00
Anthony Minessale II 8708f19e39 fix bug 2994 (off by 1 error)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-08 18:24:04 +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
Anthony Minessale II 3253f72193 fix small goto logic issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-02 18:08:11 +00:00
Mark Spencer 4a42b24900 Print number of applications (bug #2961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-01 01:28:07 +00:00
Mark Spencer 8c42a49ec8 Merge tony's ampersand patch (bug #2934)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-25 02:57:34 +00:00
Mark Spencer 8f2b687a95 Make realtime pbx understand patterns.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-24 03:07:08 +00:00
Anthony Minessale II 2a1bf5efd9 fix inherited softhangup issue in ast_goto_if_exists()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-23 20:25:02 +00:00
Mark Spencer d456e6ba54 Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:40:06 +00:00
Mark Spencer d7da317979 Add improved macro functionality (bug #2905)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-22 22:11:10 +00:00
Mark Spencer 066d22ae0d Add incremental/decremental priorities (bug #2906)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4292 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-19 05:18:10 +00:00
Mark Spencer 6b72043074 Add "ImportVar" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:48:58 +00:00
Mark Spencer c86ee49fde Documentation fixup (thanks, drumkilla)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 03:13:05 +00:00
Mark Spencer dffb2566bc Big agent / queue fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-13 22:44:33 +00:00
Mark Spencer d5c7dd696e Allow dashes in extensions (bug #2835)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-12 02:54:17 +00:00
Mark Spencer c5c331ab15 Make timing stuff generic (bug #2839)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-11 21:23:45 +00:00
Mark Spencer 668001f9c8 Make channel variables inheritable by _ (bug #928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-01 02:23:28 +00:00
Anthony Minessale II 827df5e987 even more paranoid serialize code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 02:26:17 +00:00
Anthony Minessale II 5e5c478934 add more paranoid handling to pbx_builtin_serialize_variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-27 01:34:06 +00:00
Mark Spencer 82cbf28993 Add "Loopback" switch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-24 02:53:24 +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 12e2fe4d94 Thread fixes, vm fix (bug #2665)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4030 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 22:13:05 +00:00
Mark Spencer 996c8e7126 Add autofallthrough mode
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-16 19:46:02 +00:00
Mark Spencer 94ba880548 Generate CDR's for failed outbound spool
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-15 17:51:37 +00:00
James Golovich 8b8d26f9bc Fix pbx_builtin_setlanguage to not seg when data is a NULL ptr. Also fix AGI so we dont run into this with other specific problems as well. (bug 2641)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-13 22:47:42 +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 b4142e0cd2 Allow you to use labels with + to be nice to Tilghman.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 16:15:44 +00:00
Mark Spencer fce17976e9 Major PBX revamps (including labels, update examples)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-03 04:19:59 +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
Anthony Minessale II 255ce93616 add app_forkcdr
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-24 21:33:48 +00:00
Mark Spencer 238b9d24c6 Make sure patterns are always last (bug #2435)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-14 22:35:53 +00:00
Mark Spencer 5e0b84633e Make ${CALLINGPRES} available (bug #2409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 20:05:57 +00:00
Mark Spencer 9e96cb612b Fix GotoIf logging level (bug #2396)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-09 13:00:21 +00:00
James Golovich 8d457d07c4 Formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:51:20 +00:00
Mark Spencer 3454b5927f Make background support a language override (bug #2378)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-07 14:37:35 +00:00
Mark Spencer 082f628401 Slightly more verbose detail on PBX startup (bug #2339)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-01 18:29:43 +00:00
Mark Spencer c7541bd672 Merge "show applications" from corydon76 (bug #2291)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-27 04:21:09 +00:00
Mark Spencer de3528f0be Save CID and switches in "save dialplan" command (bug #2279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-21 18:55:39 +00:00
Mark Spencer d0ab0358aa Fix small memory leak... (bug #2277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-21 18:49:52 +00:00
Mark Spencer 7acee329e1 Merge BSD stack size work (bug #2067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 17:15:02 +00:00
Mark Spencer f3522b6c01 Plane commits (a.k.a. the Delta deltas): 1) Make muted reconnect 2) Add "X" option to meetme and add ${MEETME_EXIT_CONTEXT}, 3) Allow SIP call parking with supervised transfer, 4) Only create parking entries when calls actually get parked, 5) Add "sunshine" song, 6) Update hardware documentation, 7) Don't load empty strings from history file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-03 06:31:20 +00:00
Malcolm Davenport a322c6f411 chan_h323 Makefile change for Bug #2064. Also back out changes for Bug #2115..next time read carefully. :)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:57:37 +00:00
Malcolm Davenport 9b0b4bf041 Bug # 2115: Allow Caller TON to be retrieved in the dialplan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-30 18:21:54 +00:00
Mark Spencer d3499da6fd Merge tilghman's app/appdata in newexten patch (bug #2104)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-24 02:26:07 +00:00
Mark Spencer daf76979ca Add options to background (bug #2075) and update documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3474 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-19 00:30:39 +00:00
Mark Spencer f202a8dbb3 Typo / whitespace fixes (bug #2052)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 02:25:53 +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
Mark Spencer 7c97de2611 Give Busy() and Congestion() an optional timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-09 08:32:09 +00:00
Anthony Minessale II b1d9a040d4 bring justice to gotoif's always true bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-01 20:42:49 +00:00
Mark Spencer eb6b35b75f Display invalid extension when there is one, fix minor OSP typo, Don't send 200 OK after 403 Forbidden on SUBSCRIBE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-29 13:52:03 +00:00
Jeremy McNamara 6f0a7f7a15 Add new built-in app 'SetAMAFlags'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-28 03:48:53 +00:00
Mark Spencer c9f168ed0f Add subaddress support (bug #1877)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 19:33:27 +00:00
Mark Spencer e6de64a5a9 Cleanup handling of complex expressions (bug #1919)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 18:23:26 +00:00
Mark Spencer 42ad569376 Commit remaining changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-25 04:07:52 +00:00
Mark Spencer 27bb1601d3 Generate "failed" context on busy, too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-23 20:46:58 +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 9cb185e126 Add "Progress" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-22 03:51:34 +00:00
Mark Spencer d208532e6e x86-64 compile fixes and cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-13 21:25:10 +00:00
Mark Spencer a3355d9fe2 Add "LOW_MEMORY" option and increase some buffer sizes (bug #1827)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-06-12 14:34:15 +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 7baf86bc8b Fix comment in pbx.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-26 19:24:47 +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
James Golovich 4b56cf02f0 Fix compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 21:15:37 +00:00
James Golovich 668f8161ab Make variables work in manager originate again
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-17 21:10:26 +00:00
James Golovich 3e3642433b Code formatting fixes in pbx.c (still more todo)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-09 07:19:00 +00:00
James Golovich 9bb1b64d48 Change strlen calls to ast_strlen_zero in pbx.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-04 06:34:34 +00:00
Mark Spencer 73b389da6c Add SayPhonetic and SayAlpha applications (bug #793)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-05-03 00:54:16 +00:00
Mark Spencer 5192a1a054 Add support for French, Danish, Portuguese, Spanish, Italian, and Dutch numbers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-29 02:30:14 +00:00
Mark Spencer ce44c6ec41 More select/poll updates for various applications
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-26 03:02:49 +00:00
Mark Spencer e30e0c5135 Use ast_strdupa instead of strdup in goto (bug #1465)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-22 00:27:48 +00:00
Mark Spencer 8a7f4bcd7a Hold the lock properly on async goto now that we have recursive mutex support.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-19 23:00:50 +00:00
James Golovich 295ce9fc8d Make extension matching non case sensitive. So 'T' and 't' are
different extensions (bug 1327)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-18 05:50:55 +00:00
Mark Spencer 13bca43aa8 Get rid of all that old needlock garbage now that we're using recursive mutexes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 22:17:32 +00:00
Mark Spencer 852422f4ab Add "WaitExten" application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-06 04:14:19 +00:00
Mark Spencer ef1f39d29e Save appl and data around exec (bug #1301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-04 21:30:24 +00:00
Mark Spencer a925c1b306 Update security document, work on threading with pbx.c and small SIP fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-04-02 07:24:33 +00:00
Mark Spencer 61d1fd9a0e Make FAX enableable/disablabable, fix async goto support properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-24 05:01:44 +00:00
Mark Spencer ce9e964c5f Fix LEN segfault (bug #1228)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-19 06:36:25 +00:00
James Golovich 146469ab19 Allow multiple switches in the same context (bug #1171)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-06 20:15:08 +00:00
James Golovich d97cc460b0 Fix pbx_builtin_atimeout comment
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-05 23:42:58 +00:00
James Golovich a51ca42b18 Make the Wait application accept time with fractions of a second
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 21:45:21 +00:00
Mark Spencer 550785ba29 Fix GotoIfTime if time is bad
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-03-04 05:23:50 +00:00
Malcolm Davenport 3439c08170 Fix Bug # 981
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-26 17:29:49 +00:00
James Golovich a23c89dd75 Fix some comments in pbx.c and pbx_config.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 05:37:24 +00:00
James Golovich c278f09897 Fix ast_add_extension2 updating ast_exten correctly in certain cases
where extensions.conf is not ordered numerically by priority (bug #1065)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-23 02:47:22 +00:00
James Golovich d03dbf91a6 Add ${LANGUAGE} channel variable (bug #1078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-22 05:25:58 +00:00
Mark Spencer bac2215fb6 Fix several memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-11 03:54:28 +00:00
Mark Spencer 28d980de3d Force update of the CDR before clearing channel (bug #974)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-02-02 01:13:00 +00:00
Mark Spencer 0cadef62c1 Stop searching once we find a match
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-31 17:00:24 +00:00
Jeremy McNamara 8a8b2d0684 Make output more readable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-15 23:06:51 +00:00
Jeremy McNamara dade45942c temp fix for timed includes and GotoIfTime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-13 07:48:39 +00:00
Jeremy McNamara 4042e0f832 Out of memory conditions should be errors, not warnings. Bug #670
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-01-11 09:19:16 +00:00
Mark Spencer 4468124abd Add ${TIMESTAMP} (bug #607) and don't ever ast_log from within handler
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-12-01 02:47:19 +00:00
Jeremy McNamara 541568fbb6 deal with accountcode correctly and update CDR on a goto
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-24 03:43:14 +00:00
Mark Spencer bfb27d0836 Make CALLTYPE available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1776 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-21 18:38:42 +00:00
Mark Spencer 64c02a2174 Make ${ACCOUNTCODE} available and document (bug #459)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-13 20:42:17 +00:00
Martin Pycko 4d5b31e943 Fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-11-04 00:16:01 +00:00
Mark Spencer 6e445e39a1 Make sure variables exists (bug #409)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-26 23:08:21 +00:00
Mark Spencer bc7b8ef41e Make HANGUPCAUSE accessible
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1669 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-25 18:00:00 +00:00
Mark Spencer 4d0e046a06 Verify includes, and give warnings if invalid (bug #429)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-25 17:50:06 +00:00
Mark Spencer 765bc4a66c Create outgoing threads detached (bug #391)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-23 03:55:58 +00:00
Mark Spencer 285d3a4497 Update setlanguage documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-06 00:41:43 +00:00
Martin Pycko b239d0de27 Pass accountcode to outgoing spool call when originated with Context&Extension&Priority
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-10-01 21:01:31 +00:00
Jeremy McNamara b64094d528 use timeout value insted of 0. Bug #286
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-30 02:46:52 +00:00
Mark Spencer 249eef49d6 Move to asprintf (bug #252)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-27 02:22:18 +00:00
Martin Pycko c545cd3cf7 Create better 'failed' CDRs for outgoing spool calls with context,extension,priority
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-22 15:27:09 +00:00
Martin Pycko a2ee614628 Fix getting ${UNIQUEID} value
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-20 00:34:03 +00:00
Mark Spencer a4c9fa34d9 Revert bug 176 patch entirely
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2003-09-14 00:32:51 +00:00