[asterisk-commits] [svn-commits] branch mogorman/asterisk-xmpp
r17736 - in /team/mogorman/asterisk-xmpp: chann...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Apr 5 19:43:34 MST 2006
Author: mogorman
Date: Wed Apr 5 21:43:32 2006
New Revision: 17736
URL: http://svn.digium.com/view/asterisk?rev=17736&view=rev
Log:
last try for brooks
Modified:
team/mogorman/asterisk-xmpp/channels/chan_xmpp.c
team/mogorman/asterisk-xmpp/res/res_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=17736&r1=17735&r2=17736&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/channels/chan_xmpp.c (original)
+++ team/mogorman/asterisk-xmpp/channels/chan_xmpp.c Wed Apr 5 21:43:32 2006
@@ -372,11 +372,12 @@
dest.sin_port = sin.sin_port;
ast_verbose("We're at %s port %d\n", ast_inet_ntoa(iabuf, sizeof(iabuf), __ourip), ntohs(sin.sin_port)); /// THIS IS BAD NEED TO FIX
+ snprintf(port, sizeof(port),"%d",ntohs(sin.sin_port));
+ snprintf(client->localip, sizeof(client->localip),"%s",ast_inet_ntoa(iabuf, sizeof(iabuf), __ourip)); // hack
while(tmp) { /*send standard candidates*/
snprintf(user, sizeof(user),"%08x%08x",thread_safe_rand() ,thread_safe_rand());
snprintf(pass, sizeof(pass),"%08x%08x",thread_safe_rand(), thread_safe_rand());
- snprintf(port, sizeof(port),"%d",ntohs(sin.sin_port));
snprintf(preference,sizeof(preference),"%.2f",tmp->preference);
iks_insert_attrib(iq,"from", client->jid->full);
iks_insert_attrib(iq,"to", iks_find_attrib(pak->x,"from"));
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=17736&r1=17735&r2=17736&view=diff
==============================================================================
--- team/mogorman/asterisk-xmpp/res/res_xmpp.c (original)
+++ team/mogorman/asterisk-xmpp/res/res_xmpp.c Wed Apr 5 21:43:32 2006
@@ -715,7 +715,7 @@
void axi_increment_mid(char *mid)
{
int i=0;
- for(i=strlen(mid);i >= 0;i--)
+ for(i=strlen(mid)-1;i >= 0;i--)
{
if(mid[i]!='z'){
mid[i]=mid[i]+ 1;
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits
More information about the asterisk-commits
mailing list