[Freeswitch-branches] [commit] r10989 - in freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax: . configs

FreeSWITCH SVN gmaruzz at freeswitch.org
Mon Dec 29 10:36:45 PST 2008


Author: gmaruzz
Date: Mon Dec 29 13:36:45 2008
New Revision: 10989

Log:
skypiax: config and startup files, and make it compile on 64bit machines, let's hope it still compile on 32bit. I'll check it tomorrow

Modified:
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/configs/startskype.sh
   freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/configs/startskype.sh
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/configs/startskype.sh	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/configs/startskype.sh	Mon Dec 29 13:36:45 2008
@@ -1,3 +1,6 @@
+# remember to add here the removing of all the installed snd-* modules, so you're sure only the snd-dummy driver will be around
+rmmod snd_hda_intel
+
 # you need three dummy soundcard for 20 Skype client instances, because each dummy soundcard can handle a max of 8 Skype instances
 # the enable= module parameter tells how many cards to start. For each additional card, add a comma and a 1
 # configure the first 8 Skype client instances to use the hw:Dummy_0, the next 8 instances to use hw:Dummy_1, etc for all three devices (Play, Capture, Ring)
@@ -5,125 +8,125 @@
 sleep 5
 
 #start the fake X server on a given port
-Xvfb :101 &
+/usr/bin/Xvfb :101 &
 sleep 5
 
 # start a Skype client instance that will connect to the X server above, and will login to the Skype network using the "username password" you send to it on stdin. Here xxx would be the password and skypiax1 the username
-echo "skypiax1 xxx"| DISPLAY=:101 /usr/bin/skype.static --pipelogin &
+echo "skypiax1 xxx"| DISPLAY=:101 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :102 &
+/usr/bin/Xvfb :102 &
 sleep 5
 
-echo "skypiax2 xxx"| DISPLAY=:102 /usr/bin/skype.static --pipelogin &
+echo "skypiax2 xxx"| DISPLAY=:102 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :103 &
+/usr/bin/Xvfb :103 &
 sleep 5
 
-echo "skypiax3 xxx"| DISPLAY=:103 /usr/bin/skype.static --pipelogin &
+echo "skypiax3 xxx"| DISPLAY=:103 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :104 &
+/usr/bin/Xvfb :104 &
 sleep 5
 
-echo "skypiax4 xxx"| DISPLAY=:104 /usr/bin/skype.static --pipelogin &
+echo "skypiax4 xxx"| DISPLAY=:104 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :105 &
+/usr/bin/Xvfb :105 &
 sleep 5
 
-echo "skypiax5 xxx"| DISPLAY=:105 /usr/bin/skype.static --pipelogin &
+echo "skypiax5 xxx"| DISPLAY=:105 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :106 &
+/usr/bin/Xvfb :106 &
 sleep 5
 
-echo "skypiax6 xxx"| DISPLAY=:106 /usr/bin/skype.static --pipelogin &
+echo "skypiax6 xxx"| DISPLAY=:106 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :107 &
+/usr/bin/Xvfb :107 &
 sleep 5
 
-echo "skypiax7 xxx"| DISPLAY=:107 /usr/bin/skype.static --pipelogin &
+echo "skypiax7 xxx"| DISPLAY=:107 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :108 &
+/usr/bin/Xvfb :108 &
 sleep 5
 
-echo "skypiax8 xxx"| DISPLAY=:108 /usr/bin/skype.static --pipelogin &
+echo "skypiax8 xxx"| DISPLAY=:108 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :109 &
+/usr/bin/Xvfb :109 &
 sleep 5
 
-echo "skypiax9 xxx"| DISPLAY=:109 /usr/bin/skype.static --pipelogin &
+echo "skypiax9 xxx"| DISPLAY=:109 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :110 &
+/usr/bin/Xvfb :110 &
 sleep 5
 
-echo "skypiax10 xxx"| DISPLAY=:110 /usr/bin/skype.static --pipelogin &
+echo "skypiax10 xxx"| DISPLAY=:110 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :111 &
+/usr/bin/Xvfb :111 &
 sleep 5
 
