[asterisk-commits] branch mogorman/asterisk-xmpp r9350 - /team/mogorman/asterisk-xmpp/res/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 9 17:51:20 MST 2006


Author: mogorman
Date: Thu Feb  9 18:51:19 2006
New Revision: 9350

URL: http://svn.digium.com/view/asterisk?rev=9350&view=rev
Log:
more minor updates

Modified:
    team/mogorman/asterisk-xmpp/res/res_xmpp.c

Modified: team/mogorman/asterisk-xmpp/res/res_xmpp.c
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/res/res_xmpp.c?rev=9350&r1=9349&r2=9350&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/res/res_xmpp.c (original)
+++ team/mogorman/asterisk-xmpp/res/res_xmpp.c Thu Feb  9 18:51:19 2006
@@ -599,9 +599,7 @@
 	int res=0;
 	struct axi_client *client = ASTOBJ_REF((struct axi_client *) data);
 	while (res == IKS_OK) {
-		ast_verbose("waiting %d is the longest time\n",client->timeout);
 		res =iks_recv(client->p,1);
-		printf("res = %d\n",res);
 		if(res==IKS_HOOK) {
 			ast_verbose("HOOK!!!!");
 			break;
@@ -615,9 +613,13 @@
 			res = -1;
 			ast_verbose("Network Timeout");
 		}
-
-	}
-	ast_verbose("\n\nIM NOT LISTENING!!!!!!!!!!!\n\n");
+		if(res==IKS_NET_RWERR) {
+			ast_verbose("Disconnected\n");
+			break;
+		}
+
+	}
+	ast_verbose("\n\nIM NOT LISTENING!!!!!!!!!!!\n\n res = %d\n", res);
 	if(client)
 		ASTOBJ_UNREF(client, axi_client_destroy);
 
@@ -1086,8 +1088,9 @@
 {
 	struct axi_client *client;
 	client = ASTOBJ_CONTAINER_FIND(&clients,"asterisk");
-	ast_axi_send(client,"ogorman at gmail.com","blah blah blah");
-	axi_send_call(client,"ogorman at gmail.com");
+	ast_axi_send(client, "mogorman at astjab.org", "blahblah");
+//	ast_axi_send(client,"ogorman at gmail.com","blah blah blah");
+//	axi_send_call(client,"ogorman at gmail.com");
 	if(client) {
 		ASTOBJ_CONTAINER_TRAVERSE(&client->buddies,1, {
 			ASTOBJ_RDLOCK(iterator);



More information about the asterisk-commits mailing list