skypiax: configs/client.c spawn netcats

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12830 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Giovanni Maruzzelli 2009-03-29 08:18:10 +00:00
parent aea2c1a6d6
commit 7fd9f69f26
1 changed files with 6 additions and 1 deletions

View File

@ -245,7 +245,7 @@ int main(int argc, char *argv[])
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 @@ int main(int argc, char *argv[])
//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");