[asterisk-commits] branch bweschke/polycom_acd_functions - r7727 in /team/bweschke/polycom_acd_f...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jan 2 22:04:10 CST 2006


Author: bweschke
Date: Mon Jan  2 22:04:08 2006
New Revision: 7727

URL: http://svn.digium.com/view/asterisk?rev=7727&view=rev
Log:
 Cleanups.


Modified:
    team/bweschke/polycom_acd_functions/channel.c
    team/bweschke/polycom_acd_functions/channels/chan_agent.c
    team/bweschke/polycom_acd_functions/include/asterisk/agents.h

Modified: team/bweschke/polycom_acd_functions/channel.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/polycom_acd_functions/channel.c?rev=7727&r1=7726&r2=7727&view=diff
==============================================================================
--- team/bweschke/polycom_acd_functions/channel.c (original)
+++ team/bweschke/polycom_acd_functions/channel.c Mon Jan  2 22:04:08 2006
@@ -3732,6 +3732,12 @@
 	ast_agent_callback_logout_ptr = logout_ptr;
 }
 
+void ast_uninstall_agent_functions(void)
+{
+	ast_agent_callback_login_ptr = NULL;
+	ast_agent_callback_logout_ptr = NULL;
+}
+
 void ast_install_music_functions(int (*start_ptr)(struct ast_channel *, char *),
 								 void (*stop_ptr)(struct ast_channel *),
 								 void (*cleanup_ptr)(struct ast_channel *)

Modified: team/bweschke/polycom_acd_functions/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/polycom_acd_functions/channels/chan_agent.c?rev=7727&r1=7726&r2=7727&view=diff
==============================================================================
--- team/bweschke/polycom_acd_functions/channels/chan_agent.c (original)
+++ team/bweschke/polycom_acd_functions/channels/chan_agent.c Mon Jan  2 22:04:08 2006
@@ -2604,6 +2604,7 @@
 		ast_log(LOG_WARNING, "Unable to lock the monitor\n");
 		return -1;
 	}		
+	ast_uninstall_agent_functions();
 	return 0;
 }
 

Modified: team/bweschke/polycom_acd_functions/include/asterisk/agents.h
URL: http://svn.digium.com/view/asterisk/team/bweschke/polycom_acd_functions/include/asterisk/agents.h?rev=7727&r1=7726&r2=7727&view=diff
==============================================================================
--- team/bweschke/polycom_acd_functions/include/asterisk/agents.h (original)
+++ team/bweschke/polycom_acd_functions/include/asterisk/agents.h Mon Jan  2 22:04:08 2006
@@ -34,15 +34,16 @@
     \param wrapuptime
     \param ackcall
 */
-extern int agent_callback_login(char *agent, char *exten, char *context, char *wrapuptime, char *ackcall);
-
-/*! Turn on music on hold on a given channel */
 extern int ast_agent_callback_login(char *agent, char *exten, char *context, char *wrapuptime, char *ackcall);
 
-/*! Turn off music on hold on a given channel */
+/*! \brief Logout an agent for Asterisk 
+ *  \param agent
+*/
 extern void ast_agent_callback_logout(char *agent);
 
 extern void ast_install_agent_functions(int (*login_ptr)(char *, char *, char *, char *, char*), void (*logout_ptr)(char *));
+
+extern void ast_uninstall_agent_functions(void);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }



More information about the asterisk-commits mailing list