[Freeswitch-svn] [commit] r10292 - freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax

Freeswitch SVN gmaruzz at freeswitch.org
Fri Nov 7 11:42:58 PST 2008


Author: gmaruzz
Date: Fri Nov  7 12:10:44 2008
New Revision: 10292

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c

Log:
skypiax: use localhost (not INADDR_ANY) for Audio (will it works?)

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/mod_skypiax.c	Fri Nov  7 12:10:44 2008
@@ -192,8 +192,9 @@
   }
   memset(&my_addr, 0, sizeof(my_addr));
   my_addr.sin_family = AF_INET;
-  my_addr.sin_addr.s_addr = INADDR_ANY;
-  my_addr.sin_port = htons(5556);
+  //my_addr.sin_addr.s_addr = INADDR_ANY;
+  my_addr.sin_addr.s_addr = htonl(0x7f000001); /* use the localhost */
+  my_addr.sin_port = htons(5556); //FIXME configurable!
 
   if ((s = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
     ERRORA("socket Error\n", SKYPIAX_P_LOG);
@@ -278,8 +279,9 @@
   }
   memset(&my_addr, 0, sizeof(my_addr));
   my_addr.sin_family = AF_INET;
-  my_addr.sin_addr.s_addr = INADDR_ANY;
-  my_addr.sin_port = htons(5558);
+  //my_addr.sin_addr.s_addr = INADDR_ANY;
+  my_addr.sin_addr.s_addr = htonl(0x7f000001); /* use the localhost */
+  my_addr.sin_port = htons(5558); //FIXME configurable!
 
   if ((s = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
     ERRORA("socket Error\n", SKYPIAX_P_LOG);



More information about the Freeswitch-svn mailing list