aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2007-08-29This code was in team/murf/bug8684-trunk; it should fix bug 8684 in trunk. I ↵murf4-5/+5
didn't add it to 1.4 yet, because it's not entirely clear to me if this is a bug fix or an enhancement. A lot of files were affected by small changes like ast_variable_new getting an added arg, for the file name the var was defined in; ast_category_new gets added args of filename and lineno; ast_category and ast_variable structures now record file and lineno for each entry; a list of all #include and #execs in a config file (or any of its inclusions are now kept in the ast_config struct; at save time, each entry is put back into its proper file of origin, in order. #include and #exec directives are folded in properly. Headers indicating that the file was generated, are generated also for each included file. Some changes to main/manager.c to take care of file renaming, via the UpdateConfig command. Multiple inclusions of the same file are handled by exploding these into multiple include files, uniquely named. There's probably more, but I can't remember it right now. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81361 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-29Merged revisions 81349 via svnmerge from mmichelson1-0/+22
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81349 | mmichelson | 2007-08-29 11:35:29 -0500 (Wed, 29 Aug 2007) | 12 lines This patch, in essence, will correctly pause a realtime queue member and reflect those changes in the realtime engine. (issue #10424, reported by irroot, patch by me) This patch creates a new function called update_realtime_member_field, which is a generic function which will allow any one field of a realtime queue member to be updated. This patch only uses this function to update the paused status of a queue member, but it lays the foundation for persisting the state of a realtime member the same way that static members' state is maintained when using the persistentmembers setting ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81350 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-29Merged revisions 81346 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81346 | mmichelson | 2007-08-29 11:08:09 -0500 (Wed, 29 Aug 2007) | 3 lines Changed some tabs to spaces ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-29Merged revisions 81340 via svnmerge from mmichelson1-5/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81340 | mmichelson | 2007-08-29 10:52:42 -0500 (Wed, 29 Aug 2007) | 8 lines This fix creates a more accurate way of detecting whether realtime members were deleted. (closes issue 10541, reported by Alric, patched by me) The REALLY nice things about this patch is that queue members now have a "realtime" field which will be true if the member is a realtime member. This means we can check this value prior to certain processing if it should ONLY be done for realtime members. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81341 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-29Changing a NOTICE to a DEBUG.mmichelson1-2/+2
(closes issue #10591, reported and patched by junky, with small modification by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27Merged revisions 81158 via svnmerge from mmichelson1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81158 | mmichelson | 2007-08-27 17:40:19 -0500 (Mon, 27 Aug 2007) | 5 lines Resolve a potential deadlock. In this case, a single queue is locked, then the queue list. In changethread(), the queue list is locked, and then each individual queue is locked. Under the right circumstances, this could deadlock. As such, I have unlocked the individual queue before locking the queue list, and then locked the queue back after the queue list is unlocked. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81159 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27Enhance Pickup to do native pickupgroup pickup when no arguments are ↵tilghman1-7/+11
specified (closes issue #10404) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81118 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27Merged revisions 81010 via svnmerge from mmichelson1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81010 | mmichelson | 2007-08-27 09:55:44 -0500 (Mon, 27 Aug 2007) | 3 lines Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81011 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-25use ast_strlen_zerorussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80896 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24Merged revisions 80818 via svnmerge from bweschke1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80818 | bweschke | 2007-08-24 15:52:06 -0400 (Fri, 24 Aug 2007) | 3 lines A minor correction to the available logic of autofill. If a queue member is paused, they're not really "available" so don't count them as such. Somewhat related to issue #10155 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80819 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24Merged revisions 80750 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80750 | mmichelson | 2007-08-24 10:51:03 -0500 (Fri, 24 Aug 2007) | 3 lines Fix a possible crash in IMAP voicemail. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80751 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-23Use the comma separator in app_while. reported by blitzrage on irc, patched ↵russell1-2/+2
by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-22Cast calls to getpid. This was done in 1.4 already, this one was just newqwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80428 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Merged revisions 80049 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80049 | mmichelson | 2007-08-20 11:17:43 -0500 (Mon, 20 Aug 2007) | 4 lines Found a pointless ternary if. member->dynamic was set to 1 and has no opportunity to change between then and this line, so "dynamic" will ALWAYS be output. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80050 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Remove remnants of last commit so trunk builds again.file1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Merged revisions 80044 via svnmerge from mmichelson1-1/+94
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80044 | mmichelson | 2007-08-20 10:34:43 -0500 (Mon, 20 Aug 2007) | 5 lines Ukrainian language voicemail support. (closes issue #10458, reported and patched by Oleh) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@80045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Merged revisions 79998 via svnmerge from tilghman1-2/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79998 | tilghman | 2007-08-19 21:42:49 -0500 (Sun, 19 Aug 2007) | 2 lines Missing curly braces. Oops. (Reported by snuffy via IRC) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79999 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-18Merged revisions 79947 via svnmerge from tilghman1-14/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79947 | tilghman | 2007-08-18 09:30:44 -0500 (Sat, 18 Aug 2007) | 3 lines Don't allocate vmu for messagecount when we could just use the stack instead (closes issue #10490) Also, remove a useless (and leaky) SQLAllocHandle (closes issue #10480) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79949 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17I broke the build. Now I'm fixing it.mmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79915 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17Merged revisions 79906 via svnmerge from mmichelson1-1/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79906 | mmichelson | 2007-08-17 14:14:05 -0500 (Fri, 17 Aug 2007) | 6 lines Patch allows for more seamless transition from file storage voicemail to ODBC storage voicemail. If a retrieval of a greeting from the database fails, but the file is found on the file system, then we go ahead an insert the greeting into the database. The result of this is that people who switch from file storage to ODBC storage do not need to rerecord their voicemail greetings. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79907 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16Don't reload a configuration file if nothing has changed.tilghman13-53/+105
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16added counter for voicemail show users, issue 10462, thanks junkydhubbard1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79724 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16Merged revisions 79690 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79690 | mmichelson | 2007-08-16 10:58:34 -0500 (Thu, 16 Aug 2007) | 5 lines base_encode is not trying to open a log file, so we should not call it a log file in the warning. (related to issue #10452, reported by bcnit) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79691 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-15Merged revisions 79527 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79527 | mmichelson | 2007-08-15 09:26:40 -0500 (Wed, 15 Aug 2007) | 5 lines Fixed an error in the Russian language voicemail intro. (issue #10458, reported and patched by Oleh) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79529 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Merged revisions 79334 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79334 | file | 2007-08-13 18:57:20 -0300 (Mon, 13 Aug 2007) | 2 lines Instead of accepting a single DTMF character accept a full string. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Allow non-realtime queues to have realtime membersmmichelson1-0/+3
(issue #10424, reported and patched by irroot) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79238 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Merged revisions 79207 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79207 | file | 2007-08-13 11:51:09 -0300 (Mon, 13 Aug 2007) | 2 lines Add an API call to allow the engine to know that DTMF was received. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79208 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10Merge a set of device state improvements from team/russell/events.russell1-20/+25
The way a device state change propagates is kind of silly, in my opinion. A device state provider calls a function that indicates that the state of a device has changed. Then, another thread goes back and calls a callback for the device state provider to find out what the new state is before it can go send it off to whoever cares. I have changed it so that you can include the state that the device has changed to in the first function call from the device state provider. This removes the need to have to call the callback, which locks up critical containers to go find out what the state changed to. This change set changes the "simple" device state providers to use the new method. This includes parking, meetme, and SLA. I have also mostly converted chan_agent in my branch, but still have some more things to think through before presenting the plan for converting channel drivers to ensure all of the right events get generated ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79027 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Merged revisions 78907 via svnmerge from mmichelson1-7/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78907 | mmichelson | 2007-08-09 18:47:00 -0500 (Thu, 09 Aug 2007) | 4 lines Improved a bit of logic regarding comma-separated mailboxes in has_voicemail. Also added some braces to some compound if statements since unbraced if statements scare me in general. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78908 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Merged revisions 78859 via svnmerge from mmichelson1-134/+186
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78859 | mmichelson | 2007-08-09 16:51:17 -0500 (Thu, 09 Aug 2007) | 9 lines Quite a few changes regarding IMAP storage. 1. instead of using inboxcount as the core message counting function, we use messagecount instead. This makes it possible to count messages in folders besides just INBOX and Old. 2. inboxcount and hasvoicemail now use messagecount as their means of determining return values. 3. Added a copy_message function for IMAP storage. Unfortunately I don't have the means to test it, but it seems like a pretty straightforward function. 4. Removed a #ifndef IMAP_STORAGE and matching #endif from leave_voicemail for a couple of reasons. One, we want to support copying mail to multiple IMAP boxes, and two, IMAP was broken because a STORE macro had been moved into this section of code. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78861 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Don't use strncpy for moving a chunk of memory to another that is overlapping.russell1-2/+2
This was found by running Asterisk under valgrind. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78829 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Merged revisions 78778 via svnmerge from russell1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78778 | russell | 2007-08-09 12:58:31 -0500 (Thu, 09 Aug 2007) | 1 line add a comment to indicate that inboxcount for ODBC_STORAGE needs to be fixed to support multiple mailboxes ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Merged revisions 78749 via svnmerge from russell1-10/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78749 | russell | 2007-08-09 12:24:40 -0500 (Thu, 09 Aug 2007) | 9 lines Fix subscriptions to multiple mailboxes for ODBC_STORAGE. Also, leave a comment for this to be fixed for IMAP_STORAGE, as well. I left IMAP alone since I know MarkM was working on this code right now for another reason. This is broken even worse in trunk, but for a different reason. The fact that the mailbox option supported multiple mailboxes is completely not obvious from the code in the channel drivers. Anyway, I will fix that in another commit ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Fix a problem that I had introduced into MWI handling. I had ignoredrussell1-4/+7
the mailbox context. Now, all related MWI event dealings pay attention to the context as well. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Merged revisions 78717 via svnmerge from russell1-2/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78717 | russell | 2007-08-09 11:12:57 -0500 (Thu, 09 Aug 2007) | 7 lines Fix a problem with the combination of the 'F' option to pass DTMF through a conference and options that use DTMF to activate various features. The problem was that the BEGIN frame would be passed through, but the END frame would get intercepted to activate a feature. Then, the other conference members would hear DTMF for forever, which they didn't seem to like very much. (closes issue #10400, reported by stevefeinstein, fixed by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78718 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Add support for using epoll instead of poll. This should increase ↵file1-1/+13
scalability and is done in such a way that we should be able to add support for other poll() replacements. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78683 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Merge audiohooks branch into trunk. This is a new API for developers to ↵file2-189/+92
listen and manipulate the audio going through a channel. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78649 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Merged revisions 78575 via svnmerge from mmichelson1-11/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78575 | mmichelson | 2007-08-08 09:26:36 -0500 (Wed, 08 Aug 2007) | 4 lines Changing a bit of logic so that someone will NEVER exit the queue on timeout unless they have enabled the 'n' option. This commit relates to issue #10320. Thanks to jfitzgibbon for detailing the idea behind this code change. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78590 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Merged revisions 78450 via svnmerge from mmichelson1-4/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78450 | mmichelson | 2007-08-07 14:43:57 -0500 (Tue, 07 Aug 2007) | 5 lines The logic behind inboxcount's return value was reversed in has_voicemail and message_count. (closes issue #10401, reported by st1710, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78451 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Merged revisions 78415 via svnmerge from tilghman2-193/+106
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78415 | tilghman | 2007-08-07 14:09:38 -0500 (Tue, 07 Aug 2007) | 2 lines Reconnection doesn't happen automatically when a DB goes down (fixes issue #9389) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78417 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fix bug where a NULL timeout would make things explode if SendDTMF was ↵file1-3/+5
called with it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration ↵file3-16/+18
of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06(closes issue #10381)file1-3/+2
Reported by: yehavi Use the filename we parsed using the standard parsing when launching the application specified to ExternalIVR. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78168 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-05Make this module build on my macrussell1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78142 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Merged revisions 78101 via svnmerge from russell1-0/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r78101 | russell | 2007-08-03 15:14:06 -0500 (Fri, 03 Aug 2007) | 10 lines (closes issue #10194) Reported by: blitzrage Patches: bug0010194 uploaded by vovochka Tested by: blitzrage Fix a problem when you call Voicemail() with multiple mailboxes specified and ODBC_STORAGE is in use. The audio part of the message was only given to the first mailbox specified. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78102 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Merged revisions 77886 via svnmerge from tilghman1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r77886 | tilghman | 2007-08-01 17:14:47 -0500 (Wed, 01 Aug 2007) | 2 lines Voicemail with ODBC_STORAGE defined does not compile cleanly (missing def) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77888 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Add the Ring time in the CONNECT on the queue_log and on the Manager event ↵qwell1-3/+6
AgentConnect Closes issue #10349, patch by eliel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77879 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Merged revisions 77869 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r77869 | file | 2007-08-01 14:56:59 -0300 (Wed, 01 Aug 2007) | 2 lines Add some fixes for building on Solaris. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77870 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Convert code that checks the _softhangup member of ast_channel directory to userussell6-9/+9
the ast_check_hangup() funciton. This function takes scheduled hangups into account. (closes issue #10230, patch by Juggie) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77858 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Merged revisions 77854 via svnmerge from mmichelson1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r77854 | mmichelson | 2007-08-01 09:08:57 -0500 (Wed, 01 Aug 2007) | 8 lines Fixes an issue I introduced to queues wherein a queue with joinempty=yes would kick people out of the queue because of erroneously thinking the 'n' option was in use. (closes issue #10320, reported by jfitzgibbon, patched by me, tested by blitzrage and me) Thank you blitzrage for all the testing you've done lately with queues! It's much appreciated! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77855 f38db490-d61c-443f-a65b-d21fe96a405b