[asterisk-commits] bweschke: branch bweschke/polycom_acd_on_1.4 r97033 - /team/bweschke/polycom_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 8 05:56:33 CST 2008


Author: bweschke
Date: Tue Jan  8 05:56:33 2008
New Revision: 97033

URL: http://svn.digium.com/view/asterisk?view=rev&rev=97033
Log:
 Progress commit - starting to add in code to get the agent logged in on the chan_agent side once chan_sip has successfully auth'd them.


Modified:
    team/bweschke/polycom_acd_on_1.4/channels/chan_agent.c

Modified: team/bweschke/polycom_acd_on_1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/polycom_acd_on_1.4/channels/chan_agent.c?view=diff&rev=97033&r1=97032&r2=97033
==============================================================================
--- team/bweschke/polycom_acd_on_1.4/channels/chan_agent.c (original)
+++ team/bweschke/polycom_acd_on_1.4/channels/chan_agent.c Tue Jan  8 05:56:33 2008
@@ -1834,6 +1834,27 @@
 	}
 	AST_LIST_UNLOCK(&agents);
 	return secret;
+}
+
+/*!
+ * \brief Callback that chan_sip uses to login agents in callback mode once they've been auth'd.
+ * 
+ * \param agentid
+ * \param exten
+ * \param context
+ */
+int agent_cb_login(const char *agentid, const char *extenid, const char *context)
+{
+	struct agent_pvt *p;
+
+	AST_LIST_LOCK(&agents);
+	AST_LIST_TRAVERSE(&agents, p, list) {
+		if (!strcmp(p->agent, agentid) && !p->pending) {
+
+		}	
+	}
+	AST_LIST_UNLOCK(&agents);
+	return 0;	
 }
 
 /*!




More information about the asterisk-commits mailing list