[asterisk-commits] dvossel: branch dvossel/gtalk_fixup r289796 - /team/dvossel/gtalk_fixup/chann...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 1 14:00:20 CDT 2010


Author: dvossel
Date: Fri Oct  1 14:00:16 2010
New Revision: 289796

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=289796
Log:
fixes error during negotiation of gtalk call

Modified:
    team/dvossel/gtalk_fixup/channels/chan_gtalk.c

Modified: team/dvossel/gtalk_fixup/channels/chan_gtalk.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/gtalk_fixup/channels/chan_gtalk.c?view=diff&rev=289796&r1=289795&r2=289796
==============================================================================
--- team/dvossel/gtalk_fixup/channels/chan_gtalk.c (original)
+++ team/dvossel/gtalk_fixup/channels/chan_gtalk.c Fri Oct  1 14:00:16 2010
@@ -889,7 +889,7 @@
 			break;
 		default:
 			ast_log(LOG_WARNING, "Client type is unknown\n");
-			iks_insert_attrib(gtalk, "type", "transport-info");
+			iks_insert_attrib(gtalk, "type", "candidates");
 			break;
 		}
 		iks_insert_attrib(gtalk, "id", sid);
@@ -1337,8 +1337,7 @@
 		sin.sin_family = AF_INET;
 		memcpy(&sin.sin_addr, hp->h_addr, sizeof(sin.sin_addr));
 		sin.sin_port = htons(tmp->port);
-		snprintf(username, sizeof(username), "%s%s", tmp->username,
-			 p->ourcandidates->username);
+		snprintf(username, sizeof(username), "%s%s", tmp->username, p->ourcandidates->username);
 
 		/* Find out the result of the STUN */
 		ast_rtp_instance_get_remote_address(p->rtp, &aux_tmp);




More information about the asterisk-commits mailing list