From 7fd9f69f2649c98d3401397bafb0e477d5587559 Mon Sep 17 00:00:00 2001 From: Giovanni Maruzzelli Date: Sun, 29 Mar 2009 08:18:10 +0000 Subject: [PATCH] skypiax: configs/client.c spawn netcats git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12830 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skypiax/configs/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skypiax/configs/client.c b/src/mod/endpoints/mod_skypiax/configs/client.c index fc941dd741..019add20bf 100644 --- a/src/mod/endpoints/mod_skypiax/configs/client.c +++ b/src/mod/endpoints/mod_skypiax/configs/client.c @@ -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 &"); +system("/bin/nc -l -p 15556 0/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");