[asterisk-commits] branch mogorman/asterisk-xmpp r21783 - /team/mogorman/asterisk-xmpp/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Apr 20 23:57:39 MST 2006


Author: mogorman
Date: Fri Apr 21 01:57:39 2006
New Revision: 21783

URL: http://svn.digium.com/view/asterisk?rev=21783&view=rev
Log:
hmm thats odd

Modified:
    team/mogorman/asterisk-xmpp/channels/chan_jingle.c

Modified: team/mogorman/asterisk-xmpp/channels/chan_jingle.c
URL: http://svn.digium.com/view/asterisk/team/mogorman/asterisk-xmpp/channels/chan_jingle.c?rev=21783&r1=21782&r2=21783&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/channels/chan_jingle.c (original)
+++ team/mogorman/asterisk-xmpp/channels/chan_jingle.c Fri Apr 21 01:57:39 2006
@@ -521,22 +521,26 @@
 {
 	struct jingle_pvt *tmp = NULL;
 	struct aji_resource *resources = NULL;
-	char idroster[100];
+	char idroster[200];
 
 	if(!sid && !strchr(from,"/")) { /*I started call! */
 		resources=client->buddy->resources;
 		while(resources) {
-			if(resources->jinglecapable)
+			if(resources->jinglecapable) {
+				ast_verbose("WOW FOUND\n");
 				break;
+			}
 			resources=resources->next;
 		}
+		ast_verbose("oh indeed %s\n",resources->resource);
 		if(resources)
-			sprintf(idroster,sizeof(idroster), "%s/%s",client->user,resources->resource);
+			snprintf(idroster,sizeof(idroster), "%s/%s",client->user,resources->resource);
 		else {
 			ast_log(LOG_ERROR, "no jingle capable clients to talk to.");
 			return NULL;
 		}
 	}
+	ast_verbose("oh indeed %s\n",idroster);
 	if (!(tmp = ast_calloc(1, sizeof(*tmp)))) {
 		return NULL;
 	}
@@ -750,7 +754,7 @@
 		ast_log(LOG_WARNING, "Unable to allocate jingle structure!\n");
 		return -1;
 	}
-	chan = jingle_new(client, p, AST_STATE_DOWN, pak->from->user);
+	chan = jingle_new(client, p, AST_STATE_RING, pak->from->user);
 	if (chan) {
 		ast_mutex_lock(&p->lock);
 		ast_copy_string(p->from, pak->from->full, sizeof(p->from));



More information about the asterisk-commits mailing list