Skip to content
Snippets Groups Projects
Commit 57ad1de6 authored by Joshua Colp's avatar Joshua Colp
Browse files

Reference will be kept in the application component only right now. In the...

Reference will be kept in the application component only right now. In the future this should be expanded to the channel driver (just like all the other channel drivers) (issue #7975 reported by andrewt)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ec4bf7a8
Branches
Tags
No related merge requests found
...@@ -196,7 +196,6 @@ struct agent_pvt { ...@@ -196,7 +196,6 @@ struct agent_pvt {
char loginchan[80]; /**< channel they logged in from */ char loginchan[80]; /**< channel they logged in from */
char logincallerid[80]; /**< Caller ID they had when they logged in */ char logincallerid[80]; /**< Caller ID they had when they logged in */
struct ast_channel *chan; /**< Channel we use */ struct ast_channel *chan; /**< Channel we use */
struct ast_module_user *u; /*! reference to keep our module in memory while in use */
AST_LIST_ENTRY(agent_pvt) list; /**< Next Agent in the linked list. */ AST_LIST_ENTRY(agent_pvt) list; /**< Next Agent in the linked list. */
}; };
...@@ -740,8 +739,6 @@ static int agent_hangup(struct ast_channel *ast) ...@@ -740,8 +739,6 @@ static int agent_hangup(struct ast_channel *ast)
* as in apps/app_chanisavail.c:chanavail_exec() * as in apps/app_chanisavail.c:chanavail_exec()
*/ */
ast_module_user_remove(p->u);
if (option_debug) if (option_debug)
ast_log(LOG_DEBUG, "Hangup called for state %s\n", ast_state2str(ast->_state)); ast_log(LOG_DEBUG, "Hangup called for state %s\n", ast_state2str(ast->_state));
if (p->start && (ast->_state != AST_STATE_UP)) { if (p->start && (ast->_state != AST_STATE_UP)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment