aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_agent.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-23(closes issue #5866)file1-2/+2
Reported by: tyler Do not force channel format changes when a generator is present. The generator may have changed the formats itself and changing them back would cause issues. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@76653 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11The cli command "agent logoff Agent/x soft" did not work...at all. Now it does.mmichelson1-0/+2
(closes issue #10178, reported and patched by makoto, with slight modification for 1.4 and trunk by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74719 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix an issue with wrapuptime not working when using AgentLogin.qwell1-4/+6
Issue 10169, patch by makoto, with a minor mod by me to not re-break issue 9618 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@74376 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-06Fixed a bug wherein agents get stuck busy. (issue 9618, reported by ↵mmichelson1-1/+1
jiddings, patched by moi) closes issue #9618 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73674 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Fix a few more issues with the agent logoff CLI command. (issue #9123 ↵file1-1/+10
reported by arbrandes) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@57092 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-22Always defer Agent logoff if any channels are up until they hang up. (issue ↵file1-6/+4
#9123 reported by arbrandes) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@56279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20Defer clearing callback information if channels are up until they are hung ↵file1-2/+10
up. This ensures the hangup process goes smoothly and no channels get hung in limbo. (issue #8088 reported by kebl0155) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@55669 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Do not send indications through ast_indicate in chan_agent but instead go ↵file1-1/+1
directly to the technology. This way when indications are emulated they happen on the Agent channel and do not screw up formats on the channels. (issue #8439 reported by punkgode) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@54999 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-06 Look ma! No more deadlocks! <sic>bweschke1-2/+15
As posted from #7458 and others similar to it in Mantis: p->app_lock was a mutex really designed for use with agents not in callback mode. That being the case, I've tried to code it so that when callback mode is used, the app_lock mutex will not be locked/unlocked at all. Please let me know how you make out - and if you continue to deadlock now, please reproduce the deadlock logging information and post to Mantis. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@42133 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 Don't do wierd things on a callback agent that has attempted logoff while ↵bweschke1-2/+4
still on the phone. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@37212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03use ast_set_callerid to be more consistent and to make sure that therussell1-12/+2
"callerid" option in the conf files is always handled the same way and sets ANI (issue #7285, gkloepfer) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@36725 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 Don't show agents as available when they are in wrap-up time. #6726 (ZX81)bweschke1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25563 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15ensure that agents logged in via the manager interface are stored in the ↵kpfleming1-0/+2
persistence database (related to issue #6301) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@10137 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13fix spelling errors (issue #6227)russell1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8047 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11move variable to correct scope (issue #6197)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7986 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06update agent persistence when an agent gets logged off by autologoffkpfleming1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7829 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-05send device state updates for auto-logoff of agents as wellkpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7809 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26cast time_t to an int in printf/scanf (issue #5635)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-21Bug #6040 - Documentation correctionbweschke1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7580 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13only report AGENT_IDLE for callback mode agents when they are actually idle ↵kpfleming1-1/+1
(issue #5902) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7449 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-02protect agent_bridgedchannel() from segfaulting when there is no bridged ↵kpfleming1-7/+8
channel (issue #5879) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7271 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-08more header include simplificationkpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7023 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06don't loop forever on an invalid options string (issue #5629)russell1-9/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6989 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06issue #5605russell1-2/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03major update to arg/option parsing APIs and documentationkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6953 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28fix remaining breakage from yesterday's changeskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6881 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28use new app-argument macros, and try to fix yesterday's breakagekpfleming1-30/+24
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6880 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27Remove unnecessary checks before calls to ast_strlen_zero. Also, changerussell1-9/+9
some places where strlen is used instead of ast_strlen_zero git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26fix up arguments to AgentCallbackLogin so that the options string and therussell1-49/+39
specified extension do not conflict. This also makes the application not assume that the extension is numeric. While we're at it, include some code cleanup - strcpy to ast_copy_string, and cleanups to LOCAL_USER handling. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6856 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-4/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-14support sending text through agent channels (issue #5295)kpfleming1-0/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6787 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13properly display connected channel name in 'agents' manager action for ↵kpfleming1-12/+11
non-callback agents (issue #5235) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6766 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13Fix seg in chan_agent (bug #5402)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6757 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-05don't check 'acknowledged' for setting lastdisc, since it's guaranteed to be ↵kpfleming1-1/+1
zero at this point (issue #5254) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6736 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-28Remove possibility of manager deadlocks from manager actionsmarkster1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6687 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-26fix some buglets in 'agents' Manager action (issue #5235)kpfleming1-3/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6657 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-5/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14more documentation (issue #5174)kpfleming1-7/+70
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6583 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14ensure that agent channels don't get seized during login (issue #5020)kpfleming1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6577 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14ensure that the AGENTBYCALLERID_* variable is cleared when an agent logs in ↵kpfleming1-9/+9
to a different device (issue #5213) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6575 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14partial formatting cleanupkpfleming1-291/+275
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6574 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07add doxygen documentation (issue #5133)kpfleming1-33/+75
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6536 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-26add AgentCallbackLogin and AgentLogoff manager actions (issue #4766)kpfleming1-36/+170
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6427 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25add line break after show agents output (bug #4768)russell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6186 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-33/+14
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-15make 'Agents' manager action conform to protocol (bug #4723)kpfleming1-1/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6141 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-08queue device state changes and handle them serially in a background threadkpfleming1-0/+1
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: http://svn.digium.com/svn/asterisk/trunk@6062 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-06ensure that AGENTBYCALLERID is set for agents being reloaded from persistent ↵kpfleming1-2/+3
storage git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6039 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-06remember CallerID in AgentCallbackLogin, so it can be used at logoff timekpfleming1-16/+46
use stored CallerID when auto-logoff occurs to clear AGENTBYCALLERID variable (bug #4616) persist stored CallerID into/out of astdb git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6036 f38db490-d61c-443f-a65b-d21fe96a405b