Commit graph

1382 commits

Author SHA1 Message Date
Russell Bryant
4aa7912057 Massive cleanups to applications for LOCAL_USER handling and some other things.
In general, LOCAL_USER_ADD/REMOVE should be the first/last thing called in an
application.  An exception is if there is some *fast* setup code that might
halt the execution of the application, such as checking to see if an argument
exists.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-19 18:19:02 +00:00
Russell Bryant
29829640bf it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 22:52:21 +00:00
Mark Spencer
dbdd193e12 Fix segfault in app queue when no cdr exists for the calling channel (bug #5462)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 20:58:16 +00:00
Mark Spencer
e634c61ef8 Small paging fixups (bug #5460)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 17:44:52 +00:00
Mark Spencer
50d20994f8 Fix off-by-one issue with sort (bug #5459)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 16:48:19 +00:00
Josh Roberson
82d7020516 Don't only accept AST_DEVICE_UNKNOWN when we're trying to determine if the device is in use. (Bug # 5338)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 03:29:12 +00:00
Russell Bryant
b59ab89e1a implement TXTCIDNAME as a dialplan function and mark the application deprecated
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 03:02:06 +00:00
Russell Bryant
ff34fbd02b remove unnecessary config file loading
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 02:21:45 +00:00
Mark Spencer
4e919f337c Fix queue, iax and sip formatting issues (bug #5449)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-17 22:26:33 +00:00
Kevin P. Fleming
4d5c1aefb7 minor changes and eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-16 23:26:35 +00:00
Mark Spencer
a5dd6a1a14 Add muxmon application (bug #4735 with mods, thanks tony!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-16 02:59:13 +00:00
Mark Spencer
cb5e5c1fd5 Don't wait for channels to answer before moving on!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 00:23:47 +00:00
Kevin P. Fleming
57a8f5d82c ensure Dial() options are sorted in help output (issue #5386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 00:11:50 +00:00
Kevin P. Fleming
cc5f36d139 ensure that message envelopes are retrieved from ODBC storage when advanced options menu is used (issue #5393)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 00:08:24 +00:00
Kevin P. Fleming
81932c6142 make DISA() use 'i' extension if it exists (issue #5439 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 23:52:42 +00:00
Kevin P. Fleming
d509e41078 remove unused variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 23:15:30 +00:00
Kevin P. Fleming
7215e4179d add auto-monitor support (issue #5411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6773 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 23:14:19 +00:00
Russell Bryant
bcb449e56b update docs to reflect that priority jumping only occurs when the global
option is enabled


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 22:43:46 +00:00
Mark Spencer
370f98e223 Fix crash in chanspy (bug #5332)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 22:10:16 +00:00
Josh Roberson
485e3e0801 Log timeouts in queues when the call timeout is set from the dialplan (Bug #5422)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 20:16:50 +00:00
Kevin P. Fleming
f48b822a20 make new app conform to coding guidelines :-(
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 13:14:03 +00:00
Mark Spencer
42cb1956fc Make sure paging can be duplex if necessary
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6754 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-13 05:37:49 +00:00
Mark Spencer
995b3973a2 Fix "bug" of not being able to page multiple phones
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 22:56:53 +00:00
Mark Spencer
c5a8178bb4 Fix directed pickup to a call that is up (bug #5425 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-11 21:08:26 +00:00
Kevin P. Fleming
350aaac04b properly report hangupcause when ast_request() fails for the last (or only) target of a dial operation (issue #5394, different fix)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6735 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 21:18:28 +00:00
Kevin P. Fleming
4807571648 add VMCOUNT() function to replace HasVoicemail/HasNewVoicemail apps (issue #5335)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6731 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 01:37:48 +00:00
Kevin P. Fleming
17b668e180 don't twiddle memory that doesn't belong to us (issue #5348)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 00:28:04 +00:00
Kevin P. Fleming
e338682949 fix memory leak and unload problems (issue #5380)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 22:44:15 +00:00
Kevin P. Fleming
e0680525e7 fix queues properly (issue #5300, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-30 14:01:56 +00:00
Kevin P. Fleming
d45b683bdd ensure that app_queue won't crash if no members are defined via Realtime (issue #5300)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-29 04:12:08 +00:00
Russell Bryant
9f0cf49bca make sure to LOCAL_USER_REMOVE in all cases where the application can exit (issue #5307)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:42:36 +00:00
Russell Bryant
90aec0b0e3 fix logic error that breaks queue exit (issue #5312)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-28 19:33:00 +00:00
Russell Bryant
da7ca691b2 move variable declaration to the beginning of the function (issue #5299)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6667 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 20:53:33 +00:00
Kevin P. Fleming
d3f7c5fb74 don't drop the caller just because it's not time to play an announcement (issue #5279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-26 00:41:28 +00:00
Kevin P. Fleming
5599da9581 support new version of OSP toolkit (issue #5168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 20:50:40 +00:00
Kevin P. Fleming
43e0f52600 correct logic errors (issue #5258)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 20:39:19 +00:00
Kevin P. Fleming
b151666d4c correct sense of logic test (issue #5259)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 20:37:05 +00:00
Mark Spencer
1097fc2d38 Make curl a function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 19:36:48 +00:00
Mark Spencer
446d1eee3e Fix meet me / local channel (bug #5274)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 03:57:53 +00:00
Kevin P. Fleming
7470ddb6b2 fix copy-and-paste error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-24 22:56:41 +00:00
Mark Spencer
2e5537a4a0 Fix directed pickup deadlock bug (bug #5270)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6634 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-24 14:22:12 +00:00
Jim Dixon
b3d871f223 Added support for iaxrpt gui client
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-23 03:07:06 +00:00
Kevin P. Fleming
b28847320d add Pickup() application (issue #4865)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 20:28:23 +00:00
Kevin P. Fleming
b8f23573fa more license/copyright header updates (thanks Ian!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 15:44:26 +00:00
Kevin P. Fleming
981970c57b _really_ fix app_directory (doh... how did I miss this before?) (issue #5232, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 01:31:49 +00:00
Kevin P. Fleming
44e3b6feb1 ensure that Record() will exit even if no audio is received from the channel (issue #4899)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 01:17:51 +00:00
Kevin P. Fleming
5bd40f4e11 revert a portion of issue #5138 which broke this app (issue #5232)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-15 00:56:09 +00:00
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
f6dff3608d allow channel receive gain to be adjusted while recording messages/greetings in voicemail (workaround for issue #2023 from the ancient past)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:00:54 +00:00
Kevin P. Fleming
b42abc9ce0 deprecate EnumLookup() application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6591 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 14:26:27 +00:00
Kevin P. Fleming
fc0b625da1 make While() able to find the matching EndWhile() for when the condition is zero (issue #5145)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 02:24:38 +00:00
Kevin P. Fleming
8f537c4378 add status variable output and jumping control to SendURL() (issue #4812)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 01:46:09 +00:00
Kevin P. Fleming
0c8f0e8bdb extensive ENUM support update, including ENUMLOOKUP() dialplan function (issue #5201 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 01:36:15 +00:00
Russell Bryant
8da2550874 ensure that user events are identified with the correct type (issue #5200)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-13 23:36:55 +00:00
Mark Spencer
f06a4016be Properly install appropriate sound files, prefix spy ones with spy- (bug #5192)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-12 03:49:54 +00:00
Jim Dixon
391d8b0994 Better improved HF interface
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-11 22:08:44 +00:00
Josh Roberson
f406fe76a8 Set filaneme BEFORE we return from open_mailbox() if we don't have positive message count (Bug #5175)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-09 21:13:42 +00:00
Jim Dixon
4794638c99 Fixed signalling problem with pciradio
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-08 17:29:49 +00:00
Kevin P. Fleming
03f39d5a1e ensure that TRANSFERSTATUS can return FAILURE (issue #5146)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 21:39:53 +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
a78f58b4e4 put a limit on Macro depth (to combat recursion) (issue #5114)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6535 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 20:39:20 +00:00
Kevin P. Fleming
e0f02b46f1 convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 19:13:00 +00:00
Kevin P. Fleming
721bd0aa59 eliminate signedness warnings (issue #5130)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 18:57:01 +00:00
Kevin P. Fleming
40c5fa88a4 eliminate signedness warnings (issue #5129)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6530 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 18:55:03 +00:00
Kevin P. Fleming
a833f4699a add status variable output to System() app (issue #5121)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 18:52:54 +00:00
Kevin P. Fleming
4e87243686 fix some race conditions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 15:32:01 +00:00
Kevin P. Fleming
4b8de0713e reset channel volumes when exiting apps that use them
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 14:15:37 +00:00
Kevin P. Fleming
6a34f551ec re-add 'listen' volume control
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 02:27:58 +00:00
Kevin P. Fleming
35d9febc6e another buglet
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:55:29 +00:00
Kevin P. Fleming
764cfe8f8e actually do issue #4170 right... it was supposed to adjust talk volume, not listen volume (sorry)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6520 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:39:11 +00:00
Kevin P. Fleming
5fdc070109 add new channel option (via ast_channel_setoption()) to let channel drivers adjust txgain/rxgain if they are able (only Zap channels at this time)
modify app_chanspy to use new gain option
reformat app_chanspy to match coding guidelines
add user-controlled volume adjustment to app_meetme (issue #4170, heavily modified to actually work on Zap channels)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-07 01:30:01 +00:00
Kevin P. Fleming
37a3c098bf fix stupid thinko (thanks velter!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 22:32:29 +00:00
Kevin P. Fleming
0361052ae1 ensure that file handles are never double closed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6485 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 19:44:51 +00:00
Kevin P. Fleming
66371e182a minor optimization
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6482 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-01 18:45:36 +00:00
Kevin P. Fleming
b67fced7ae correct Makefile errors (issue #5072)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 21:29:58 +00:00
Kevin P. Fleming
3103fd6292 don't duplicate devicestate-to-string function (issue #5078)
use ast_build_string() for building output string


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-31 20:16:47 +00:00
Kevin P. Fleming
d4e44d7c31 correct syntax error
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6456 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 20:08:59 +00:00
Kevin P. Fleming
9519f6c5f4 clean up, use make functions instead of subshells, remove unused stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:54:02 +00:00
Mark Spencer
5d4d2fdfd4 Add SIP video fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:12:09 +00:00
Kevin P. Fleming
b42b25b521 eliminate compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 23:49:43 +00:00
Kevin P. Fleming
8b331ab17d eliminate compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6439 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 21:18:35 +00:00
Kevin P. Fleming
d996db1ae9 remove unused defines and logic (issue #5058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 19:07:24 +00:00
Russell Bryant
ba8b18ca83 app_rpt is experimental, not obsolete (issue #5047)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 16:14:38 +00:00
Russell Bryant
d1ec6c80d1 fix mem leak from not destrying config (issue #5048)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 16:08:53 +00:00
Kevin P. Fleming
ed63297dfd convert Cut() into CUT() function (issue #4892)
add SORT() function (issue #4892)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-26 20:01:22 +00:00
Kevin P. Fleming
239d0bf4f7 fix race condition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 18:30:02 +00:00
Kevin P. Fleming
f51d313a94 ensure that Random() can support priority labels as targets (issue #5013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6406 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 04:04:14 +00:00
Kevin P. Fleming
37930961e1 add optional 'extended ODBC storage' mode (issue #4403)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-25 03:15:18 +00:00
Kevin P. Fleming
e979e32374 clean up code, fix a few bugs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 23:10:55 +00:00
Kevin P. Fleming
0d7115e65c protocol upgrades
shorter timeout during wait() calls
log channel name in all log messages


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-24 14:24:55 +00:00
Kevin P. Fleming
f07adb44c0 fix buglets in new authentication code (issue #4860)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 15:21:48 +00:00
Kevin P. Fleming
eb805b409f do expensive 'next message number' calculation before playing sounds (issue #4955)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 02:01:37 +00:00
Kevin P. Fleming
dde23d5d0f reverse commit due to lack of disclaimer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:09:49 +00:00
Kevin P. Fleming
a0ebefc915 make Record() properly timeout even if no input is received from the channel (issue #4899)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:08:07 +00:00
Kevin P. Fleming
c9287324ea make pager messages configurable (issue #4829)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 22:43:47 +00:00
Kevin P. Fleming
fda760f7bd add text status variable output to SendText() application (issue #4808)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:55:46 +00:00
Kevin P. Fleming
9d899a2075 add status output to Transfer() application (issue #4810, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 20:53:38 +00:00
Kevin P. Fleming
69f9c479e7 add 'restart' character to ast_control_playback function and ControlPlayback() application (issue #4693)
rework app_controlplayback.c to take into account all Asterisk 1.2 coding style requirements


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 19:06:42 +00:00
Jim Dixon
6b2ff5db90 Added support for Yaesu FT-897 HF/VHF/UHF radio and other improvements
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 02:38:37 +00:00
Mark Spencer
71fcf66d1e Fix password change bug (bug #4976)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-17 15:49:34 +00:00
Mark Spencer
129fd190a9 Make sure "now" is initialized (bug #4961)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6329 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-14 03:08:08 +00:00
Kevin P. Fleming
ab7ae00513 fix bug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-11 18:34:03 +00:00
Kevin P. Fleming
82453465f0 correct error Makefile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-10 23:25:55 +00:00
Kevin P. Fleming
d0ec4b9e94 add ExternalIVR() application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-10 23:24:39 +00:00
Mark Spencer
ce49016c96 Show callerid in meetme show list (bug #4851 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-08 02:32:37 +00:00
Mark Spencer
ef753b53bd Fix lookup to use proper API call...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 22:32:30 +00:00
Mark Spencer
4f37e6b4b0 Allow enumlookup to return a status variable (bug #4788)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 14:45:31 +00:00
Mark Spencer
e415ff3f87 Don't record all calls as abandoned (bug #4575) (fixes damage inadvertently added by bug #4644)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-07 14:11:48 +00:00
Mark Spencer
f08acd7b45 Fix newline issue (bug #4632)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-05 21:44:19 +00:00
Mark Spencer
3c6e6c9c96 Be sure not to leak frames in certain cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6275 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 20:17:53 +00:00
Mark Spencer
a9a91571a1 Remove queue/session co-locking until deadlocks are properly resolved
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 18:25:23 +00:00
Mark Spencer
e0b57f1fae Fix voicemail crash (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 02:45:30 +00:00
Russell Bryant
11a1ecabdb fix warning (bug #4807)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 15:01:11 +00:00
Mark Spencer
5d350297b6 Make sure we don't close a mailbox if we didn't open one (bug #4800)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 11:09:03 +00:00
Mark Spencer
8efba1c127 Minor voicemail fixup (related to 4800, but not the fix yet)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-01 11:03:09 +00:00
Mark Spencer
5a7a8666a1 Add periodic announcement (bug #4677 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-31 22:07:58 +00:00
Mark Spencer
716a669818 Remove per-context maxmsg which should never have made it in (bug #4843)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6242 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 18:14:13 +00:00
Russell Bryant
9d880dd2b2 remove useless call to time() and an extra variable when we can just use the
one we already have


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 23:05:52 +00:00
Russell Bryant
50a1d758d5 the time must be initialized for the 'n' option to actually work (bug #4834)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6238 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 22:55:48 +00:00
Kevin P. Fleming
c4c9401efd make queue and interface name matching case-insensitive (bug #4815)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 21:53:56 +00:00
Kevin P. Fleming
5cc0413c54 add a global option to disable priority jumping in applications (when they get updated), settable in extensions.conf
change app_dial to use 'j' to _ENABLE_ priority jumping if it has been globally disabled


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-26 16:29:56 +00:00
Kevin P. Fleming
f358db3d43 use CDR API calls instead of re-implementing them (bug #4726)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 22:56:18 +00:00
Kevin P. Fleming
6074f3441a add MD5-hash matching (bug #4764, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6198 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:59:11 +00:00
Kevin P. Fleming
075a8ad21c add slinfactory object, and change app_chanspy to use it (bug #4724)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:53:21 +00:00
Kevin P. Fleming
1c30af0622 add English device state output (bug #4733, with minor mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:34:01 +00:00
Kevin P. Fleming
3db82d8597 add OGG/Vorbis file format support (bug #4296)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-20 00:25:54 +00:00
Kevin P. Fleming
63b6795055 ensure account code is not overwritten when none is supplied (bug #4743)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-19 23:45:21 +00:00
Kevin P. Fleming
22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming
9d8d86e19d phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:06:15 +00:00
Kevin P. Fleming
ee568be647 revert unneeded change and add comment to avoid it in the future
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:15:57 +00:00
Kevin P. Fleming
904beec507 ensure that format string macros are undef'd after use (bug #4716)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:13:26 +00:00
Kevin P. Fleming
7070dafdbf don't use %i for scanf unless non-base-10 input is needed (bug #4717)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 16:10:21 +00:00
Kevin P. Fleming
dcfabce0e4 restore count_messages for ODBC storage to proper behavior (bug #4711)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:27:41 +00:00
Kevin P. Fleming
86e17a7487 clean up maxmsg parsing, and ensure default applies to Realtime voicemail users
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 00:18:58 +00:00
Kevin P. Fleming
9a7a5d5623 fix up lock breakage from bug #4245
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 19:27:09 +00:00
Kevin P. Fleming
1432749293 add QueueStatusComplete event (bug #4694 with minor mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6121 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-13 16:44:55 +00:00
Kevin P. Fleming
79760d4802 add support for multiple-digit extensions in queue exit contexts (bug #4690)
add QUEUEAGENTCOUNT dialplan function (bug #4690)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 22:28:51 +00:00
Russell Bryant
4f64fe03f0 get rid of compiler warning (bug #4682)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:22:55 +00:00
Kevin P. Fleming
7276c684c4 clean up and reorganize vm_intro_it (bug #4683, with formatting changes)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 15:10:31 +00:00
Kevin P. Fleming
0313d0b9c5 add privacy/screening functionality to app_dial (bug #752)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6102 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 03:23:31 +00:00
Kevin P. Fleming
2c79cc2fc6 correct arguments being passed to external notify function (bug #4595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:57:50 +00:00
Kevin P. Fleming
99c29d7053 support a configurable number of mailboxes per folder (bug #4229)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 02:53:56 +00:00
Russell Bryant
e2d42d2551 update the password in memory as well when using externpass (bug #4602)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:30:55 +00:00
Kevin P. Fleming
16c5ee5d56 fix voicemail path locking problems (bug #4245)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 01:04:54 +00:00
Russell Bryant
3cfa36143e properly handle the return of the rowcount from ast_update_realtime (bug #4452)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 23:13:11 +00:00
Russell Bryant
e24821e1cf fix off by one errors in calls to ast_copy_string (bug #4600)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 21:05:35 +00:00
Kevin P. Fleming
eb397f08df reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used between the arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6083 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 20:46:25 +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
Russell Bryant
206f712599 more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:12:25 +00:00
Mark Spencer
80f67ad1fa Pass along proceeding and progress even when overlap mode is not on
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 16:05:59 +00:00