aboutsummaryrefslogtreecommitdiffstats
path: root/manager.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-10AST-2009-005tilghman1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@211526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-24Issue 10043 - There is a legitimate need to be able to set variables to the ↵tilghman1-6/+1
empty string. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71288 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-24Don't crash if a manager connection provides a username that exists inrussell1-1/+2
manager.conf but does not have a password, and also requests MD5 authentication. (ASA-2007-012) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61786 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-04It is valid to redirect channels via the manager interface that are not in therussell1-4/+4
UP state. Instead of checking for that to prevent to ensure a dead channel doesn't get redirected, just use the ast_check_hangup() API call. (issue #9457, reported by Callmewind, patch by me) (related to issue #8977) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@60134 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-07Fix a misplaced block of code in the 1.2 version of the patch to fix issue #8977russell1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58167 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-07If the channels acquired using the manager Redirect action are not up, thenrussell1-0/+11
don't attempt to do anything with them. It could lead to weird behavior, including crashes. (issue #8977) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58164 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-06Issue 8987 - Status could return two responses (mnicholson)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53245 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Fix a bunch of places where pthread_attr_init() was called, butrussell1-0/+1
pthread_attr_destroy() was not. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53045 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11now that CDR is a loadable module, don't depend on it elsewhere (issue #6460)russell1-20/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09backport fix for unnecessary unlock (issue #6171)russell1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7870 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15don't crash on setvar (issue #5760)russell1-3/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7099 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15Issue #5737twisted1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7097 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14finish merging doxygen updates from issue #5605russell1-0/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5571kpfleming1-11/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7019 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5585kpfleming1-14/+22
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7012 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26clean up a lot of doxygen errors and warnings (issue #5522)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26change ast_strlen_zero to also check for the string to be definedrussell1-20/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26more doxygenification (issue #5513)russell1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-14Fix carefulwrite and its usage within manager (bug #5355, maybe)markster1-7/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6792 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13don't try to send events to dead sessionskpfleming1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6776 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13allow manager getvar action to retrieve global variables as well asrussell1-11/+10
channel variables (issue #5429) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6763 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-05correct variable header documentation (issue #5397)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6734 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-04allow write timeout to be set on a per-user basis in AMI (issue #5352)kpfleming1-3/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6716 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-04allow manager actions to properly close the session again (issue #5350)kpfleming1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6715 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-03fix 'invalid command' logickpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6710 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-03don't build manager event output until it is neededkpfleming1-9/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6709 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-01add ast_build_string_va(), which accepts a varargs list directlykpfleming1-6/+7
ensure the _entire_ manager_event() output is either queued or sent via ast_carefulwrite() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6708 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-30don't take session lock in astman_send_error() and astman_send_response(), ↵kpfleming1-23/+36
since it is no longer needed don't build authority string and event string for every session in manager_event(), do it only once git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6704 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-30tell the user about invalid/unknown commands before sending queued eventskpfleming1-8/+5
s->challenge does not need to be protected by the lock, since only process_message() (and functions it calls) ever use it, and process_message() is a blocking operation by definition git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6703 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-30properly clear out manager header structure between actionskpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6701 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-29Fix manager bug (can't destroy a session while a thread is using it!)markster1-16/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6698 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-28Remove possibility of manager deadlocks from manager actionsmarkster1-57/+104
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6687 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-25Fix manager EINTR issue (bug #5247)markster1-11/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6644 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-25Fix GetVar manager action result (bug #5275)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6641 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-6/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-26ensure that 'Events: On' enables all event types (issue #5016)kpfleming1-7/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6429 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-07Fix poll error condition causing memory corruption (bug #4915)markster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6303 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-05fix a bunch of gcc4 warnings realted to pointer signednessrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6290 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-05fix seg fault if no variable is specified (bug #4907)russell1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6289 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25don't set the event mask if the given eventmask was not validrussell1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6215 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25make sure a reponse is sent when setting the EventMask to on (bug #4799)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6214 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15Allow manager originate to specifiy more than one variable to be set.russell1-12/+39
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: http://svn.digium.com/svn/asterisk/trunk@6147 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-2/+1
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-10more ast_copy_string conversionsrussell1-15/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6073 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-09fix channel walking problems from recent changes (bug #4494)kpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5883 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-0/+4
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more efficient (and understandable) ast_channel_walk_locked, and vastly more ↵kpfleming1-44/+11
efficient ast_channel_by_name_locked (bug #4265) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5853 f38db490-d61c-443f-a65b-d21fe96a405b