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

FreeSWITCH SVN gmaruzz at freeswitch.org
Sun Nov 9 22:35:51 PST 2008


Author: gmaruzz
Date: Mon Nov 10 01:35:51 2008
New Revision: 10309

Log:
skypiax: cosmetics

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

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	Mon Nov 10 01:35:51 2008
@@ -267,6 +267,7 @@
 
   sin_size = sizeof(remote_addr);
   while ((fd = accept(s, (struct sockaddr *) &remote_addr, &sin_size)) > 0) {
+    DEBUGA_SKYPE("ACCEPTED\n", SKYPIAX_P_LOG);
     while (1) {
       len = recv(fd, in, sizeof(short) * GG, 0);
       if (len > 0) {
@@ -290,7 +291,7 @@
         }
 
       } else if (len == 0) {
-        DEBUGA_SKYPE("client GONE\n", SKYPIAX_P_LOG);
+        DEBUGA_SKYPE("Skype client GONE\n", SKYPIAX_P_LOG);
         break;
       } else {
         ERRORA("len=%d\n", SKYPIAX_P_LOG, len);
@@ -298,7 +299,7 @@
         break;
       }
     }
-    DEBUGA_SKYPE("client GONE\n", SKYPIAX_P_LOG);
+    DEBUGA_SKYPE("Skype client GONE\n", SKYPIAX_P_LOG);
     close(fd);
     if (exit)
       break;
@@ -372,7 +373,7 @@
         len = send(fd, out, got * 2, 0);
 
         if (len == 0) {
-          DEBUGA_SKYPE("client GONE\n", SKYPIAX_P_LOG);
+          DEBUGA_SKYPE("Skype server GONE\n", SKYPIAX_P_LOG);
           break;
         }
       } else {
@@ -380,11 +381,11 @@
       }
 
     }
-    DEBUGA_SKYPE("client GONE\n", SKYPIAX_P_LOG);
+    DEBUGA_SKYPE("Skype server GONE\n", SKYPIAX_P_LOG);
     close(fd);
   }
 
-  DEBUGA_SKYPE("server (I am it) GONE\n", SKYPIAX_P_LOG);
+  DEBUGA_SKYPE("client (I am it) GONE\n", SKYPIAX_P_LOG);
   close(s);
   if (option_debug > 10) {
     DEBUGA_PBX("EXITING FUNC\n", SKYPIAX_P_LOG);
@@ -1130,8 +1131,7 @@
         if (i < 20) {           /* last fragment */
           write(AsteriskHandlesAst->fdesc[1], b, strlen(b) + 1);
           //write(AsteriskHandlesAst->fdesc[1], "\0", 1);
-          DEBUGA_SKYPE("SKYPE pipewrite: |||%s|||len=%d serial=%ld\n\n\n", SKYPIAX_P_LOG, b,
-                       strlen(b) + 1, an_event.xclient.serial);
+          //FIXME DEBUGA_SKYPE("SKYPE pipewrite: |||%s|||len=%d serial=%ld\n\n\n", SKYPIAX_P_LOG, b, strlen(b) + 1, an_event.xclient.serial);
           //usleep(1000);
           memset(buffer, '\0', 17000);
         }



More information about the Freeswitch-svn mailing list