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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Russell Bryant
324f7d150f
formatting fixes (bug #4736 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Kevin P. Fleming
2b8338cb52
more file version tags
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Mark Spencer
38b7f7b4a4
Add optional call limit
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Mark Spencer
d3213d7f47
Fix locking issue (bug #4041 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Russell Bryant
cd0655bf89
formatting fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Mark Spencer
a06c6bf412
Fix ${CALLINGSUBADDR}
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Mark Spencer
2887217560
Fix colon expansion (bug #3572 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
Mark Spencer
ad369fa974
Optimize variable lookups (bug #3541 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4991 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
Russell Bryant
0c30452423
update copyright headers for 2005
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Anthony Minessale II
886ebab04a
fix transfer goto issue
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
b3a0ef24ed
Fix comment issues (bug #3089 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
8f2b687a95
Make realtime pbx understand patterns.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
6b72043074
Add "ImportVar" application
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Mark Spencer
c86ee49fde
Documentation fixup (thanks, drumkilla)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Mark Spencer
dffb2566bc
Big agent / queue fixes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
82cbf28993
Add "Loopback" switch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
996c8e7126
Add autofallthrough mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Anthony Minessale II
255ce93616
add app_forkcdr
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
Mark Spencer
5e0b84633e
Make ${CALLINGPRES} available (bug #2409 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
James Golovich
8d457d07c4
Formatting cleanups
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
f202a8dbb3
Typo / whitespace fixes (bug #2052 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
c9f168ed0f
Add subaddress support (bug #1877 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
Mark Spencer
42ad569376
Commit remaining changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
Mark Spencer
9cb185e126
Add "Progress" application
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
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
21 years ago
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
21 years ago
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
21 years ago
James Golovich
7baf86bc8b
Fix comment in pbx.c
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago