Re: [GnomeMeeting-list] STUN could not create socket pair!



In case you would like to try it.


Le mardi 28 mars 2006 à 09:22 +0200, Guido on Debian a écrit :
> Damien Sandras wrote:
> > Le lundi 27 mars 2006 à 13:20 +0200, Guido on Debian a écrit :
> >   
> >> Dear Damien,
> >>
> >> I'm having issues similar to the one reported on the mail stored at 
> >> http://mail.gnome.org/archives/gnomemeeting-devel-list/2006-March/msg00004.html.
> >> I have a SMC Barricade (don't remember the model), using
> >> Ekiga 2.0.1-20060321-01 with Debian unstable on PowerPC.  Below is the 
> >> "-d 4" log.
> >>
> >> Is it possible to solve the problem? Would you accept any funding for that?
> >>
> >>     
> >
> > If you want to make a donation, you can always do one. I'm reusing the
> > donations when going to conferences to promote Ekiga.
> >   
> > Anyway, I bought a new router that also has the same problem. The
> > problem is that it can create STUN sockets, but not consecutive STUN
> > sockets. I think that in that case, we could simply try creating the RTP
> > socket, and ignore the RTCP socket. That won't harm.
> >
> > I'm working on a fix (that works), let's see if Craig accepts it...
> >   
> Fine, thanks!
> 
> Ciao,
> Guido
> _______________________________________________
> GnomeMeeting-list mailing list
> GnomeMeeting-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnomemeeting-list
-- 
 _      Damien Sandras
(o-     
//\     Ekiga Softphone: http://www.ekiga.org/
v_/_    FOSDEM 2006    : http://www.fosdem.org/
        SIP Phone      : sip:dsandras ekiga net
                         sip:600000 ekiga net
Index: src/rtp/rtp.cxx
===================================================================
RCS file: /cvsroot/openh323/opal/src/rtp/rtp.cxx,v
retrieving revision 2.28
diff -u -r2.28 rtp.cxx
--- src/rtp/rtp.cxx	2 Feb 2006 07:03:44 -0000	2.28
+++ src/rtp/rtp.cxx	27 Mar 2006 20:20:10 -0000
@@ -1657,8 +1657,17 @@
       controlSocket->GetLocalAddress(localAddress, localControlPort);
     }
     else {
-      PTRACE(1, "RTP\tSTUN could not create socket pair!");
-      return FALSE;
+      PTRACE(1, "RTP\tSTUN could not create RTP/RTCP socket pair; trying to create RTP socket anyway.");
+      if (stun->CreateSocket(dataSocket)) {
+	dataSocket->GetLocalAddress(localAddress, localDataPort);
+      }
+      else {
+	PTRACE(1, "RTP\tSTUN could not create RTP socket either.");
+	return FALSE;
+      }
+      if (stun->CreateSocket(controlSocket)) {
+	controlSocket->GetLocalAddress(localAddress, localControlPort);
+      }
     }
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]