[asterisk-commits] branch mogorman/asterisk-xmpp r18480 -
/team/mogorman/asterisk-xmpp/channels/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Apr 7 16:34:52 MST 2006
Author: mogorman
Date: Fri Apr 7 18:34:51 2006
New Revision: 18480
URL: http://svn.digium.com/view/asterisk?rev=18480&view=rev
Log:
hacky sack
Modified:
team/mogorman/asterisk-xmpp/channels/chan_xmpp.c
Modified: team/mogorman/asterisk-xmpp/channels/chan_xmpp.c
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/channels/chan_xmpp.c?rev=18480&r1=18479&r2=18480&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/channels/chan_xmpp.c (original)
+++ team/mogorman/asterisk-xmpp/channels/chan_xmpp.c Fri Apr 7 18:34:51 2006
@@ -1097,11 +1097,30 @@
return 1;
}
+
+static int proof_of_concept(void *udata, ikspak *pak)
+{
+ struct axi_client *client;
+ client = (struct axi_client *)malloc(sizeof(struct axi_client));
+ memset(client,0,sizeof(struct axi_client));
+
+ client =ASTOBJ_REF((struct axi_client *) udata);
+ ast_verbose("\n\n\n\n\nXXXXXXXXXXX PASSED AROUND LIKE A HACKY SACK\n");
+ return IKS_FILTER_EAT;
+}
+
/*! \brief Load module into PBX, register channel */
int load_module()
{
sched = sched_context_create();
+
+ //BAD TAKE OUT
+ struct axi_client *client = NULL;
+ client = ast_axi_get_client("asterisk");
+ iks_filter_add_rule(client->f, proof_of_concept, client , IKS_RULE_TYPE, IKS_PAK_IQ, IKS_RULE_SUBTYPE, IKS_TYPE_RESULT, IKS_RULE_DONE);
+ //
+
if (!sched) {
ast_log(LOG_WARNING, "Unable to create schedule context\n");
}
More information about the asterisk-commits
mailing list