Archived
14
0
Fork 0
Commit graph

228 commits

Author SHA1 Message Date
rizzo
22ba18f6b6 remove unused variable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22655 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 22:45:37 +00:00
mogorman
471d31b385 adds new function QUEUE_WAITING_COUNT and a few
warnings if the queue you are looking for in this 
function and other queue functions is not found.
patch from 7036


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-26 22:04:42 +00:00
rizzo
915a117b86 more NULL "" equivalence,
mark a couple of inconsistencies (missing CallerIDnum,
"unknown" instead of "<unknown>") - there are more of the same.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21821 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 10:57:03 +00:00
rizzo
3664249356 This rather large commit changes the way modules are loaded.
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
kpfleming
31b2a51bfb remove support for BYEXTENSION (which nobody even knows about anymore)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 23:01:22 +00:00
kpfleming
e4880150b1 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
tilghman
e0ba99b7f5 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05 17:44:44 +00:00
oej
e2b336affe Issue #6882
- move "res=-1" out of verbose block. 
- minor code cleanup
Imported from 1.2 branch


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17350 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04 18:02:40 +00:00
rizzo
6efbab0108 Normalize some cli completion code.
On passing, replace strdup with ast_strdup() and remove
the now useless checks for NULL since ast_strdup() can handle
it correctly.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 00:30:29 +00:00
markster
4f4a24ec6f Add micro-http server and abstract manager interface, make snmp not die
on reload.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 23:50:09 +00:00
russell
ba03cdd7db Merged revisions 12925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r12925 | russell | 2006-03-14 13:28:39 -0500 (Tue, 14 Mar 2006) | 3 lines

fix a problem with not loading realtime queue members by always reloading a 
realtime queue from the database even if it is found in the list (issue #6680)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12926 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14 18:30:52 +00:00
tilghman
9156908a4c Bug 6459 - tell manager when queue is abandoned
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-11 15:17:50 +00:00
russell
c72e5e1b38 remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 20:11:56 +00:00
kpfleming
f0d3db9337 add option to avoid calling members whose channels are 'in use' (issue #6315, plus documentation)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10163 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 02:52:19 +00:00
kpfleming
5bd6728e53 add channel's uniqueid to manager 'join' event (issue #6458)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10122 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 01:01:35 +00:00
kpfleming
5ae550a31a don't use localuser structure for outbound calls (issue #6216)
various code cleanup and reorganization (issue #6216)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10046 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 21:50:35 +00:00
kpfleming
32acfae754 Merged revisions 9961,9964,9990,10018 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r10018 | kpfleming | 2006-02-14 14:20:15 -0600 (Tue, 14 Feb 2006) | 2 lines

don't double-increment abandon counter for calls that are hung up while dialing members (issue #6289)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 20:21:38 +00:00
russell
4c6776c6d7 remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 20:12:50 +00:00
kpfleming
5d9ed5739a major dialplan functions update
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 04:28:58 +00:00
kpfleming
21d21f89c0 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
mogorman
dd0de59245 changed some settings to app_args and some code
cleaning patch 6267


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-23 17:23:22 +00:00
russell
ec44e79c9c fix memory leak from not freeing the list of queue members when freeing a queue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8447 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 19:09:50 +00:00
tilghman
b1ed0b9e85 Bug 6312 - Macro janitor
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8436 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 17:28:42 +00:00
russell
252fb982f4 on this pass, only remove duplicate log messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
tilghman
a36aa51b3c Bug 5936 - Cannot AddQueueMember on realtime queue, if queue not yet loaded (different fix than 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8402 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:32:17 +00:00
russell
b14bdc5a12 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 17:50:04 +00:00
russell
3f2c7248c6 remove lots of useless checks of the result of ast_strdupa
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:13:12 +00:00
russell
ae8c68e98d Merged revisions 8347 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r8347 | russell | 2006-01-20 13:34:42 -0500 (Fri, 20 Jan 2006) | 2 lines

fix invalid value of prev_q (issue #6302)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8348 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20 18:40:24 +00:00
russell
c6643537f1 constify arguments in more places where strings should not be modified (issue #6286)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 22:17:31 +00:00
mogorman
3578d9e478 oops all better now.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8153 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 21:10:38 +00:00
mogorman
4da80042ee allow for multiple periodic announcements
from bug 5273 with minor changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 20:58:56 +00:00
bweschke
4e83a000aa Spelling corrections (mostly in comments and doxygen areas) #6249
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8100 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 17:37:44 +00:00
mogorman
2de7198c70 Added QUEUE_MEMBER_COUNT and QUEUE_MEMBER_LIST
from bug 5451


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8069 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 22:59:19 +00:00
russell
c68a2d2d8e Various cleanups from comments in an email from Luigi Rizzo. Thank you!
- Use a cleaner syntax for declaring the allocation macros
- Fix return value for ast_strdup/ast_strndup
- remove safe_strdup from app_macro, since ast_strup does the same thing
- fix a place in app_queue where ast_calloc+strncpy was used instead of
  ast_strdup.  If you are helping out with these conversions, please watch out
  for other places where this is done.
- add a note to the coding guidelines about the fix to app_queue


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8065 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 18:38:55 +00:00
mogorman
d1792564f7 added two new features to meetme, autofill and
autopause.  thanks twisted from 5577


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 17:39:56 +00:00
bweschke
bb26a9138e More memory wrapper and cleanup work. #6226 w/one very minor compile fix mod in app_rpt.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8044 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 03:25:23 +00:00
bweschke
237a37dd72 Remove an unneccessary unlock and do away with the error msg about not being able to unlock the lock. #6201
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8020 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 19:01:35 +00:00
bweschke
1228be721e More new memory wrapper work and initializing some memory allocations to zero where they weren't before.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8011 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 16:00:13 +00:00
kpfleming
dbe96780b5 allow limiting of queue members who will be delivered a given caller's call by penalty setting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7833 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06 03:40:12 +00:00
russell
ab6566173e update doxygen docs to specify authors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
russell
27da3f2926 avoid multiple strlen calls in complete_queue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7667 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-29 08:15:48 +00:00
russell
ac9d70ac12 Merged revisions 7634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7634 | russell | 2005-12-26 13:19:12 -0500 (Mon, 26 Dec 2005) | 2 lines

cast time_t to an int in printf/scanf (issue #5635)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7635 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26 18:35:28 +00:00
tilghman
2188d03a9d Clarify purpose of function, by renaming
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7353 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-06 00:25:13 +00:00
russell
dd75b6d2d3 Merged revisions 7337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7337 | russell | 2005-12-04 19:09:12 -0500 (Sun, 04 Dec 2005) | 2 lines

don't delete dynamic queue members when reloading the static members from a realtime database (issue #5922)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7338 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-05 00:11:00 +00:00
russell
cfb1ef4712 convert most of the option_*'s to a single ast_flags structure. Also, fix some
formatting, remove some unnecessary casts, and other little code cleanups.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04 20:40:46 +00:00
tilghman
3365b1cc9f Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-03 19:25:33 +00:00
russell
775a201d8f fix queue weight feature - compare member interfaces instead of pointers to
the members, since each queue has its own list of members. (issue #5863)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7248 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-01 01:17:41 +00:00
kpfleming
24c1e3c222 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
kpfleming
91c9adf438 issue #5707
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7053 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10 23:22:37 +00:00
russell
465d1d7712 make app_queue 1.2 jump compliant (issue #5580)
add missing includes of stdio.h
remove some unused and duplicate headers


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7026 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:48:00 +00:00