-echo "skypiax11 xxx"| DISPLAY=:111 /usr/bin/skype.static --pipelogin &
+echo "skypiax11 xxx"| DISPLAY=:111 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :112 &
+/usr/bin/Xvfb :112 &
 sleep 5
 
-echo "skypiax12 xxx"| DISPLAY=:112 /usr/bin/skype.static --pipelogin &
+echo "skypiax12 xxx"| DISPLAY=:112 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :113 &
+/usr/bin/Xvfb :113 &
 sleep 5
 
-echo "skypiax13 xxx"| DISPLAY=:113 /usr/bin/skype.static --pipelogin &
+echo "skypiax13 xxx"| DISPLAY=:113 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :114 &
+/usr/bin/Xvfb :114 &
 sleep 5
 
-echo "skypiax14 xxx"| DISPLAY=:114 /usr/bin/skype.static --pipelogin &
+echo "skypiax14 xxx"| DISPLAY=:114 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :115 &
+/usr/bin/Xvfb :115 &
 sleep 5
 
-echo "skypiax15 xxx"| DISPLAY=:115 /usr/bin/skype.static --pipelogin &
+echo "skypiax15 xxx"| DISPLAY=:115 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :116 &
+/usr/bin/Xvfb :116 &
 sleep 5
 
-echo "skypiax16 xxx"| DISPLAY=:116 /usr/bin/skype.static --pipelogin &
+echo "skypiax16 xxx"| DISPLAY=:116 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :117 &
+/usr/bin/Xvfb :117 &
 sleep 5
 
-echo "skypiax17 xxx"| DISPLAY=:117 /usr/bin/skype.static --pipelogin &
+echo "skypiax17 xxx"| DISPLAY=:117 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :118 &
+/usr/bin/Xvfb :118 &
 sleep 5
 
-echo "skypiax18 xxx"| DISPLAY=:118 /usr/bin/skype.static --pipelogin &
+echo "skypiax18 xxx"| DISPLAY=:118 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :119 &
+/usr/bin/Xvfb :119 &
 sleep 5
 
-echo "skypiax19 xxx"| DISPLAY=:119 /usr/bin/skype.static --pipelogin &
+echo "skypiax19 xxx"| DISPLAY=:119 /usr/bin/skype --pipelogin &
 
 sleep 10
-Xvfb :120 &
+/usr/bin/Xvfb :120 &
 sleep 5
 
-echo "skypiax20 xxx"| DISPLAY=:120 /usr/bin/skype.static --pipelogin &
+echo "skypiax20 xxx"| DISPLAY=:120 /usr/bin/skype --pipelogin &
 
 sleep 10
 

Modified: freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c
==============================================================================
--- freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	(original)
+++ freeswitch/branches/gmaruzz/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	Mon Dec 29 13:36:45 2008
@@ -190,7 +190,7 @@
 				      howmany = write(p->audiopipe[1], srv_in, howmany);
 #endif /* WIN32 */
 				      p->audiobuf_is_loaded = 0;
-				      WARNINGA("SRV PIPE WRITE=====> req=%d recv=%d to sent=%d sent=%d\n", SKYPIAX_P_LOG, sizeof(short)*SAMPLES_PER_FRAME, len, len, howmany);
+				      WARNINGA("SRV PIPE WRITE=====> req=%lu recv=%d to sent=%d sent=%u\n", SKYPIAX_P_LOG, sizeof(short)*SAMPLES_PER_FRAME, len, len, howmany);
 			      }else if (len == SAMPLES_PER_FRAME * sizeof(short) / 2) {
 
 #if 1
@@ -570,7 +570,7 @@
 
     if (samples != SAMPLES_PER_FRAME * sizeof(short)) {
       if (samples)
-        ERRORA("SRV PIPE READ=====> NOT GOOD samples=%d expected=%d\n", SKYPIAX_P_LOG,
+        ERRORA("SRV PIPE READ=====> NOT GOOD samples=%u expected=%lu\n", SKYPIAX_P_LOG,
                      samples, SAMPLES_PER_FRAME * sizeof(short));
       //do nothing
     } else {



More information about the Freeswitch-branches mailing list