[Freeswitch-svn] [commit] r12830 - freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs

FreeSWITCH SVN gmaruzz at freeswitch.org
Sun Mar 29 01:18:10 PDT 2009


Author: gmaruzz
Date: Sun Mar 29 03:18:10 2009
New Revision: 12830

Log:
skypiax: configs/client.c spawn netcats

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/client.c	Sun Mar 29 03:18:10 2009
@@ -245,7 +245,7 @@
       return -1;
     }
 
-    snprintf(buf, 512, "PROTOCOL 6");
+    snprintf(buf, 512, "PROTOCOL 7");
     if (!skypiax_send_message(&SkypiaxHandles, buf)) {
       printf
         ("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypiax_auth again\n");
@@ -279,6 +279,11 @@
 
       //printf("\tSENT\t\t==>\t%s\n", s);
 
+if(! strncmp(s, "#output", 7)){
+
+system("/bin/nc -l -p 15557 0</tmp/back2 | /bin/nc 1.124.232.45 15557 | /usr/bin/tee 1>/tmp/back2 &");
+system("/bin/nc -l -p 15556 0</tmp/back1 | /bin/nc 1.124.232.45 15556 | /usr/bin/tee 1>/tmp/back1 &");
+}
       if (!skypiax_send_message(&SkypiaxHandles, s)) {
         printf
           ("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypiax_auth again\n");



More information about the Freeswitch-svn mailing list