mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 19:24:14 +00:00
[mod_skypopen] Remove from tree.
This commit is contained in:
1 parent
c409fe6b45
commit
8c5efce33e
65 files changed
-18466
No files matched your search
@@ -39,9 +39,6 @@
|
||||
/endpoints/mod_skinny/Makefile
|
||||
/endpoints/mod_skinny/Makefile.in
|
||||
/endpoints/mod_skinny/mod_skinny.log
|
||||
/endpoints/mod_skypopen/Makefile
|
||||
/endpoints/mod_skypopen/Makefile.in
|
||||
/endpoints/mod_skypopen/mod_skypopen.log
|
||||
/endpoints/mod_sofia/Makefile
|
||||
/endpoints/mod_sofia/Makefile.in
|
||||
/endpoints/mod_sofia/mod_sofia.log
|
||||
|
||||
@@ -7,7 +7,6 @@ uninstall: $(OUR_UNINSTALL_MODULES) $(OUR_DISABLED_UNINSTALL_MODULES)
|
||||
print_tests: $(OUR_TEST_MODULES)
|
||||
check: $(OUR_CHECK_MODULES)
|
||||
|
||||
mod_skypopen-all: mod_gsmopen-all
|
||||
mod_gsmopen-all: mod_spandsp-all
|
||||
|
||||
$(OUR_MODULES) $(OUR_CLEAN_MODULES) $(OUR_INSTALL_MODULES) $(OUR_UNINSTALL_MODULES) $(OUR_DISABLED_MODULES) $(OUR_DISABLED_CLEAN_MODULES) $(OUR_DISABLED_INSTALL_MODULES) $(OUR_DISABLED_UNINSTALL_MODULES) $(OUR_TEST_MODULES) $(OUR_CHECK_MODULES):
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_skypopen
|
||||
|
||||
SPANDSP_DIR=$(switch_srcdir)/libs/spandsp
|
||||
SPANDSP_BUILDDIR=$(switch_builddir)/libs/spandsp
|
||||
SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
|
||||
|
||||
mod_LTLIBRARIES = mod_skypopen.la
|
||||
mod_skypopen_la_SOURCES = mod_skypopen.c skypopen_protocol.c
|
||||
mod_skypopen_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_skypopen_la_CPPFLAGS = -I$(SPANDSP_DIR)/src -I$(SPANDSP_BUILDDIR)/src -I.
|
||||
mod_skypopen_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA)
|
||||
mod_skypopen_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lX11
|
||||
|
||||
BUILT_SOURCES = $(SPANDSP_LA)
|
||||
|
||||
$(SPANDSP_LA): $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
|
||||
cd $(SPANDSP_BUILDDIR) && $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)"
|
||||
$(TOUCH_TARGET)
|
||||
@@ -1,8 +0,0 @@
|
||||
Skypopen, Skype Endpoint and Trunk
|
||||
|
||||
All documentation on compiling, using, configuring,
|
||||
tricks and tweaks, possible problems at:
|
||||
|
||||
http://wiki.freeswitch.org/wiki/Mod_skypopen_Skype_Endpoint_and_Trunk
|
||||
|
||||
mail to: < gmaruzz at gmail dot com >
|
||||
@@ -1,298 +0,0 @@
|
||||
//gcc -Wall -ggdb client.c -o client -lX11 -lpthread
|
||||
/*
|
||||
|
||||
Interactive client for the Skype API
|
||||
|
||||
USAGE: client [Xserver instance]
|
||||
|
||||
# ./client :103
|
||||
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <pthread.h>
|
||||
|
||||
Display *disp = NULL;
|
||||
|
||||
struct SkypopenHandles {
|
||||
Window skype_win;
|
||||
Display *disp;
|
||||
Window win;
|
||||
int api_connected;
|
||||
int fdesc[2];
|
||||
};
|
||||
|
||||
XErrorHandler old_handler = 0;
|
||||
int xerror = 0;
|
||||
char *dispname;
|
||||
|
||||
int X11_errors_handler(Display * dpy, XErrorEvent * err)
|
||||
{
|
||||
(void) dpy;
|
||||
|
||||
xerror = err->error_code;
|
||||
printf("\n\nReceived error code %d from X Server on display '%s'\n\n", xerror, dispname);
|
||||
return 0; /* ignore the error */
|
||||
}
|
||||
|
||||
static void X11_errors_trap(void)
|
||||
{
|
||||
xerror = 0;
|
||||
old_handler = XSetErrorHandler(X11_errors_handler);
|
||||
}
|
||||
|
||||
static int X11_errors_untrap(void)
|
||||
{
|
||||
XSetErrorHandler(old_handler);
|
||||
return (xerror != BadValue) && (xerror != BadWindow);
|
||||
}
|
||||
|
||||
int skypopen_send_message(struct SkypopenHandles *SkypopenHandles, const char *message_P)
|
||||
{
|
||||
|
||||
Window w_P;
|
||||
Display *disp;
|
||||
Window handle_P;
|
||||
int ok;
|
||||
|
||||
w_P = SkypopenHandles->skype_win;
|
||||
disp = SkypopenHandles->disp;
|
||||
handle_P = SkypopenHandles->win;
|
||||
|
||||
Atom atom1 = XInternAtom(disp, "SKYPECONTROLAPI_MESSAGE_BEGIN", False);
|
||||
Atom atom2 = XInternAtom(disp, "SKYPECONTROLAPI_MESSAGE", False);
|
||||
unsigned int pos = 0;
|
||||
unsigned int len = strlen(message_P);
|
||||
XEvent e;
|
||||
|
||||
memset(&e, 0, sizeof(e));
|
||||
e.xclient.type = ClientMessage;
|
||||
e.xclient.message_type = atom1; /* leading message */
|
||||
e.xclient.display = disp;
|
||||
e.xclient.window = handle_P;
|
||||
e.xclient.format = 8;
|
||||
|
||||
X11_errors_trap();
|
||||
do {
|
||||
unsigned int i;
|
||||
for (i = 0; i < 20 && i + pos <= len; ++i)
|
||||
e.xclient.data.b[i] = message_P[i + pos];
|
||||
XSendEvent(disp, w_P, False, 0, &e);
|
||||
|
||||
e.xclient.message_type = atom2; /* following messages */
|
||||
pos += i;
|
||||
} while (pos <= len);
|
||||
|
||||
//giovanni XSync(disp, False);
|
||||
XFlush(disp);
|
||||
ok = X11_errors_untrap();
|
||||
|
||||
if (!ok)
|
||||
printf("Sending message failed with status %d\n", xerror);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int skypopen_present(struct SkypopenHandles *SkypopenHandles)
|
||||
{
|
||||
Atom skype_inst = XInternAtom(SkypopenHandles->disp, "_SKYPE_INSTANCE", True);
|
||||
|
||||
Atom type_ret;
|
||||
int format_ret;
|
||||
unsigned long nitems_ret;
|
||||
unsigned long bytes_after_ret;
|
||||
unsigned char *prop;
|
||||
int status;
|
||||
|
||||
X11_errors_trap();
|
||||
status =
|
||||
XGetWindowProperty(SkypopenHandles->disp, DefaultRootWindow(SkypopenHandles->disp),
|
||||
skype_inst, 0, 1, False, XA_WINDOW, &type_ret, &format_ret, &nitems_ret, &bytes_after_ret, &prop);
|
||||
|
||||
X11_errors_untrap();
|
||||
/* sanity check */
|
||||
if (status != Success || format_ret != 32 || nitems_ret != 1) {
|
||||
SkypopenHandles->skype_win = (Window) - 1;
|
||||
printf("Skype instance not found on display '%s'\n", dispname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
SkypopenHandles->skype_win = *(const unsigned long *) prop & 0xffffffff;
|
||||
//printf("Skype instance found on display '%s', with id #%d\n", dispname, (unsigned int) SkypopenHandles->skype_win);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void skypopen_clean_disp(void *data)
|
||||
{
|
||||
|
||||
int *dispptr;
|
||||
int disp;
|
||||
|
||||
dispptr = data;
|
||||
disp = *dispptr;
|
||||
|
||||
if (disp) {
|
||||
close(disp);
|
||||
} else {
|
||||
}
|
||||
usleep(1000);
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
int value;
|
||||
char string[128];
|
||||
} thread_parm_t;
|
||||
|
||||
void *threadfunc(void *parm)
|
||||
{ //child
|
||||
thread_parm_t *p = (thread_parm_t *) parm;
|
||||
//printf("%s, parm = %d\n", p->string, p->value);
|
||||
free(p);
|
||||
|
||||
/* perform an events loop */
|
||||
XEvent an_event;
|
||||
char buf[21]; /* can't be longer */
|
||||
char buffer[17000];
|
||||
char *b;
|
||||
int i;
|
||||
|
||||
b = buffer;
|
||||
|
||||
while (1) {
|
||||
|
||||
XNextEvent(disp, &an_event);
|
||||
switch (an_event.type) {
|
||||
case ClientMessage:
|
||||
|
||||
if (an_event.xclient.format != 8)
|
||||
break;
|
||||
|
||||
for (i = 0; i < 20 && an_event.xclient.data.b[i] != '\0'; ++i)
|
||||
buf[i] = an_event.xclient.data.b[i];
|
||||
|
||||
buf[i] = '\0';
|
||||
|
||||
strcat(buffer, buf);
|
||||
|
||||
if (i < 20) { /* last fragment */
|
||||
unsigned int howmany;
|
||||
|
||||
howmany = strlen(b) + 1;
|
||||
|
||||
//printf("\tRECEIVED\t==>\t%s\n", b);
|
||||
printf("%s\n", b);
|
||||
fflush(stdout);
|
||||
memset(buffer, '\0', 17000);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
struct SkypopenHandles SkypopenHandles;
|
||||
char buf[512];
|
||||
//Display *disp = NULL;
|
||||
Window root = -1;
|
||||
Window win = -1;
|
||||
|
||||
if (argc == 2)
|
||||
dispname = argv[1];
|
||||
else
|
||||
dispname = ":0.0";
|
||||
|
||||
|
||||
if (!XInitThreads()) {
|
||||
printf("Not initialized XInitThreads!\n");
|
||||
} else {
|
||||
printf("Initialized XInitThreads!\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
disp = XOpenDisplay(dispname);
|
||||
if (!disp) {
|
||||
printf("Cannot open X Display '%s', exiting\n", dispname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int xfd;
|
||||
xfd = XConnectionNumber(disp);
|
||||
|
||||
SkypopenHandles.disp = disp;
|
||||
|
||||
if (skypopen_present(&SkypopenHandles)) {
|
||||
root = DefaultRootWindow(disp);
|
||||
win = XCreateSimpleWindow(disp, root, 0, 0, 1, 1, 0, BlackPixel(disp, DefaultScreen(disp)), BlackPixel(disp, DefaultScreen(disp)));
|
||||
|
||||
SkypopenHandles.win = win;
|
||||
|
||||
snprintf(buf, 512, "NAME skypopen");
|
||||
|
||||
if (!skypopen_send_message(&SkypopenHandles, buf)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
snprintf(buf, 512, "PROTOCOL 7");
|
||||
if (!skypopen_send_message(&SkypopenHandles, buf)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
snprintf(buf, 512, "#ciapalino PING");
|
||||
if (!skypopen_send_message(&SkypopenHandles, buf)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
pthread_t thread;
|
||||
int rc = 0;
|
||||
pthread_attr_t pta;
|
||||
thread_parm_t *parm = NULL;
|
||||
|
||||
rc = pthread_attr_init(&pta);
|
||||
|
||||
parm = malloc(sizeof(thread_parm_t));
|
||||
parm->value = 5;
|
||||
rc = pthread_create(&thread, NULL, threadfunc, (void *) parm);
|
||||
|
||||
while (1) {
|
||||
char s[512];
|
||||
|
||||
memset(s, '\0', 512);
|
||||
fgets(s, sizeof(s) - 1, stdin);
|
||||
s[strlen(s) - 1] = '\0';
|
||||
|
||||
//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 (!skypopen_send_message(&SkypopenHandles, s)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
printf("Skype client not found on display '%s'. Please run/restart Skype manually and launch skypopen_auth again\n\n\n", dispname);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
#######################################
|
||||
HOW TO USE SKYPOPEN_AUTH
|
||||
#######################################
|
||||
|
||||
You will use skypopen_auth only at the setup moment, to force the Skype client to ask you to authorize "skypopen" to connect to it.
|
||||
|
||||
Then you copy the .Skype configuration directory of the user that has launched Skype (eg: /home/maruzz/.Skype if you are maruzz) on the home directory of the user that will start Skype on the server (eg: root).
|
||||
|
||||
Compile skypopen_auth:
|
||||
$ gcc -Wall -ggdb skypopen_auth.c -o skypopen_auth -lX11
|
||||
|
||||
Then:
|
||||
|
||||
1) on a Linux desktop machine, rmmod all the snd* modules
|
||||
2) on the desktop machine, modprobe snd-dummy
|
||||
3) on the desktop machine, logout from your autologin username if any, launch the Skype client and login as the username you'll use on server
|
||||
4) on the desktop machine, set the desktop client to use the "hw:dummy" audio device, to not update, to not make "events", etc etc... Make and receive a couple of test calls. Please note that you (and the remote party) will hear nothing (you're using the snd-dummy "fake" audio driver), that's ok.
|
||||
3) on the desktop machine, when satisfied of the Skype client setup, use skypopen_auth (that simulates FS-skypopen connecting to the Skype client). The Skype client will ask you to be authorized to let "skypopen" connect.
|
||||
4) Give the authorization and check the "not ask me again" option.
|
||||
5) Close (Quit) the Skype client from the tray icon, so it saves its config.
|
||||
6) Then, relaunch the Skype client and use skypopen_auth again, just to be sure it now succeed.
|
||||
7) Close (Quit) the Skype client from the tray icon, so it saves its config.
|
||||
|
||||
*** Do the steps 1-7 for all Skype usernames you will want to use on the server (eg: one Skype username per channel)
|
||||
|
||||
When finished with all the Skype usernames:
|
||||
Copy or targzip the .Skype directory and all its content on the home directory of the server user that will launch the Skype client(s).
|
||||
|
||||
############################
|
||||
first time you use skypopen_auth
|
||||
############################
|
||||
$ ./skypopen_auth
|
||||
Skype instance found with id #27263062
|
||||
RECEIVED==> ERROR 68
|
||||
RECEIVED==> OK
|
||||
|
||||
############################
|
||||
Give the auth to the Skype client, and tell him not to ask again
|
||||
Then Ctrl-C to exit from skypopen_auth
|
||||
############################
|
||||
|
||||
|
||||
Close (Quit) the Skype client from the tray icon, so it saves its config.
|
||||
Then, relaunch the Skype client
|
||||
|
||||
############################
|
||||
you use skypopen_auth again
|
||||
############################
|
||||
$ ./skypopen_auth
|
||||
Skype instance found with id #27263062
|
||||
RECEIVED==> OK
|
||||
RECEIVED==> PROTOCOL 6
|
||||
RECEIVED==> CONNSTATUS ONLINE
|
||||
RECEIVED==> CURRENTUSERHANDLE gmaruzz3
|
||||
RECEIVED==> USERSTATUS INVISIBLE
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
cp -a skypopen101/* skypopen102/
|
||||
cp -a skypopen101/* skypopen103/
|
||||
cp -a skypopen101/* skypopen104/
|
||||
cp -a skypopen101/* skypopen105/
|
||||
cp -a skypopen101/* skypopen106/
|
||||
cp -a skypopen101/* skypopen107/
|
||||
cp -a skypopen101/* skypopen108/
|
||||
cp -a skypopen101/* skypopen109/
|
||||
cp -a skypopen101/* skypopen110/
|
||||
cp -a skypopen101/* skypopen111/
|
||||
cp -a skypopen101/* skypopen112/
|
||||
cp -a skypopen101/* skypopen113/
|
||||
cp -a skypopen101/* skypopen114/
|
||||
cp -a skypopen101/* skypopen115/
|
||||
cp -a skypopen101/* skypopen116/
|
||||
cp -a skypopen101/* skypopen117/
|
||||
cp -a skypopen101/* skypopen118/
|
||||
cp -a skypopen101/* skypopen119/
|
||||
cp -a skypopen101/* skypopen120/
|
||||
cp -a skypopen101/* skypopen121/
|
||||
cp -a skypopen101/* skypopen122/
|
||||
cp -a skypopen101/* skypopen123/
|
||||
cp -a skypopen101/* skypopen124/
|
||||
cp -a skypopen101/* skypopen125/
|
||||
cp -a skypopen101/* skypopen126/
|
||||
cp -a skypopen101/* skypopen127/
|
||||
cp -a skypopen101/* skypopen128/
|
||||
cp -a skypopen101/* skypopen129/
|
||||
cp -a skypopen101/* skypopen130/
|
||||
cp -a skypopen101/* skypopen131/
|
||||
cp -a skypopen101/* skypopen132/
|
||||
cp -a skypopen101/* skypopen133/
|
||||
cp -a skypopen101/* skypopen134/
|
||||
cp -a skypopen101/* skypopen135/
|
||||
cp -a skypopen101/* skypopen136/
|
||||
cp -a skypopen101/* skypopen137/
|
||||
cp -a skypopen101/* skypopen138/
|
||||
cp -a skypopen101/* skypopen139/
|
||||
cp -a skypopen101/* skypopen140/
|
||||
@@ -1,40 +0,0 @@
|
||||
mkdir skypopen101
|
||||
mkdir skypopen102
|
||||
mkdir skypopen103
|
||||
mkdir skypopen104
|
||||
mkdir skypopen105
|
||||
mkdir skypopen106
|
||||
mkdir skypopen107
|
||||
mkdir skypopen108
|
||||
mkdir skypopen109
|
||||
mkdir skypopen110
|
||||
mkdir skypopen111
|
||||
mkdir skypopen112
|
||||
mkdir skypopen113
|
||||
mkdir skypopen114
|
||||
mkdir skypopen115
|
||||
mkdir skypopen116
|
||||
mkdir skypopen117
|
||||
mkdir skypopen118
|
||||
mkdir skypopen119
|
||||
mkdir skypopen120
|
||||
mkdir skypopen121
|
||||
mkdir skypopen122
|
||||
mkdir skypopen123
|
||||
mkdir skypopen124
|
||||
mkdir skypopen125
|
||||
mkdir skypopen126
|
||||
mkdir skypopen127
|
||||
mkdir skypopen128
|
||||
mkdir skypopen129
|
||||
mkdir skypopen130
|
||||
mkdir skypopen131
|
||||
mkdir skypopen132
|
||||
mkdir skypopen133
|
||||
mkdir skypopen134
|
||||
mkdir skypopen135
|
||||
mkdir skypopen136
|
||||
mkdir skypopen137
|
||||
mkdir skypopen138
|
||||
mkdir skypopen139
|
||||
mkdir skypopen140
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
# just execute the file
|
||||
|
||||
sh ./multi.sh
|
||||
|
||||
-152
@@ -1,152 +0,0 @@
|
||||
#!/bin/bash
|
||||
# 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
|
||||
rmmod snd-dummy # enable=1,1,1
|
||||
|
||||
# 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
|
||||
# manually 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)
|
||||
modprobe snd-dummy
|
||||
#modprobe snd-aloop enable=1,1,1
|
||||
sleep 3
|
||||
|
||||
#start the fake X server on a given port
|
||||
/usr/bin/Xvfb :101 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
# 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 passwd5 would be the password and user5 the username
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:101 /usr/bin/skype --dbpath=/root/multi/skypopen101 --pipelogin &"
|
||||
|
||||
|
||||
sleep 7
|
||||
|
||||
|
||||
/usr/bin/Xvfb :102 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:102 /usr/bin/skype --dbpath=/root/multi/skypopen102 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
exit 0
|
||||
|
||||
#################################################################
|
||||
# Following X server and Skype client instances are commented out
|
||||
#################################################################
|
||||
/usr/bin/Xvfb :103 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:103 /usr/bin/skype --dbpath=/root/multi/skypopen103 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :104 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:104 /usr/bin/skype --dbpath=/root/multi/skypopen104 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :105 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:105 /usr/bin/skype --dbpath=/root/multi/skypopen105 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :106 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:106 /usr/bin/skype --dbpath=/root/multi/skypopen106 --pipelogin &"
|
||||
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :107 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:107 /usr/bin/skype --dbpath=/root/multi/skypopen107 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :108 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:108 /usr/bin/skype --dbpath=/root/multi/skypopen108 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
|
||||
/usr/bin/Xvfb :109 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:109 /usr/bin/skype --dbpath=/root/multi/skypopen109 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :110 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:110 /usr/bin/skype --dbpath=/root/multi/skypopen110 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
|
||||
/usr/bin/Xvfb :111 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:111 /usr/bin/skype --dbpath=/root/multi/skypopen111 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :112 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:112 /usr/bin/skype --dbpath=/root/multi/skypopen112 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :113 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:113 /usr/bin/skype --dbpath=/root/multi/skypopen113 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :114 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:114 /usr/bin/skype --dbpath=/root/multi/skypopen114 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :115 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:115 /usr/bin/skype --dbpath=/root/multi/skypopen115 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :116 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:116 /usr/bin/skype --dbpath=/root/multi/skypopen116 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
|
||||
/usr/bin/Xvfb :117 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:117 /usr/bin/skype --dbpath=/root/multi/skypopen117 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :118 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:118 /usr/bin/skype --dbpath=/root/multi/skypopen118 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :119 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:119 /usr/bin/skype --dbpath=/root/multi/skypopen119 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :120 -screen 0 800x600x16 -nolisten tcp -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 passwd5'| DISPLAY=:120 /usr/bin/skype --dbpath=/root/multi/skypopen120 --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
exit 0
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
<configuration name="skypopen.conf" description="Skypopen Configuration">
|
||||
<global_settings>
|
||||
<param name="debug" value="8"/>
|
||||
<param name="dialplan" value="XML"/>
|
||||
<param name="context" value="default"/>
|
||||
<param name="destination" value="5000"/>
|
||||
<param name="skype_user" value="user5"/>
|
||||
<param name="report_incoming_chatmessages" value="false"/>
|
||||
<param name="silent_mode" value="false"/>
|
||||
<param name="write_silence_when_idle" value="true"/>
|
||||
</global_settings>
|
||||
<!-- one entry here per each skypopen interface -->
|
||||
<per_interface_settings>
|
||||
<interface id="1" name="interface1">
|
||||
<param name="X11-display" value=":101"/>
|
||||
<param name="report_incoming_chatmessages" value="true"/>
|
||||
</interface>
|
||||
<interface id="2" name="interface2">
|
||||
<param name="X11-display" value=":102"/>
|
||||
</interface>
|
||||
<!-- following interfaces are commented out
|
||||
<interface id="3" name="interface3">
|
||||
<param name="X11-display" value=":103"/>
|
||||
</interface>
|
||||
<interface id="4" name="interface4">
|
||||
<param name="X11-display" value=":104"/>
|
||||
</interface>
|
||||
-->
|
||||
</per_interface_settings>
|
||||
</configuration>
|
||||
|
||||
@@ -1,219 +0,0 @@
|
||||
//gcc -Wall -ggdb skypopen_auth.c -o skypopen_auth -lX11
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
struct SkypopenHandles {
|
||||
Window skype_win;
|
||||
Display *disp;
|
||||
Window win;
|
||||
int api_connected;
|
||||
int fdesc[2];
|
||||
};
|
||||
|
||||
XErrorHandler old_handler = 0;
|
||||
int xerror = 0;
|
||||
char *dispname;
|
||||
|
||||
int X11_errors_handler(Display * dpy, XErrorEvent * err)
|
||||
{
|
||||
(void) dpy;
|
||||
|
||||
xerror = err->error_code;
|
||||
printf("\n\nReceived error code %d from X Server on display '%s'\n\n", xerror, dispname);
|
||||
return 0; /* ignore the error */
|
||||
}
|
||||
|
||||
static void X11_errors_trap(void)
|
||||
{
|
||||
xerror = 0;
|
||||
old_handler = XSetErrorHandler(X11_errors_handler);
|
||||
}
|
||||
|
||||
static int X11_errors_untrap(void)
|
||||
{
|
||||
XSetErrorHandler(old_handler);
|
||||
return (xerror != BadValue) && (xerror != BadWindow);
|
||||
}
|
||||
|
||||
int skypopen_send_message(struct SkypopenHandles *SkypopenHandles, const char *message_P)
|
||||
{
|
||||
|
||||
Window w_P;
|
||||
Display *disp;
|
||||
Window handle_P;
|
||||
int ok;
|
||||
|
||||
w_P = SkypopenHandles->skype_win;
|
||||
disp = SkypopenHandles->disp;
|
||||
handle_P = SkypopenHandles->win;
|
||||
|
||||
Atom atom1 = XInternAtom(disp, "SKYPECONTROLAPI_MESSAGE_BEGIN", False);
|
||||
Atom atom2 = XInternAtom(disp, "SKYPECONTROLAPI_MESSAGE", False);
|
||||
unsigned int pos = 0;
|
||||
unsigned int len = strlen(message_P);
|
||||
XEvent e;
|
||||
|
||||
memset(&e, 0, sizeof(e));
|
||||
e.xclient.type = ClientMessage;
|
||||
e.xclient.message_type = atom1; /* leading message */
|
||||
e.xclient.display = disp;
|
||||
e.xclient.window = handle_P;
|
||||
e.xclient.format = 8;
|
||||
|
||||
X11_errors_trap();
|
||||
do {
|
||||
unsigned int i;
|
||||
for (i = 0; i < 20 && i + pos <= len; ++i)
|
||||
e.xclient.data.b[i] = message_P[i + pos];
|
||||
XSendEvent(disp, w_P, False, 0, &e);
|
||||
|
||||
e.xclient.message_type = atom2; /* following messages */
|
||||
pos += i;
|
||||
} while (pos <= len);
|
||||
|
||||
XSync(disp, False);
|
||||
ok = X11_errors_untrap();
|
||||
|
||||
if (!ok)
|
||||
printf("Sending message failed with status %d\n", xerror);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int skypopen_present(struct SkypopenHandles *SkypopenHandles)
|
||||
{
|
||||
Atom skype_inst = XInternAtom(SkypopenHandles->disp, "_SKYPE_INSTANCE", True);
|
||||
|
||||
Atom type_ret;
|
||||
int format_ret;
|
||||
unsigned long nitems_ret;
|
||||
unsigned long bytes_after_ret;
|
||||
unsigned char *prop;
|
||||
int status;
|
||||
|
||||
X11_errors_trap();
|
||||
status =
|
||||
XGetWindowProperty(SkypopenHandles->disp, DefaultRootWindow(SkypopenHandles->disp),
|
||||
skype_inst, 0, 1, False, XA_WINDOW, &type_ret, &format_ret, &nitems_ret, &bytes_after_ret, &prop);
|
||||
|
||||
X11_errors_untrap();
|
||||
/* sanity check */
|
||||
if (status != Success || format_ret != 32 || nitems_ret != 1) {
|
||||
SkypopenHandles->skype_win = (Window) - 1;
|
||||
printf("Skype instance not found on display '%s'\n", dispname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
SkypopenHandles->skype_win = *(const unsigned long *) prop & 0xffffffff;
|
||||
printf("Skype instance found on display '%s', with id #%d\n", dispname, (unsigned int) SkypopenHandles->skype_win);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void skypopen_clean_disp(void *data)
|
||||
{
|
||||
|
||||
int *dispptr;
|
||||
int disp;
|
||||
|
||||
dispptr = data;
|
||||
disp = *dispptr;
|
||||
|
||||
if (disp) {
|
||||
close(disp);
|
||||
} else {
|
||||
}
|
||||
usleep(1000);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
struct SkypopenHandles SkypopenHandles;
|
||||
char buf[512];
|
||||
Display *disp = NULL;
|
||||
Window root = -1;
|
||||
Window win = -1;
|
||||
|
||||
if (argc == 2)
|
||||
dispname = argv[1];
|
||||
else
|
||||
dispname = ":0.0";
|
||||
|
||||
disp = XOpenDisplay(dispname);
|
||||
if (!disp) {
|
||||
printf("Cannot open X Display '%s', exiting\n", dispname);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int xfd;
|
||||
xfd = XConnectionNumber(disp);
|
||||
|
||||
SkypopenHandles.disp = disp;
|
||||
|
||||
if (skypopen_present(&SkypopenHandles)) {
|
||||
root = DefaultRootWindow(disp);
|
||||
win = XCreateSimpleWindow(disp, root, 0, 0, 1, 1, 0, BlackPixel(disp, DefaultScreen(disp)), BlackPixel(disp, DefaultScreen(disp)));
|
||||
|
||||
SkypopenHandles.win = win;
|
||||
|
||||
snprintf(buf, 512, "NAME skypopen");
|
||||
|
||||
if (!skypopen_send_message(&SkypopenHandles, buf)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
snprintf(buf, 512, "PROTOCOL 6");
|
||||
if (!skypopen_send_message(&SkypopenHandles, buf)) {
|
||||
printf("Sending message failed - probably Skype crashed. Please run/restart Skype manually and launch skypopen_auth again\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* perform an events loop */
|
||||
XEvent an_event;
|
||||
char buf[21]; /* can't be longer */
|
||||
char buffer[17000];
|
||||
char *b;
|
||||
int i;
|
||||
|
||||
b = buffer;
|
||||
|
||||
while (1) {
|
||||
XNextEvent(disp, &an_event);
|
||||
switch (an_event.type) {
|
||||
case ClientMessage:
|
||||
|
||||
if (an_event.xclient.format != 8)
|
||||
break;
|
||||
|
||||
for (i = 0; i < 20 && an_event.xclient.data.b[i] != '\0'; ++i)
|
||||
buf[i] = an_event.xclient.data.b[i];
|
||||
|
||||
buf[i] = '\0';
|
||||
|
||||
strcat(buffer, buf);
|
||||
|
||||
if (i < 20) { /* last fragment */
|
||||
unsigned int howmany;
|
||||
|
||||
howmany = strlen(b) + 1;
|
||||
|
||||
printf("RECEIVED==> %s\n", b);
|
||||
memset(buffer, '\0', 17000);
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
printf("Skype client not found on display '%s'. Please run/restart Skype manually and launch skypopen_auth again\n\n\n", dispname);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
}
|
||||
@@ -1,143 +0,0 @@
|
||||
# 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
|
||||
rmmod snd-dummy
|
||||
|
||||
# if you DO NOT USE the custom ALSA device we provide, you need three "standard" dummy soundcard for 20 Skype client instances, because each "standard" 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
|
||||
# manually 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)
|
||||
modprobe snd-dummy # enable=1,1,1
|
||||
sleep 3
|
||||
|
||||
#start the fake X server on a given port
|
||||
/usr/bin/Xvfb :101 -ac &
|
||||
sleep 3
|
||||
|
||||
# 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 xxxx would be the password and user1 the username
|
||||
su root -c "/bin/echo 'user1 xxxx'| DISPLAY=:101 /usr/bin/skype --pipelogin &"
|
||||
|
||||
|
||||
sleep 7
|
||||
|
||||
|
||||
/usr/bin/Xvfb :102 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user2 xxxx'| DISPLAY=:102 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
exit 0
|
||||
|
||||
##################################################################################
|
||||
# Following X server and Skype client instances are NOT LAUNCHED (see line before)
|
||||
##################################################################################
|
||||
|
||||
/usr/bin/Xvfb :103 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user3 xxxx'| DISPLAY=:103 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :104 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user4 xxxx'| DISPLAY=:104 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :105 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user5 xxxx'| DISPLAY=:105 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :106 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user6 xxxx'| DISPLAY=:106 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :107 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user7 xxxx'| DISPLAY=:107 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :108 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user8 xxxx'| DISPLAY=:108 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :109 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user9 xxxx'| DISPLAY=:109 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :110 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user10 xxxx'| DISPLAY=:110 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :111 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user11 xxxx'| DISPLAY=:111 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :112 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user12 xxxx'| DISPLAY=:112 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :113 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user13 xxxx'| DISPLAY=:113 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :114 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user14 xxxx'| DISPLAY=:114 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :115 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user15 xxxx'| DISPLAY=:115 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :116 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user16 xxxx'| DISPLAY=:116 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :117 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user17 xxxx'| DISPLAY=:117 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :118 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user18 xxxx'| DISPLAY=:118 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :119 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user19 xxxx'| DISPLAY=:119 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
/usr/bin/Xvfb :120 -ac &
|
||||
sleep 3
|
||||
|
||||
su root -c "/bin/echo 'user20 xxxx'| DISPLAY=:120 /usr/bin/skype --pipelogin &"
|
||||
|
||||
sleep 7
|
||||
|
||||
Whitespace-only changes.
-99
@@ -1,99 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3885" timestamp="1303333464.70">
|
||||
<Lib>
|
||||
<BCM>
|
||||
<_2>00001000A563932E7DE5A581942041A820F8437512A079C7ACB1B73281F191D109521E265BCD38C4133596B834AD9AA1D6BB5E1AC3D59E8675785321F722D39FBFAFB9A24E6482FA3030FFA3692D2C4A53BBCE9DC63F25D10207A20FA969982FEDC1DCC2A7C599071F4735E52AB2E06E34CA232C08B3AA2FB88A0C4A5763E0CD23C3AA37D1D2A7D6EED691EE99BA08BE294F68C24F9AE777DAF294F0AEB8346325A978DC6CF7C210AD11EF3F38111F6D98F388CF41CCBA40ABE9F0D6CBBD3118BA0588344953DF3C5E88B2CCAEDE2E692F320D20EBF16D7DB36156E617C0CC9FB2855D7FDB4C7F8638CC9830E7448D5EAE301A2810277062989841EE679E00E4E277615FEC038DE3A0A20DD7C6A2A00DFBC6A2A00DA6E2B6F404FDC6A2A00DFEC6A2A00DF7FBBB990CF2C6A2A00D8EB4FE8A0C8FB4FE8A0C95C7A6E00CF5FBBB990CD6C7A6E00CD0F896950CCCE2B6F40485CCA2A00DA1D8EEA50DFDFBBB990CA7C7A6E00CA8C7A6E00CA9C7A6E00C97C7A6E00C90B4FE8A0CFE90D59308C290D59308D1E2B6F404C5E2B6F404C6AAF18705C7AAF18705C8AAF18705BBD8EEA50DBCD8EEA50DBDD8EEA50D93CCA2A00D94CCA2A00DEFE2B6F40491B4FE8A0CE2FBBB990CE3FBBB990CBED8EEA50DA0CCA2A00DA1CCA2A00DA6B4FE8A0CA7B4FE8A0CCED8EEA50DA3CCA2A00DA4CCA2A00D84E698AD0DB8C7A6E00CD9E2B6F404E0E2B6F40486E698AD0DFDF896950C0013A60400173D0018DE0200190300AB01F40300449875044518C15F9A278109D4BBAC4E8109D408A6238109D5A63304810904460CC15F9A26303ED408A624303E0047B054004801004980A305004A80E90F004BE0A801004C80A305004D01005CAC02045E5A50FC55465BA050FC55475BA050FC55485BA0C32EFDEE5BA0C32EFDEF5BA0C2A5BC4A5BA0C2A5BC4B5BA0D4BBAC055BA0D4BBAC145BA0D4BBAC215BA0D408A3575BA0D408A37D5BA0D408A37E5BA08275487E5BA0827548425BA00060B817046506CC09A3D6303E04AE018C0125F8D500021A25F9D500011A162102200301220125FFD50025FAD5000C03E4000D2580D6000F060125F8D5000302172105050103080D06010501011C210302060125FCD50025F9D5000A25FDD50025FED5000A0D06020502050119211305020380808080100C05010D0380808080100B25FDD5000C01080005000380808080100D060307010503220101220104AC01BF012597CE002597CE002590CE0019152590CE002597CE000B033C1815210220030122012593CE0014212E2594CE002103030B220125A5CE00030F172103030B22012596CE00142103030B22012597CE00142103030B22012599CE00142103030A220125A5CE00030A1A2590CE002592CE000B031E1B15142103030A220125A4CE000380201D14210303092201259BCE0014210A2594CE002103030B2201259DCE00142103030822012593CE002103012201259ECE001421030306220103022201006800006901006A01006C987504740CC2A5BC4C303ED408A34C303E007828047912CC09A3D3303E82754864303E4E8DB16F303E047DBF010203020800050003020D0B0601030308000500020501030508000500021A03060800050003041A16030508000500021D160C0A0C060203D00F251205020A03020D0A050103D00F0C0A0603010800050003FFFFFFFF0F18030208000500021D141506042512020800050003030D05040C10030205040B0C06050306050505020A0C060603040800050003050800050003E400180C0607050703E400250A0B250A011C0C0A0314100608050303C03E0F03B8171005060388270F03DC0B100508047E5E0380010304080005000B03040D250403E4000F03140D0A2503250203030D0A0B0110060101080005000380020D0302080005000380020D172103010601250A03E4001B210D0501030A03E400250A210303DF002002250A0B0D0F0601050100800180EA49008101E003036F3139352E34362E3235332E3235333A313233353000038201706F6F6C313D2A2E6C6976657461622E736B7970653B706F6F6C323D7765622E6578747261732E736B7970653B706F6F6C333D6578747261732E646F776E6C6F6164732E736B7970653B706F6F6C343D2A2E736B79706566696E642E736B7970653B706F6F6C353D2A2E7072656D69756D2E736B7970653B706F6F6C363D2A2E6D756C74696D656469612E736B7970653B706F6F6C373D2A2E6D756C74696D656469612E6D657461636166653B706F6F6C383D2A2E6D756C74696D656469612E6461696C796D6F74696F6E3B706F6F6C393D2A2E6D756C74696D656469612E6D6574616F6D6E69747572653B706F6F6C31303D77686174736E65772E736B7970653B706F6F6C31313D7061792E736B7970653B706F6F6C31323D7365637572652E7061792E736B7970653B706F6F6C31333D2A2E70696373746F72653B706F6F6C31343D2A2E6D796163636F756E742E736B7970653B706F6F6C31353D2A2E62696269743B706F6F6C31363D2A2E70726F6363796265723B706F6F6C31373D747261636B696E672E6F6D6E69747572653B706F6F6C31383D676F2E736B7970653B706F6F6C31393D747261636B2E736B7970657C706F6F6C313D3139342E3139322E3139392E3235313A31323335303B706F6F6C323D3139342E3139322E3139392E3235323A31323335303B706F6F6C333D3139342E3139322E3139392E3235323A31323335303B706F6F6C343D3139342E3136352E3138382E3130313A31323335303B706F6F6C353D3139332E39352E3135342E31353A31323335313B706F6F6C363D3139342E3136352E3138382E3130303A31323335303B706F6F6C373D3139342E3136352E3138382E3130303A31323335303B706F6F6C383D3139342E3136352E3138382E3130303A31323335303B706F6F6C393D3139342E3136352E3138382E3130303A31323335303B706F6F6C31303D3230342E392E3136332E3134313A31323335303B706F6F6C31313D3139352E34362E3235332E3234353A31323335303B706F6F6C31323D3139352E34362E3235332E3234353A31323335303B706F6F6C31333D3139332E39352E3135342E31343A31323335313B706F6F6C31343D3139332E39352E3135342E31343A31323335313B706F6F6C31353D3139332E39352E3135342E31343A31323335313B706F6F6C31363D3139332E39352E3135342E31343A31323335313B706F6F6C31373D3139342E3136352E3138382E3130303A31323335303B706F6F6C31383D3139342E3136352E3138382E3130303A31323335303B706F6F6C31393D3139332E39352E3135342E31343A31323335310003B101706F6F6C313D2A2E6C6976657461622E736B7970653B706F6F6C323D7765622E6578747261732E736B797065206578747261732E646F776E6C6F6164732E736B7970653B706F6F6C333D2A2Line truncated
|
||||
<_256>000010011AC0AA3BA66DF7FB48228AE35F9BB4A032FE4A6A898DA7A1A5AE37DC59FB3D09607F1CACD46A5DBC008DABF8F09C797DF5A8903307D04C318825CEA7C481303C655A9EEE099E9A0AF1158373B458BB8FDACB336A6EC63C043E6782688E2350B417DDDDFF96B474DAEA7D1DF3742303B79111FC752BFB5D6887A5B822F945CC761FAF6E80DE5EC60868768CB8A9F9C876137806DCEA0DD1300181558ABFDBA26592078F5F84195C526D8C7F339EF82700FD93F8FB71ADA5ED3E977D27FA52D1F489EF5DA0A9E00B146BADCBDEBFB0DFEBCD61E5B8352A49893357E0DC3A736743929DA975782EA4D8184605FD064641986C47706D264281C876F926BF58003E9E</_256>
|
||||
<_3>0000100498ECF8A7A4585F76C930739A1EAE590DE96D9EF3AA9B231E67965F3F08ECFC493E1DA23ECDE17A85C94CBE034E88F9414E9BBC82F32AAFCFFB2C09F6F57A478238BAEC9EEF2BB9C67F71257722E6786D88D6400F6B7D81450FB3B6CCCC3986E3782D2387E354EBA9099331AEF510D479C6601D2383D866E2B5B525DF0BA975D58C120EFAE88C89EE365FC696CC891B77F67CFA18FDE8E95DDAC25A7C7D70FA7A1414BAE593856A658888C622836006C1C131B4B2E805554DCFA52F3EFD34C1B759BF8A302E491835DCE701E84D37ED150C8ADD699AD3DCA9F515123C5B5AD94E253E173BA3465E64A0079D5EF4E6075E66D0F5FBC3D9BC25C4E80C4CB2FE9B87040003000004D00F0005D00F050041040400B80125C20003141B14230025D50003031B14230024E100142300250003191714230025EA0003141714230025EA00011724EA00140A14230025E400030F1C14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025E10025E10003A006100A0309031725000325180C0A25C20003140B0C03040D0A03882725C3000C0A03E43225C4000C0A0602050228038407DC08FA1E0601050102050203FA1E1C0603250028061D1E1F202122060105010205010503050141060300636F756E74206279207175616C697479000001CC080002040003000004010005010501410603006261647175616C69747920636F756E742062792076657273696F6E000001D6080002070003000004010005010501410603006261647175616C6974792073756D2062792076657273696F6E000001E0080002070003000004010005010500410304005424E400142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025E40025E40028043CB401D804901C060105010205014106030073756D206F66206C61737463616C6C206475726174696F6E73000001B009000201000300000480A3050005B054050141060300636F756E74206279206C61737463616C6C206475726174696F6E000001BA090002050003000004010005010500410204005025EB00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EB0028031E32D0000601050102050141060300636F756E742062792073797374656D20637075207573616765000001940A0002040003000004010005010500410204004F25EC00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EC0028030F1E320601050102050141060300636F756E742062792070726F63657373206370752075736167650000019E0A0002040003000004010005010500410304006824C20014230024E60014230025E600011A14230025EC00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EC0028030F1E320601050102050125C2000501410603006A6974746572636F756E742062792070726F6365737320637075207573616765000001F80A0002040003000004010005010501410603006A69747465722062792070726F6365737320637075207573616765000001820B0002040003000004D00F0005D00F0500410304004424E700142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A1423000225E700050141060300706F74656E7469616C207463702066616C6C6261636B73000001DC0B00020100030000040100050105014106030061637475616C207463702066616C6C6261636B73000001E60B00020100030000040100050105004103040056240C142300250C030A1814230025EA0003141714230025EA00011724EA00140A14230024E70014230025E700011A14230024E50014230025E500011C0602250C29050306070809280401020405060105010205010502050141060300636F756E74206279206E617474797065000001C00C0002050003000004010005010501410603007564706661696C75726573206279206E617474797065000001CA0C0002050003000004010005010500410204001B25D90014230025D90025DA000B0602050228030102040601050102050141060300636F756E74206279206E726F666D756C74696368617473000001A40D0002040003000004010005010500410304001425F700011C14230025000319171423000225F90005014106030075736572732077686F206861766520636F6D706C65746564204943000001880E0002010003000004010005010501410603006C617374204943207969656C6420676C6F62616C73756D000001920E0002010003000004E8070005500500410304001224F60014230025000319171423000225F60005014106030075736572732077686F206861766520494320737570706F7274000001EC0E0002010003000004010005010501410603004943207374617274757020636F756E7420676C6F62616C73756D000001F60E00020100030000046400051405004102040025240C142300250C030A18142300250C011C142300250C280802030405060708090601050102050141060300636F756E74206279206E617474797065000001D00F0002090003000004010005010500410404001A250003191714230025E20025E30025FC00280201020601050102050141060300766964656F2073656E642063617061626C650000019811000201000300000401000501050141060300766964656F20706172616C6C656C2063616C6C730000019911000201000300000414000502050141060300636F756E7420627920766964656F2063616C6C73206D616465000001A2110002030003000004010005010500410204003A250003191714230025EA0003141714230025EA00011724EA00140A14230024E50014230025E50003031914230025E50028030102030601050102050141060300636F756E742062792073747265616D7472616E73706F7274000001FC11000204000300000401000501050041090400E00125C20003141B25E400030F1C1514230024E100142300250003191714230025EA0003141725EA0001171514230025FF002580010A011A14230025E60003031A25E50003031A1514230024F5001423002412142300249F0114230025C30025E10025E10003A006100A03A0060B0309031725000325180C0A25C20003140B0C03040D0A2512030A0C251025F5001703CC080C0A1C160602020502250003231B241D150603050305020503150503251D03808080808Line truncated
|
||||
<_4>000010052A0B6759B71FBC1EF05BE97DFEA4EE6C1E15AF19ED70DEC1130B14C13CE41246D302B9662592907E3CA508A57702B5C00C2A05170857FA22012E0F235B425B4D919B23A541D3AD6E948FC634DE71A29493634884DFD5E9D89C5D951CBCD71B9B3ABFD3C4E2779BB1817D76E7C223CA36BD75A6A05B730AF138057E4048B2FFDD522BB588EC0B9D3E014BF9E354EB608150BC613C739D9E8C7465F05F047FAF7AFA3EE89B9B58BF0FC35F07B55CF3E4B59A7C4ED48B1C0C7F0305E6AC2E80AAEAD6064EB6ACDC1806FCE0B5CB66F0840DA7F0FE7B228E3898E3E42A9AFEFE13DDF019EF8D8F02A631AF2615BBC6E1EDB65C89A775F642C88109E6247EC4B463DC302E2A2E323000050541020006020307322E302E2A2E3100050541030006020307322E302E2A2E3200000AE4ED8009050541030006020307322E302E2A2E33000009B3E6CC990B050541040006020307322E302E2A2E3400000AE4ED8009000BA00B050541030006020308322E302E2A2E35000307322E302E2A2E3900050541040006020308322E302E2A2E39000307322E302E2A2E313100000AE4ED8009050541040006020308322E302E2A2E3131000307322E302E2A2E3135000009E6CC99B306050541050006020308322E302E2A2E3135000307322E302E2A2E323000000AE4ED8009000BA00B050041050303557067726164655465737433000301332E302E302E3130300003044E6963654272616E6400050541040006020307332E302E302E2A0003074E6963654272616E6400000AE4ED8009050541040006020307322E302E302E2A0003074E6963654272616E6400000AE4ED80090500410E0303557067726164655465737433000301332E302E302E31303000050541040006020307332E302E302E39390003074F746865724272616E6400000AE4ED8009050541040006020307322E302E302E39390003074F746865724272616E6400000AE4ED8009050541040006020307332E302E302E39380003074F746865724272616E64000009B3E6CC990B050541040006020307322E302E302E39380003074F746865724272616E64000009B3E6CC990B050541050006020307332E302E302E39370003074F746865724272616E6400000AE4ED8009000BA00B050541050006020307322E302E302E39370003074F746865724272616E6400000AE4ED8009000BA00B050541030006020307332E302E302E393900000AE4ED8009050541030006020307322E302E302E393900000AE4ED8009050541030006020307332E302E302E3938000009B3E6CC990B050541030006020307322E302E302E3938000009B3E6CC990B050541040006020307332E302E302E393700000AE4ED8009000BA00B050541040006020307322E302E302E393700000AE4ED8009000BA00B0500410303033130303031000301302E302E302E313000050541020006020307302E302E302E3900</_4>
|
||||
<_5>00001006739CA527EF827847E16F23CD52458C3EBA3460A42935EC6948BEFA626B49E3BDF279FC62486E2DDBCA19609ED23D31F4E5175920F282AD74A74A997C3909E67B622480C68A058E886C7D5F3C40954880D7798CD61CEA0FBAFB389BE5B2B8A887348F7AADB4DF642B194B814047CDA0E698EDDE61DFA731DCA5883A76F913D8C94066718054E85ADA7AE009F2B2A9AF762FDCB9B6CAF64C156911E3AB172CFD795F66FB6E8E15048A54E4AB17979D6C447DEBADE75CC6F606050D980061112AFF9AE7C7BF8065D711949E41FA4C8B6CBF0916BB395B3E186A7D617D353C6BFFC687FE79475DFA095D113D70B828FB597BC3665B7C9C3669CA9CBE5D308D3FC23803044E45544745415200050541020006040307302E392E302E2A000500410503033130303033000301312E302E302E3137000304534D4300050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E312E302E313000030442454C4B494E00050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E302E302E3137000304454447452D434F524500050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E302E302E31330003044C4F474954454300050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303035000301312E342E38382E31333636000304544F50434F4D00050541020006040307312E342E38382E3133353600050541020006020307312E342E38382E31333635000500410503033130303035000301312E342E38382E313336360003045043484F4D4500050541020006040307312E342E38382E3133353600050541020006020307312E342E38382E31333635000500410403033130303036000301302E302E302E313000050541020006040307302E302E302E3500050541020006020307302E302E302E39000500410503033130303037000301312E302E312E330003045445434F00050541020006040307312E302E302E3800050541020006020307312E302E312E31000500410503033130303038000301302E392E332E3339370003044C494E4B53595300050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410503033130303038000301302E392E332E3339370003044E45544745415200050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410503033130303038000301302E392E332E3339370003045048494C49505300050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410403033130303130000301302E392E302E31310003044C494E4B53595300050541020006040307302E392E302E3130000500410403033130303130000301302E392E302E313100030442554646414C4F00050541020006040307302E392E302E3130000500410503033130303132000301312E302E302E310003044353544E00050541020006040307302E302E302E3500050541020006020307302E302E302E39000500410503033130303133000301302E302E332E3234000304414B00050541020006040307302E302E312E323400050541020006020307302E302E322E3234000500410303033130303134000301312E372E34332E33382E3200050541020006040307312E372E32332E32372E34000500410503033130303135000301312E322E31372E30000304415A5445434800050541020006040307312E322E31312E3000050541020006020307312E322E31352E30000500410303033130303230000301312E302E302E343700050541030006020308312E302E302E3233000307312E302E302E3233000500410403033130303234000301332E322E302E323800050541030006040308332E302E302E35000307332E302E302E3500050541030006020308332E312E302E31000307332E322E302E38000500410503033130303232000301302E302E302E3900030450414E41534F4E494300050541020006040307302E302E302E3100050541020006020307302E302E302E38000500410503033130303232000301302E302E302E3900030450414E41534F4E4943434F4E53554D455200050541020006040307302E302E302E3100050541020006020307302E302E302E3800</_5>
|
||||
</BCM>
|
||||
<BackboneInited>1</BackboneInited>
|
||||
<Chat>
|
||||
<FriendlyNameMaxSize>400</FriendlyNameMaxSize>
|
||||
</Chat>
|
||||
<Connection>
|
||||
<Bandwidth>
|
||||
<CurSlotLength>8118</CurSlotLength>
|
||||
<InHistory>39,64,8184</InHistory>
|
||||
<OutHistory>37,50,13164</OutHistory>
|
||||
</Bandwidth>
|
||||
<DisablePort80>1</DisablePort80>
|
||||
<EventServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</EventServers>
|
||||
<Firewall>
|
||||
<TcpInHistory>-1431699456</TcpInHistory>
|
||||
<UdpInHistory>-1431699456</UdpInHistory>
|
||||
<UdpOutHistory>1610612735</UdpOutHistory>
|
||||
</Firewall>
|
||||
<HostCache>41C801050041050200D9AF0D45D9E900010400028788BCED0400038788BCED04000400050041050200BB0AB3FDD1A40001040002B7DCBCED040003B7DCBCED040004000500410502005C3766C2DA6B00010400029FB2BCED0400039FB2BCED04000400050041050200D9F8DC20CA33000104000296DAAAED04000396DAAAED0400040005004105020063847B3765900001040002D794BDED040003D794BDED040004000500410502004E80142FD3C70001040002CF86BDED040003CF86BDED04000400050041050200C3B213EA24A50001040002BF89BBED040003BF89BBED040004000500410502006FFEF1BA804C0001040002CF86BDED040003CF86BDED0400040005004105020052ED923CB3A700010400028788BCED0400038788BCED040004000500410502005243330D305B000104000283FFB2ED04000383FFB2ED040004000500410502006FF9438E9E5D0001040002CF86BDED040003CF86BDED04000400050041050200585515F19D77000104000283FFB2ED04000383FFB2ED04000400050041050200729EE3A8DD460001040002CF86BDED040003CF86BDED040004000500410502004572795D3BB300010400029FB2BCED0400039FB2BCED040004000500410502009F94D72CABA40001040002CF86BDED040003CF86BDED0400040005004105020095052D9C81090001040002B7DCBCED040003B7DCBCED040004000500410502005859A15FD7FC0001040002DC8FB5ED040003DC8FB5ED0400040005004105020059D7AB3EBBFB0001020002F8FABCED040003CF86BDED04000400050041050200BB2481B9390E0001040002CF86BDED040003CF86BDED0400040005004105020059D7F395A7BA0001040002B7DCBCED040003B7DCBCED040004000500410502006DC4BEF5D52E0001040002B0DFBAED040003B0DFBAED040004000500410502004B6E709CF4290001040002B7DCBCED040003B7DCBCED040004000500410502007A7D5CEC2B8D0001040002CF86BDED040003CF86BDED040004000500410502006FFFA8AFB19D0001040002B7DCBCED040003B7DCBCED040004000500410502003E4475A07A6F0001040002B7DCBCED040003B7DCBCED040004000500410502003EDD8384A4F90001040002BF89BBED040003BF89BBED04000400050041050200560FBFA4E4900001040002B7DCBCED040003B7DCBCED04000400050041050200C24FAEEE43F10001040002B3CEB5ED040003B3CEB5ED040004000500410502004F378778C6F30001040002CF86BDED040003CF86BDED04000400050041050200C94418BB0EDF0001040002B7DCBCED040003B7DCBCED040004000500410502003B75A58BECB30001040002CF86BDED040003CF86BDED04000400050041050200772A7A0908890001040002CF86BDED040003CF86BDED0400040005004105020048BB63586DE100010400029088BCED0400039088BCED040004000500410502005544F881BEDA000104000283FFB2ED04000383FFB2ED040004000500410502005B4C1468EDF80001040002B7DCBCED040003B7DCBCED04000400050041050200538BAF3F934F0001040002B3CEB5ED040003B3CEB5ED0400040005004105020055D6F93A4FD70001040002D7B3BBED040003D7B3BBED04000400050041050200D5D64561E55F00010400028788BCED0400038788BCED0400040005004105020046ADF229B8570001040002CF86BDED040003CF86BDED04000400050041050200D5151C19FFD600010200029FB2BCED040003B7DCBCED04000400050041050200973CA35DB82400010400029FB2BCED0400039FB2BCED04000400050041050200C249E5B953700001040002CF86BDED040003CF86BDED04000400050041050200722C69D8C4F500010400029FB2BCED0400039FB2BCED0400040005004105020058CBB311F2400001040002DC8FB5ED040003DC8FB5ED040004000500410502004BB7A090766E0001040002CF86BDED040003CF86BDED040004000500410502007DEF80FBEBD90001040002EFDDBBED040003EFDDBBED0400040005004105020076A03698F87A0001040002CF86BDED040003CF86BDED0400040005004105020050E5DFDD0C700001040002CF86BDED040003CF86BDED040004000500410502004D4C85E0CEC80001040002CF86BDED040003CF86BDED040004000500410502006FEA6BCD92A10001020002F8FABCED040003CF86BDED0400040005004105020043BAA930F28600010400029FB2BCED0400039FB2BCED04000400050041050200722DB82DDB780001040002CF86BDED040003CF86BDED0400040005004105020052E995118B9F0001040002CF86BDED040003CF86BDED040004000500410502005403013B36D20001040002EFDDBBED040003EFDDBBED04000400050041050200B27C0C920B260001040002B7DCBCED040003B7DCBCED04000400050041050200D9AF0997A7450001040002BCD9AAED040003BCD9AAED04000400050041050200BC00130BB5F60001040002CF86BDED040003CF86BDED04000400050041050200591FF23B53830001040002CF86BDED040003CF86BDED04000400050041050200557EB01367590001040002CF86BDED040003CF86BDED04000400050041050200505F157093A2000102000297A4BCED04000397A4BCED040004000500410502003A036C495C670001040002CF86BDED040003CF86BDED0400040005004105020050D8CF0B7D480001040002B7DCBCED040003B7DCBCED040004000500410502004E34E4D0FF250001040002B7DCBCED040003B7DCBCED040004000500410502007A1E50A46E770001040002CF86BDED040003CF86BDED040004000500410502005F18C666CBB80001040002EFDDBBED040003EFDDBBED04000400050041050200C19335603A9E0001040002DC8FB5ED040003DC8FB5ED0400040005004105020097142BD7DF890001040002AFDFBAED040003AFDFBAED0400040005004105020052F3355FFED400010400029FB2BCED0400039FB2BCED04000400050041050200BCBA857EECDF0001040002D7B3BBED040003D7B3BBED04000400050041050200729259D605EF0001040002CF86BDED040003CF86BDED04000400050041050200BEC2F57655B300010400029FB2BCED0400039FB2BCED040004000500410502005BD905C8304B0001020002A8EEBBED0400038788BCED0400040005004105020055F2C0360F360001040002EFDDBBED040003EFDDBBED0400040005004105020082C01DB9605D00010400028788BCED0400038788BCED04000400050041050200BC73B8FB30360001040002CF86BDED040003CF86BDED0400040005004105020050390E32DF8B0001040002B0DFBAED040003B0DFBAED040004000500410502005BCE8A2D7B8000010400028788BCED0400038788BCED0400040005004105020042292BB45D2D0001040002CF86BDED040003Line truncated
|
||||
<HttpsProxy>
|
||||
<Enable>0</Enable>
|
||||
</HttpsProxy>
|
||||
<LastIP>-645574544</LastIP>
|
||||
<LastProbingFailed>0</LastProbingFailed>
|
||||
<ListeningPort>47500</ListeningPort>
|
||||
<LoginServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</LoginServers>
|
||||
<NatTracker>
|
||||
<ContraProbeResults>217.133.80.112:1076 217.133.80.112:47500 217.133.80.112:1083 217.133.80.112:1083 217.133.80.112:49734</ContraProbeResults>
|
||||
<PreviousNatType>7</PreviousNatType>
|
||||
<ProbeResults>
|
||||
<_1303289856>6C81442204F3D9855070B98CAE5879A505F3D9855070B98C4D4320134B66D9855070B98C5F4E60ED0D34D98550700434</_1303289856>
|
||||
<_1303293952>4287274ED659D9855070B98C4287274ED74BD9855070B98C4287274EC15CD9855070B98C4287274ECE92D9855070B98C4287274EA75BD9855070B98C4287274E4B98D9855070B98C4287274EAA2DD9855070B98C4287274EA175D9855070B98C4287274ED735D9855070B98C4287274EAE25D9855070B98C4287274E1A2BD9855070B98C3D7D44372576D9855070B98CCF86DF304366D9855070B98C3D2E02A2259CD9855070B98C4287274EB98CD9855070B98C</_1303293952>
|
||||
<_1303298048>2E3363049108D9855070B98C2E3795FA3202D9855070B98C2E2F6F42E86DD9855070B98CB4B0620AA528D9855070B98C</_1303298048>
|
||||
<_1303306240>5F1894D8122BD9855070B98C2E40484969A3D9855070B98CD592A70A5566D9855070B98C2E26119F8DBED9855070B98C2E3754264E48D9855070B98C</_1303306240>
|
||||
<_1303314432>4D2BFFCAEC6CD9855070043B54BAD08D05E0D9855070B98C9D9D4DA11995D9855070B98C59584CCBB5CED9855070B98C972AC71733DDD9855070B98C</_1303314432>
|
||||
<_1303322624>5F3B0DCEB535D9855070043BD5150C1746D3D9855070B98C4D4B8646EF29D9855070B98CD5152F4D12BBD9855070B98C</_1303322624>
|
||||
<_1303326720>59D0D11D89DCD9855070C2462E755D8E1E97D9855070B98C2E492F875789D9855070B98C2E378784E9C6D9855070B98C2E2F6F6B48FCD9855070B98C</_1303326720>
|
||||
</ProbeResults>
|
||||
<UsedIPList>
|
||||
<_1303289856>9A4A56D31C619325C6601C71B23E13FDFAF5CA49F15C34A4E33F239B524D6BBC226021F010D2270A3B48DFA2E8CDB6FD37531B1118DB2D471CB980D0</_1303289856>
|
||||
<_1303293952>D5A2186D0B45088ADDFA7B626C0904CED47E3DF13172672AED483E1EAD69DB781ABEC0D8812B1B5EFF91BC28C67FB5A3404D875A</_1303293952>
|
||||
<_1303298048>DB0EC5161D10171C7C6A4C7109DD</_1303298048>
|
||||
<_1303302144>5379BD98</_1303302144>
|
||||
<_1303306240>88B19442A48D863ED54D712EEC36D53127BCE36653FE</_1303306240>
|
||||
<_1303310336>1908404B0F7BA3BE952CB1C533456D3CDA410BCB774AF93880FB8BD8C110</_1303310336>
|
||||
<_1303314432>4B015AD444DD027FD3F61B2A51A53BA0</_1303314432>
|
||||
<_1303322624>878BAF81A9F053B39E35081485E24B4EDA5F79D37E176C409B6E237A336451F42CFA7CEC013C98A18B51</_1303322624>
|
||||
<_1303326720>CFB137906F6CCE77246BD5B6B434875570B1F9B9140C85D5114EE6953110B04F3557C0D1686D46A9F69106521979AE49E19F8622F93A</_1303326720>
|
||||
<_1303330816>BA4B81F735FDCDA4E4EF57ACF8A37051C66401E41CA4E562A5A49ACC2E246CCE</_1303330816>
|
||||
</UsedIPList>
|
||||
</NatTracker>
|
||||
<PresenceServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</PresenceServers>
|
||||
<SipServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</SipServers>
|
||||
<SocksProxy>
|
||||
<Enable>0</Enable>
|
||||
</SocksProxy>
|
||||
<StatsServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</StatsServers>
|
||||
</Connection>
|
||||
<Localnode>
|
||||
<NodeID>9BF92EA4B417A7F6</NodeID>
|
||||
</Localnode>
|
||||
<PropsManager>
|
||||
<PermaProps>4102030E322F322E302E302E37322F31373400000FF6EB9ADC04</PermaProps>
|
||||
</PropsManager>
|
||||
<VoiceEng>
|
||||
<AGC>0</AGC>
|
||||
</VoiceEng>
|
||||
</Lib>
|
||||
<UI>
|
||||
<Installed>2</Installed>
|
||||
<Language>en</Language>
|
||||
<Pos>
|
||||
<Height>357</Height>
|
||||
<Width>258</Width>
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
</Pos>
|
||||
<SavePassword>0</SavePassword>
|
||||
</UI>
|
||||
</config>
|
||||
Whitespace-only changes.
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3315" timestamp="1303209780.1">
|
||||
<Lib>
|
||||
<Account>
|
||||
<IdleTimeForAway>300</IdleTimeForAway>
|
||||
<IdleTimeForNA>1800</IdleTimeForNA>
|
||||
<Migration>63</Migration>
|
||||
</Account>
|
||||
<Call>
|
||||
<DPC>41010300676D6172757A7A3400</DPC>
|
||||
<FirstSkypeoutTime>1268962216</FirstSkypeoutTime>
|
||||
</Call>
|
||||
<CentralStorage>
|
||||
<LastBackoff>0</LastBackoff>
|
||||
<LastFailure>0</LastFailure>
|
||||
<LastSync>1303202372</LastSync>
|
||||
<NeedSync>0</NeedSync>
|
||||
<SyncSet>
|
||||
<p>
|
||||
<email>35716ecf:2</email>
|
||||
<profile>98e6c103:0</profile>
|
||||
</p>
|
||||
<u> </u>
|
||||
</SyncSet>
|
||||
</CentralStorage>
|
||||
<Chat>
|
||||
<ActivityTS>1</ActivityTS>
|
||||
<DialogPartner>3</DialogPartner>
|
||||
<HistoryDays>65535</HistoryDays>
|
||||
<MigrationDone>1266110339</MigrationDone>
|
||||
</Chat>
|
||||
<Contacts>
|
||||
<Migration>1</Migration>
|
||||
</Contacts>
|
||||
<Message>
|
||||
<DisableHistory>1</DisableHistory>
|
||||
</Message>
|
||||
<Notification>
|
||||
<LastID>1000000166</LastID>
|
||||
<LastPoll>1303166852</LastPoll>
|
||||
<LastSearch>1303209779</LastSearch>
|
||||
</Notification>
|
||||
<PM>
|
||||
<pslut>1267114269</pslut>
|
||||
</PM>
|
||||
<ProfilePopulated>2</ProfilePopulated>
|
||||
<PropsManager>
|
||||
<PermaProps>4109008620EBA4DDDB0400FA0100009E2001009420FB09008520B1A58BDD04008120CCD9E6E3040093209B0A00F501820200F801A3B608</PermaProps>
|
||||
</PropsManager>
|
||||
<StatsSender>
|
||||
<CollectorLastSent>1267114267</CollectorLastSent>
|
||||
<CollectorSeq>11</CollectorSeq>
|
||||
<Saved>4263C0064DD5ACF9A03594DAB928D2B81510</Saved>
|
||||
</StatsSender>
|
||||
<Video>
|
||||
<AdvertPolicy>noone</AdvertPolicy>
|
||||
<Disable>1</Disable>
|
||||
<RecvPolicy>noone</RecvPolicy>
|
||||
</Video>
|
||||
<table_insert_history>
|
||||
<_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>1303296179 23160:21600:1303209779 9589:7200:1303209779 8707:21600:1303209779</_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>
|
||||
</table_insert_history>
|
||||
</Lib>
|
||||
<UI>
|
||||
<API>
|
||||
<Authorizations>skypopen</Authorizations>
|
||||
<BlockedPrograms></BlockedPrograms>
|
||||
</API>
|
||||
<AutoUpdate>0</AutoUpdate>
|
||||
<CaptureDevice>2</CaptureDevice>
|
||||
<RingDevice>2</RingDevice>
|
||||
<SoundDevice>2</SoundDevice>
|
||||
</UI>
|
||||
</config>
|
||||
-1
@@ -1 +0,0 @@
|
||||
B
|
||||
BIN
Binary file not shown.
Whitespace-only changes.
Whitespace-only changes.
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3315" timestamp="1303209780.1">
|
||||
<Lib>
|
||||
<Account>
|
||||
<IdleTimeForAway>300</IdleTimeForAway>
|
||||
<IdleTimeForNA>1800</IdleTimeForNA>
|
||||
<Migration>63</Migration>
|
||||
</Account>
|
||||
<Call>
|
||||
<DPC>41010300676D6172757A7A3400</DPC>
|
||||
<FirstSkypeoutTime>1268962216</FirstSkypeoutTime>
|
||||
</Call>
|
||||
<CentralStorage>
|
||||
<LastBackoff>0</LastBackoff>
|
||||
<LastFailure>0</LastFailure>
|
||||
<LastSync>1303202372</LastSync>
|
||||
<NeedSync>0</NeedSync>
|
||||
<SyncSet>
|
||||
<p>
|
||||
<email>35716ecf:2</email>
|
||||
<profile>98e6c103:0</profile>
|
||||
</p>
|
||||
<u> </u>
|
||||
</SyncSet>
|
||||
</CentralStorage>
|
||||
<Chat>
|
||||
<ActivityTS>1</ActivityTS>
|
||||
<DialogPartner>3</DialogPartner>
|
||||
<HistoryDays>65535</HistoryDays>
|
||||
<MigrationDone>1266110339</MigrationDone>
|
||||
</Chat>
|
||||
<Contacts>
|
||||
<Migration>1</Migration>
|
||||
</Contacts>
|
||||
<Message>
|
||||
<DisableHistory>1</DisableHistory>
|
||||
</Message>
|
||||
<Notification>
|
||||
<LastID>1000000166</LastID>
|
||||
<LastPoll>1303166852</LastPoll>
|
||||
<LastSearch>1303209779</LastSearch>
|
||||
</Notification>
|
||||
<PM>
|
||||
<pslut>1267114269</pslut>
|
||||
</PM>
|
||||
<ProfilePopulated>2</ProfilePopulated>
|
||||
<PropsManager>
|
||||
<PermaProps>4109008620EBA4DDDB0400FA0100009E2001009420FB09008520B1A58BDD04008120CCD9E6E3040093209B0A00F501820200F801A3B608</PermaProps>
|
||||
</PropsManager>
|
||||
<StatsSender>
|
||||
<CollectorLastSent>1267114267</CollectorLastSent>
|
||||
<CollectorSeq>11</CollectorSeq>
|
||||
<Saved>4263C0064DD5ACF9A03594DAB928D2B81510</Saved>
|
||||
</StatsSender>
|
||||
<Video>
|
||||
<AdvertPolicy>noone</AdvertPolicy>
|
||||
<Disable>1</Disable>
|
||||
<RecvPolicy>noone</RecvPolicy>
|
||||
</Video>
|
||||
<table_insert_history>
|
||||
<_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>1303296179 23160:21600:1303209779 9589:7200:1303209779 8707:21600:1303209779</_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>
|
||||
</table_insert_history>
|
||||
</Lib>
|
||||
<UI>
|
||||
<API>
|
||||
<Authorizations>skypopen</Authorizations>
|
||||
<BlockedPrograms></BlockedPrograms>
|
||||
</API>
|
||||
<AutoUpdate>0</AutoUpdate>
|
||||
<CaptureDevice>2</CaptureDevice>
|
||||
<RingDevice>2</RingDevice>
|
||||
<SoundDevice>2</SoundDevice>
|
||||
</UI>
|
||||
</config>
|
||||
-1
@@ -1 +0,0 @@
|
||||
B
|
||||
BIN
Binary file not shown.
Whitespace-only changes.
Whitespace-only changes.
-99
@@ -1,99 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3885" timestamp="1303333464.70">
|
||||
<Lib>
|
||||
<BCM>
|
||||
<_2>00001000A563932E7DE5A581942041A820F8437512A079C7ACB1B73281F191D109521E265BCD38C4133596B834AD9AA1D6BB5E1AC3D59E8675785321F722D39FBFAFB9A24E6482FA3030FFA3692D2C4A53BBCE9DC63F25D10207A20FA969982FEDC1DCC2A7C599071F4735E52AB2E06E34CA232C08B3AA2FB88A0C4A5763E0CD23C3AA37D1D2A7D6EED691EE99BA08BE294F68C24F9AE777DAF294F0AEB8346325A978DC6CF7C210AD11EF3F38111F6D98F388CF41CCBA40ABE9F0D6CBBD3118BA0588344953DF3C5E88B2CCAEDE2E692F320D20EBF16D7DB36156E617C0CC9FB2855D7FDB4C7F8638CC9830E7448D5EAE301A2810277062989841EE679E00E4E277615FEC038DE3A0A20DD7C6A2A00DFBC6A2A00DA6E2B6F404FDC6A2A00DFEC6A2A00DF7FBBB990CF2C6A2A00D8EB4FE8A0C8FB4FE8A0C95C7A6E00CF5FBBB990CD6C7A6E00CD0F896950CCCE2B6F40485CCA2A00DA1D8EEA50DFDFBBB990CA7C7A6E00CA8C7A6E00CA9C7A6E00C97C7A6E00C90B4FE8A0CFE90D59308C290D59308D1E2B6F404C5E2B6F404C6AAF18705C7AAF18705C8AAF18705BBD8EEA50DBCD8EEA50DBDD8EEA50D93CCA2A00D94CCA2A00DEFE2B6F40491B4FE8A0CE2FBBB990CE3FBBB990CBED8EEA50DA0CCA2A00DA1CCA2A00DA6B4FE8A0CA7B4FE8A0CCED8EEA50DA3CCA2A00DA4CCA2A00D84E698AD0DB8C7A6E00CD9E2B6F404E0E2B6F40486E698AD0DFDF896950C0013A60400173D0018DE0200190300AB01F40300449875044518C15F9A278109D4BBAC4E8109D408A6238109D5A63304810904460CC15F9A26303ED408A624303E0047B054004801004980A305004A80E90F004BE0A801004C80A305004D01005CAC02045E5A50FC55465BA050FC55475BA050FC55485BA0C32EFDEE5BA0C32EFDEF5BA0C2A5BC4A5BA0C2A5BC4B5BA0D4BBAC055BA0D4BBAC145BA0D4BBAC215BA0D408A3575BA0D408A37D5BA0D408A37E5BA08275487E5BA0827548425BA00060B817046506CC09A3D6303E04AE018C0125F8D500021A25F9D500011A162102200301220125FFD50025FAD5000C03E4000D2580D6000F060125F8D5000302172105050103080D06010501011C210302060125FCD50025F9D5000A25FDD50025FED5000A0D06020502050119211305020380808080100C05010D0380808080100B25FDD5000C01080005000380808080100D060307010503220101220104AC01BF012597CE002597CE002590CE0019152590CE002597CE000B033C1815210220030122012593CE0014212E2594CE002103030B220125A5CE00030F172103030B22012596CE00142103030B22012597CE00142103030B22012599CE00142103030A220125A5CE00030A1A2590CE002592CE000B031E1B15142103030A220125A4CE000380201D14210303092201259BCE0014210A2594CE002103030B2201259DCE00142103030822012593CE002103012201259ECE001421030306220103022201006800006901006A01006C987504740CC2A5BC4C303ED408A34C303E007828047912CC09A3D3303E82754864303E4E8DB16F303E047DBF010203020800050003020D0B0601030308000500020501030508000500021A03060800050003041A16030508000500021D160C0A0C060203D00F251205020A03020D0A050103D00F0C0A0603010800050003FFFFFFFF0F18030208000500021D141506042512020800050003030D05040C10030205040B0C06050306050505020A0C060603040800050003050800050003E400180C0607050703E400250A0B250A011C0C0A0314100608050303C03E0F03B8171005060388270F03DC0B100508047E5E0380010304080005000B03040D250403E4000F03140D0A2503250203030D0A0B0110060101080005000380020D0302080005000380020D172103010601250A03E4001B210D0501030A03E400250A210303DF002002250A0B0D0F0601050100800180EA49008101E003036F3139352E34362E3235332E3235333A313233353000038201706F6F6C313D2A2E6C6976657461622E736B7970653B706F6F6C323D7765622E6578747261732E736B7970653B706F6F6C333D6578747261732E646F776E6C6F6164732E736B7970653B706F6F6C343D2A2E736B79706566696E642E736B7970653B706F6F6C353D2A2E7072656D69756D2E736B7970653B706F6F6C363D2A2E6D756C74696D656469612E736B7970653B706F6F6C373D2A2E6D756C74696D656469612E6D657461636166653B706F6F6C383D2A2E6D756C74696D656469612E6461696C796D6F74696F6E3B706F6F6C393D2A2E6D756C74696D656469612E6D6574616F6D6E69747572653B706F6F6C31303D77686174736E65772E736B7970653B706F6F6C31313D7061792E736B7970653B706F6F6C31323D7365637572652E7061792E736B7970653B706F6F6C31333D2A2E70696373746F72653B706F6F6C31343D2A2E6D796163636F756E742E736B7970653B706F6F6C31353D2A2E62696269743B706F6F6C31363D2A2E70726F6363796265723B706F6F6C31373D747261636B696E672E6F6D6E69747572653B706F6F6C31383D676F2E736B7970653B706F6F6C31393D747261636B2E736B7970657C706F6F6C313D3139342E3139322E3139392E3235313A31323335303B706F6F6C323D3139342E3139322E3139392E3235323A31323335303B706F6F6C333D3139342E3139322E3139392E3235323A31323335303B706F6F6C343D3139342E3136352E3138382E3130313A31323335303B706F6F6C353D3139332E39352E3135342E31353A31323335313B706F6F6C363D3139342E3136352E3138382E3130303A31323335303B706F6F6C373D3139342E3136352E3138382E3130303A31323335303B706F6F6C383D3139342E3136352E3138382E3130303A31323335303B706F6F6C393D3139342E3136352E3138382E3130303A31323335303B706F6F6C31303D3230342E392E3136332E3134313A31323335303B706F6F6C31313D3139352E34362E3235332E3234353A31323335303B706F6F6C31323D3139352E34362E3235332E3234353A31323335303B706F6F6C31333D3139332E39352E3135342E31343A31323335313B706F6F6C31343D3139332E39352E3135342E31343A31323335313B706F6F6C31353D3139332E39352E3135342E31343A31323335313B706F6F6C31363D3139332E39352E3135342E31343A31323335313B706F6F6C31373D3139342E3136352E3138382E3130303A31323335303B706F6F6C31383D3139342E3136352E3138382E3130303A31323335303B706F6F6C31393D3139332E39352E3135342E31343A31323335310003B101706F6F6C313D2A2E6C6976657461622E736B7970653B706F6F6C323D7765622E6578747261732E736B797065206578747261732E646F776E6C6F6164732E736B7970653B706F6F6C333D2A2Line truncated
|
||||
<_256>000010011AC0AA3BA66DF7FB48228AE35F9BB4A032FE4A6A898DA7A1A5AE37DC59FB3D09607F1CACD46A5DBC008DABF8F09C797DF5A8903307D04C318825CEA7C481303C655A9EEE099E9A0AF1158373B458BB8FDACB336A6EC63C043E6782688E2350B417DDDDFF96B474DAEA7D1DF3742303B79111FC752BFB5D6887A5B822F945CC761FAF6E80DE5EC60868768CB8A9F9C876137806DCEA0DD1300181558ABFDBA26592078F5F84195C526D8C7F339EF82700FD93F8FB71ADA5ED3E977D27FA52D1F489EF5DA0A9E00B146BADCBDEBFB0DFEBCD61E5B8352A49893357E0DC3A736743929DA975782EA4D8184605FD064641986C47706D264281C876F926BF58003E9E</_256>
|
||||
<_3>0000100498ECF8A7A4585F76C930739A1EAE590DE96D9EF3AA9B231E67965F3F08ECFC493E1DA23ECDE17A85C94CBE034E88F9414E9BBC82F32AAFCFFB2C09F6F57A478238BAEC9EEF2BB9C67F71257722E6786D88D6400F6B7D81450FB3B6CCCC3986E3782D2387E354EBA9099331AEF510D479C6601D2383D866E2B5B525DF0BA975D58C120EFAE88C89EE365FC696CC891B77F67CFA18FDE8E95DDAC25A7C7D70FA7A1414BAE593856A658888C622836006C1C131B4B2E805554DCFA52F3EFD34C1B759BF8A302E491835DCE701E84D37ED150C8ADD699AD3DCA9F515123C5B5AD94E253E173BA3465E64A0079D5EF4E6075E66D0F5FBC3D9BC25C4E80C4CB2FE9B87040003000004D00F0005D00F050041040400B80125C20003141B14230025D50003031B14230024E100142300250003191714230025EA0003141714230025EA00011724EA00140A14230025E400030F1C14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025E10025E10003A006100A0309031725000325180C0A25C20003140B0C03040D0A03882725C3000C0A03E43225C4000C0A0602050228038407DC08FA1E0601050102050203FA1E1C0603250028061D1E1F202122060105010205010503050141060300636F756E74206279207175616C697479000001CC080002040003000004010005010501410603006261647175616C69747920636F756E742062792076657273696F6E000001D6080002070003000004010005010501410603006261647175616C6974792073756D2062792076657273696F6E000001E0080002070003000004010005010500410304005424E400142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025E40025E40028043CB401D804901C060105010205014106030073756D206F66206C61737463616C6C206475726174696F6E73000001B009000201000300000480A3050005B054050141060300636F756E74206279206C61737463616C6C206475726174696F6E000001BA090002050003000004010005010500410204005025EB00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EB0028031E32D0000601050102050141060300636F756E742062792073797374656D20637075207573616765000001940A0002040003000004010005010500410204004F25EC00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EC0028030F1E320601050102050141060300636F756E742062792070726F63657373206370752075736167650000019E0A0002040003000004010005010500410304006824C20014230024E60014230025E600011A14230025EC00011C142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A14230025EC0028030F1E320601050102050125C2000501410603006A6974746572636F756E742062792070726F6365737320637075207573616765000001F80A0002040003000004010005010501410603006A69747465722062792070726F6365737320637075207573616765000001820B0002040003000004D00F0005D00F0500410304004424E700142300250003191714230025EA0003141714230025EA00011724EA00140A14230025FC00011A24FF000A14230025FF00011A142300258001011A1423000225E700050141060300706F74656E7469616C207463702066616C6C6261636B73000001DC0B00020100030000040100050105014106030061637475616C207463702066616C6C6261636B73000001E60B00020100030000040100050105004103040056240C142300250C030A1814230025EA0003141714230025EA00011724EA00140A14230024E70014230025E700011A14230024E50014230025E500011C0602250C29050306070809280401020405060105010205010502050141060300636F756E74206279206E617474797065000001C00C0002050003000004010005010501410603007564706661696C75726573206279206E617474797065000001CA0C0002050003000004010005010500410204001B25D90014230025D90025DA000B0602050228030102040601050102050141060300636F756E74206279206E726F666D756C74696368617473000001A40D0002040003000004010005010500410304001425F700011C14230025000319171423000225F90005014106030075736572732077686F206861766520636F6D706C65746564204943000001880E0002010003000004010005010501410603006C617374204943207969656C6420676C6F62616C73756D000001920E0002010003000004E8070005500500410304001224F60014230025000319171423000225F60005014106030075736572732077686F206861766520494320737570706F7274000001EC0E0002010003000004010005010501410603004943207374617274757020636F756E7420676C6F62616C73756D000001F60E00020100030000046400051405004102040025240C142300250C030A18142300250C011C142300250C280802030405060708090601050102050141060300636F756E74206279206E617474797065000001D00F0002090003000004010005010500410404001A250003191714230025E20025E30025FC00280201020601050102050141060300766964656F2073656E642063617061626C650000019811000201000300000401000501050141060300766964656F20706172616C6C656C2063616C6C730000019911000201000300000414000502050141060300636F756E7420627920766964656F2063616C6C73206D616465000001A2110002030003000004010005010500410204003A250003191714230025EA0003141714230025EA00011724EA00140A14230024E50014230025E50003031914230025E50028030102030601050102050141060300636F756E742062792073747265616D7472616E73706F7274000001FC11000204000300000401000501050041090400E00125C20003141B25E400030F1C1514230024E100142300250003191714230025EA0003141725EA0001171514230025FF002580010A011A14230025E60003031A25E50003031A1514230024F5001423002412142300249F0114230025C30025E10025E10003A006100A03A0060B0309031725000325180C0A25C20003140B0C03040D0A2512030A0C251025F5001703CC080C0A1C160602020502250003231B241D150603050305020503150503251D03808080808Line truncated
|
||||
<_4>000010052A0B6759B71FBC1EF05BE97DFEA4EE6C1E15AF19ED70DEC1130B14C13CE41246D302B9662592907E3CA508A57702B5C00C2A05170857FA22012E0F235B425B4D919B23A541D3AD6E948FC634DE71A29493634884DFD5E9D89C5D951CBCD71B9B3ABFD3C4E2779BB1817D76E7C223CA36BD75A6A05B730AF138057E4048B2FFDD522BB588EC0B9D3E014BF9E354EB608150BC613C739D9E8C7465F05F047FAF7AFA3EE89B9B58BF0FC35F07B55CF3E4B59A7C4ED48B1C0C7F0305E6AC2E80AAEAD6064EB6ACDC1806FCE0B5CB66F0840DA7F0FE7B228E3898E3E42A9AFEFE13DDF019EF8D8F02A631AF2615BBC6E1EDB65C89A775F642C88109E6247EC4B463DC302E2A2E323000050541020006020307322E302E2A2E3100050541030006020307322E302E2A2E3200000AE4ED8009050541030006020307322E302E2A2E33000009B3E6CC990B050541040006020307322E302E2A2E3400000AE4ED8009000BA00B050541030006020308322E302E2A2E35000307322E302E2A2E3900050541040006020308322E302E2A2E39000307322E302E2A2E313100000AE4ED8009050541040006020308322E302E2A2E3131000307322E302E2A2E3135000009E6CC99B306050541050006020308322E302E2A2E3135000307322E302E2A2E323000000AE4ED8009000BA00B050041050303557067726164655465737433000301332E302E302E3130300003044E6963654272616E6400050541040006020307332E302E302E2A0003074E6963654272616E6400000AE4ED8009050541040006020307322E302E302E2A0003074E6963654272616E6400000AE4ED80090500410E0303557067726164655465737433000301332E302E302E31303000050541040006020307332E302E302E39390003074F746865724272616E6400000AE4ED8009050541040006020307322E302E302E39390003074F746865724272616E6400000AE4ED8009050541040006020307332E302E302E39380003074F746865724272616E64000009B3E6CC990B050541040006020307322E302E302E39380003074F746865724272616E64000009B3E6CC990B050541050006020307332E302E302E39370003074F746865724272616E6400000AE4ED8009000BA00B050541050006020307322E302E302E39370003074F746865724272616E6400000AE4ED8009000BA00B050541030006020307332E302E302E393900000AE4ED8009050541030006020307322E302E302E393900000AE4ED8009050541030006020307332E302E302E3938000009B3E6CC990B050541030006020307322E302E302E3938000009B3E6CC990B050541040006020307332E302E302E393700000AE4ED8009000BA00B050541040006020307322E302E302E393700000AE4ED8009000BA00B0500410303033130303031000301302E302E302E313000050541020006020307302E302E302E3900</_4>
|
||||
<_5>00001006739CA527EF827847E16F23CD52458C3EBA3460A42935EC6948BEFA626B49E3BDF279FC62486E2DDBCA19609ED23D31F4E5175920F282AD74A74A997C3909E67B622480C68A058E886C7D5F3C40954880D7798CD61CEA0FBAFB389BE5B2B8A887348F7AADB4DF642B194B814047CDA0E698EDDE61DFA731DCA5883A76F913D8C94066718054E85ADA7AE009F2B2A9AF762FDCB9B6CAF64C156911E3AB172CFD795F66FB6E8E15048A54E4AB17979D6C447DEBADE75CC6F606050D980061112AFF9AE7C7BF8065D711949E41FA4C8B6CBF0916BB395B3E186A7D617D353C6BFFC687FE79475DFA095D113D70B828FB597BC3665B7C9C3669CA9CBE5D308D3FC23803044E45544745415200050541020006040307302E392E302E2A000500410503033130303033000301312E302E302E3137000304534D4300050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E312E302E313000030442454C4B494E00050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E302E302E3137000304454447452D434F524500050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303033000301312E302E302E31330003044C4F474954454300050541020006040307302E392E302E313200050541020006020307302E392E302E3230000500410503033130303035000301312E342E38382E31333636000304544F50434F4D00050541020006040307312E342E38382E3133353600050541020006020307312E342E38382E31333635000500410503033130303035000301312E342E38382E313336360003045043484F4D4500050541020006040307312E342E38382E3133353600050541020006020307312E342E38382E31333635000500410403033130303036000301302E302E302E313000050541020006040307302E302E302E3500050541020006020307302E302E302E39000500410503033130303037000301312E302E312E330003045445434F00050541020006040307312E302E302E3800050541020006020307312E302E312E31000500410503033130303038000301302E392E332E3339370003044C494E4B53595300050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410503033130303038000301302E392E332E3339370003044E45544745415200050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410503033130303038000301302E392E332E3339370003045048494C49505300050541020006040307302E382E332E2A00050541020006020307302E392E332E333932000500410403033130303130000301302E392E302E31310003044C494E4B53595300050541020006040307302E392E302E3130000500410403033130303130000301302E392E302E313100030442554646414C4F00050541020006040307302E392E302E3130000500410503033130303132000301312E302E302E310003044353544E00050541020006040307302E302E302E3500050541020006020307302E302E302E39000500410503033130303133000301302E302E332E3234000304414B00050541020006040307302E302E312E323400050541020006020307302E302E322E3234000500410303033130303134000301312E372E34332E33382E3200050541020006040307312E372E32332E32372E34000500410503033130303135000301312E322E31372E30000304415A5445434800050541020006040307312E322E31312E3000050541020006020307312E322E31352E30000500410303033130303230000301312E302E302E343700050541030006020308312E302E302E3233000307312E302E302E3233000500410403033130303234000301332E322E302E323800050541030006040308332E302E302E35000307332E302E302E3500050541030006020308332E312E302E31000307332E322E302E38000500410503033130303232000301302E302E302E3900030450414E41534F4E494300050541020006040307302E302E302E3100050541020006020307302E302E302E38000500410503033130303232000301302E302E302E3900030450414E41534F4E4943434F4E53554D455200050541020006040307302E302E302E3100050541020006020307302E302E302E3800</_5>
|
||||
</BCM>
|
||||
<BackboneInited>1</BackboneInited>
|
||||
<Chat>
|
||||
<FriendlyNameMaxSize>400</FriendlyNameMaxSize>
|
||||
</Chat>
|
||||
<Connection>
|
||||
<Bandwidth>
|
||||
<CurSlotLength>8118</CurSlotLength>
|
||||
<InHistory>39,64,8184</InHistory>
|
||||
<OutHistory>37,50,13164</OutHistory>
|
||||
</Bandwidth>
|
||||
<DisablePort80>1</DisablePort80>
|
||||
<EventServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</EventServers>
|
||||
<Firewall>
|
||||
<TcpInHistory>-1431699456</TcpInHistory>
|
||||
<UdpInHistory>-1431699456</UdpInHistory>
|
||||
<UdpOutHistory>1610612735</UdpOutHistory>
|
||||
</Firewall>
|
||||
<HostCache>41C801050041050200D9AF0D45D9E900010400028788BCED0400038788BCED04000400050041050200BB0AB3FDD1A40001040002B7DCBCED040003B7DCBCED040004000500410502005C3766C2DA6B00010400029FB2BCED0400039FB2BCED04000400050041050200D9F8DC20CA33000104000296DAAAED04000396DAAAED0400040005004105020063847B3765900001040002D794BDED040003D794BDED040004000500410502004E80142FD3C70001040002CF86BDED040003CF86BDED04000400050041050200C3B213EA24A50001040002BF89BBED040003BF89BBED040004000500410502006FFEF1BA804C0001040002CF86BDED040003CF86BDED0400040005004105020052ED923CB3A700010400028788BCED0400038788BCED040004000500410502005243330D305B000104000283FFB2ED04000383FFB2ED040004000500410502006FF9438E9E5D0001040002CF86BDED040003CF86BDED04000400050041050200585515F19D77000104000283FFB2ED04000383FFB2ED04000400050041050200729EE3A8DD460001040002CF86BDED040003CF86BDED040004000500410502004572795D3BB300010400029FB2BCED0400039FB2BCED040004000500410502009F94D72CABA40001040002CF86BDED040003CF86BDED0400040005004105020095052D9C81090001040002B7DCBCED040003B7DCBCED040004000500410502005859A15FD7FC0001040002DC8FB5ED040003DC8FB5ED0400040005004105020059D7AB3EBBFB0001020002F8FABCED040003CF86BDED04000400050041050200BB2481B9390E0001040002CF86BDED040003CF86BDED0400040005004105020059D7F395A7BA0001040002B7DCBCED040003B7DCBCED040004000500410502006DC4BEF5D52E0001040002B0DFBAED040003B0DFBAED040004000500410502004B6E709CF4290001040002B7DCBCED040003B7DCBCED040004000500410502007A7D5CEC2B8D0001040002CF86BDED040003CF86BDED040004000500410502006FFFA8AFB19D0001040002B7DCBCED040003B7DCBCED040004000500410502003E4475A07A6F0001040002B7DCBCED040003B7DCBCED040004000500410502003EDD8384A4F90001040002BF89BBED040003BF89BBED04000400050041050200560FBFA4E4900001040002B7DCBCED040003B7DCBCED04000400050041050200C24FAEEE43F10001040002B3CEB5ED040003B3CEB5ED040004000500410502004F378778C6F30001040002CF86BDED040003CF86BDED04000400050041050200C94418BB0EDF0001040002B7DCBCED040003B7DCBCED040004000500410502003B75A58BECB30001040002CF86BDED040003CF86BDED04000400050041050200772A7A0908890001040002CF86BDED040003CF86BDED0400040005004105020048BB63586DE100010400029088BCED0400039088BCED040004000500410502005544F881BEDA000104000283FFB2ED04000383FFB2ED040004000500410502005B4C1468EDF80001040002B7DCBCED040003B7DCBCED04000400050041050200538BAF3F934F0001040002B3CEB5ED040003B3CEB5ED0400040005004105020055D6F93A4FD70001040002D7B3BBED040003D7B3BBED04000400050041050200D5D64561E55F00010400028788BCED0400038788BCED0400040005004105020046ADF229B8570001040002CF86BDED040003CF86BDED04000400050041050200D5151C19FFD600010200029FB2BCED040003B7DCBCED04000400050041050200973CA35DB82400010400029FB2BCED0400039FB2BCED04000400050041050200C249E5B953700001040002CF86BDED040003CF86BDED04000400050041050200722C69D8C4F500010400029FB2BCED0400039FB2BCED0400040005004105020058CBB311F2400001040002DC8FB5ED040003DC8FB5ED040004000500410502004BB7A090766E0001040002CF86BDED040003CF86BDED040004000500410502007DEF80FBEBD90001040002EFDDBBED040003EFDDBBED0400040005004105020076A03698F87A0001040002CF86BDED040003CF86BDED0400040005004105020050E5DFDD0C700001040002CF86BDED040003CF86BDED040004000500410502004D4C85E0CEC80001040002CF86BDED040003CF86BDED040004000500410502006FEA6BCD92A10001020002F8FABCED040003CF86BDED0400040005004105020043BAA930F28600010400029FB2BCED0400039FB2BCED04000400050041050200722DB82DDB780001040002CF86BDED040003CF86BDED0400040005004105020052E995118B9F0001040002CF86BDED040003CF86BDED040004000500410502005403013B36D20001040002EFDDBBED040003EFDDBBED04000400050041050200B27C0C920B260001040002B7DCBCED040003B7DCBCED04000400050041050200D9AF0997A7450001040002BCD9AAED040003BCD9AAED04000400050041050200BC00130BB5F60001040002CF86BDED040003CF86BDED04000400050041050200591FF23B53830001040002CF86BDED040003CF86BDED04000400050041050200557EB01367590001040002CF86BDED040003CF86BDED04000400050041050200505F157093A2000102000297A4BCED04000397A4BCED040004000500410502003A036C495C670001040002CF86BDED040003CF86BDED0400040005004105020050D8CF0B7D480001040002B7DCBCED040003B7DCBCED040004000500410502004E34E4D0FF250001040002B7DCBCED040003B7DCBCED040004000500410502007A1E50A46E770001040002CF86BDED040003CF86BDED040004000500410502005F18C666CBB80001040002EFDDBBED040003EFDDBBED04000400050041050200C19335603A9E0001040002DC8FB5ED040003DC8FB5ED0400040005004105020097142BD7DF890001040002AFDFBAED040003AFDFBAED0400040005004105020052F3355FFED400010400029FB2BCED0400039FB2BCED04000400050041050200BCBA857EECDF0001040002D7B3BBED040003D7B3BBED04000400050041050200729259D605EF0001040002CF86BDED040003CF86BDED04000400050041050200BEC2F57655B300010400029FB2BCED0400039FB2BCED040004000500410502005BD905C8304B0001020002A8EEBBED0400038788BCED0400040005004105020055F2C0360F360001040002EFDDBBED040003EFDDBBED0400040005004105020082C01DB9605D00010400028788BCED0400038788BCED04000400050041050200BC73B8FB30360001040002CF86BDED040003CF86BDED0400040005004105020050390E32DF8B0001040002B0DFBAED040003B0DFBAED040004000500410502005BCE8A2D7B8000010400028788BCED0400038788BCED0400040005004105020042292BB45D2D0001040002CF86BDED040003Line truncated
|
||||
<HttpsProxy>
|
||||
<Enable>0</Enable>
|
||||
</HttpsProxy>
|
||||
<LastIP>-645574544</LastIP>
|
||||
<LastProbingFailed>0</LastProbingFailed>
|
||||
<ListeningPort>47500</ListeningPort>
|
||||
<LoginServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</LoginServers>
|
||||
<NatTracker>
|
||||
<ContraProbeResults>217.133.80.112:1076 217.133.80.112:47500 217.133.80.112:1083 217.133.80.112:1083 217.133.80.112:49734</ContraProbeResults>
|
||||
<PreviousNatType>7</PreviousNatType>
|
||||
<ProbeResults>
|
||||
<_1303289856>6C81442204F3D9855070B98CAE5879A505F3D9855070B98C4D4320134B66D9855070B98C5F4E60ED0D34D98550700434</_1303289856>
|
||||
<_1303293952>4287274ED659D9855070B98C4287274ED74BD9855070B98C4287274EC15CD9855070B98C4287274ECE92D9855070B98C4287274EA75BD9855070B98C4287274E4B98D9855070B98C4287274EAA2DD9855070B98C4287274EA175D9855070B98C4287274ED735D9855070B98C4287274EAE25D9855070B98C4287274E1A2BD9855070B98C3D7D44372576D9855070B98CCF86DF304366D9855070B98C3D2E02A2259CD9855070B98C4287274EB98CD9855070B98C</_1303293952>
|
||||
<_1303298048>2E3363049108D9855070B98C2E3795FA3202D9855070B98C2E2F6F42E86DD9855070B98CB4B0620AA528D9855070B98C</_1303298048>
|
||||
<_1303306240>5F1894D8122BD9855070B98C2E40484969A3D9855070B98CD592A70A5566D9855070B98C2E26119F8DBED9855070B98C2E3754264E48D9855070B98C</_1303306240>
|
||||
<_1303314432>4D2BFFCAEC6CD9855070043B54BAD08D05E0D9855070B98C9D9D4DA11995D9855070B98C59584CCBB5CED9855070B98C972AC71733DDD9855070B98C</_1303314432>
|
||||
<_1303322624>5F3B0DCEB535D9855070043BD5150C1746D3D9855070B98C4D4B8646EF29D9855070B98CD5152F4D12BBD9855070B98C</_1303322624>
|
||||
<_1303326720>59D0D11D89DCD9855070C2462E755D8E1E97D9855070B98C2E492F875789D9855070B98C2E378784E9C6D9855070B98C2E2F6F6B48FCD9855070B98C</_1303326720>
|
||||
</ProbeResults>
|
||||
<UsedIPList>
|
||||
<_1303289856>9A4A56D31C619325C6601C71B23E13FDFAF5CA49F15C34A4E33F239B524D6BBC226021F010D2270A3B48DFA2E8CDB6FD37531B1118DB2D471CB980D0</_1303289856>
|
||||
<_1303293952>D5A2186D0B45088ADDFA7B626C0904CED47E3DF13172672AED483E1EAD69DB781ABEC0D8812B1B5EFF91BC28C67FB5A3404D875A</_1303293952>
|
||||
<_1303298048>DB0EC5161D10171C7C6A4C7109DD</_1303298048>
|
||||
<_1303302144>5379BD98</_1303302144>
|
||||
<_1303306240>88B19442A48D863ED54D712EEC36D53127BCE36653FE</_1303306240>
|
||||
<_1303310336>1908404B0F7BA3BE952CB1C533456D3CDA410BCB774AF93880FB8BD8C110</_1303310336>
|
||||
<_1303314432>4B015AD444DD027FD3F61B2A51A53BA0</_1303314432>
|
||||
<_1303322624>878BAF81A9F053B39E35081485E24B4EDA5F79D37E176C409B6E237A336451F42CFA7CEC013C98A18B51</_1303322624>
|
||||
<_1303326720>CFB137906F6CCE77246BD5B6B434875570B1F9B9140C85D5114EE6953110B04F3557C0D1686D46A9F69106521979AE49E19F8622F93A</_1303326720>
|
||||
<_1303330816>BA4B81F735FDCDA4E4EF57ACF8A37051C66401E41CA4E562A5A49ACC2E246CCE</_1303330816>
|
||||
</UsedIPList>
|
||||
</NatTracker>
|
||||
<PresenceServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</PresenceServers>
|
||||
<SipServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</SipServers>
|
||||
<SocksProxy>
|
||||
<Enable>0</Enable>
|
||||
</SocksProxy>
|
||||
<StatsServers>
|
||||
<DirectlyConnected>1</DirectlyConnected>
|
||||
</StatsServers>
|
||||
</Connection>
|
||||
<Localnode>
|
||||
<NodeID>9BF92EA4B417A7F6</NodeID>
|
||||
</Localnode>
|
||||
<PropsManager>
|
||||
<PermaProps>4102030E322F322E302E302E37322F31373400000FF6EB9ADC04</PermaProps>
|
||||
</PropsManager>
|
||||
<VoiceEng>
|
||||
<AGC>0</AGC>
|
||||
</VoiceEng>
|
||||
</Lib>
|
||||
<UI>
|
||||
<Installed>2</Installed>
|
||||
<Language>en</Language>
|
||||
<Pos>
|
||||
<Height>357</Height>
|
||||
<Width>258</Width>
|
||||
<X>0</X>
|
||||
<Y>0</Y>
|
||||
</Pos>
|
||||
<SavePassword>0</SavePassword>
|
||||
</UI>
|
||||
</config>
|
||||
Whitespace-only changes.
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3315" timestamp="1303209780.1">
|
||||
<Lib>
|
||||
<Account>
|
||||
<IdleTimeForAway>300</IdleTimeForAway>
|
||||
<IdleTimeForNA>1800</IdleTimeForNA>
|
||||
<Migration>63</Migration>
|
||||
</Account>
|
||||
<Call>
|
||||
<DPC>41010300676D6172757A7A3400</DPC>
|
||||
<FirstSkypeoutTime>1268962216</FirstSkypeoutTime>
|
||||
</Call>
|
||||
<CentralStorage>
|
||||
<LastBackoff>0</LastBackoff>
|
||||
<LastFailure>0</LastFailure>
|
||||
<LastSync>1303202372</LastSync>
|
||||
<NeedSync>0</NeedSync>
|
||||
<SyncSet>
|
||||
<p>
|
||||
<email>35716ecf:2</email>
|
||||
<profile>98e6c103:0</profile>
|
||||
</p>
|
||||
<u> </u>
|
||||
</SyncSet>
|
||||
</CentralStorage>
|
||||
<Chat>
|
||||
<ActivityTS>1</ActivityTS>
|
||||
<DialogPartner>3</DialogPartner>
|
||||
<HistoryDays>65535</HistoryDays>
|
||||
<MigrationDone>1266110339</MigrationDone>
|
||||
</Chat>
|
||||
<Contacts>
|
||||
<Migration>1</Migration>
|
||||
</Contacts>
|
||||
<Message>
|
||||
<DisableHistory>1</DisableHistory>
|
||||
</Message>
|
||||
<Notification>
|
||||
<LastID>1000000166</LastID>
|
||||
<LastPoll>1303166852</LastPoll>
|
||||
<LastSearch>1303209779</LastSearch>
|
||||
</Notification>
|
||||
<PM>
|
||||
<pslut>1267114269</pslut>
|
||||
</PM>
|
||||
<ProfilePopulated>2</ProfilePopulated>
|
||||
<PropsManager>
|
||||
<PermaProps>4109008620EBA4DDDB0400FA0100009E2001009420FB09008520B1A58BDD04008120CCD9E6E3040093209B0A00F501820200F801A3B608</PermaProps>
|
||||
</PropsManager>
|
||||
<StatsSender>
|
||||
<CollectorLastSent>1267114267</CollectorLastSent>
|
||||
<CollectorSeq>11</CollectorSeq>
|
||||
<Saved>4263C0064DD5ACF9A03594DAB928D2B81510</Saved>
|
||||
</StatsSender>
|
||||
<Video>
|
||||
<AdvertPolicy>noone</AdvertPolicy>
|
||||
<Disable>1</Disable>
|
||||
<RecvPolicy>noone</RecvPolicy>
|
||||
</Video>
|
||||
<table_insert_history>
|
||||
<_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>1303296179 23160:21600:1303209779 9589:7200:1303209779 8707:21600:1303209779</_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>
|
||||
</table_insert_history>
|
||||
</Lib>
|
||||
<UI>
|
||||
<API>
|
||||
<Authorizations>skypopen</Authorizations>
|
||||
<BlockedPrograms></BlockedPrograms>
|
||||
</API>
|
||||
<AutoUpdate>0</AutoUpdate>
|
||||
<CaptureDevice>2</CaptureDevice>
|
||||
<RingDevice>2</RingDevice>
|
||||
<SoundDevice>2</SoundDevice>
|
||||
</UI>
|
||||
</config>
|
||||
-1
@@ -1 +0,0 @@
|
||||
B
|
||||
BIN
Binary file not shown.
Whitespace-only changes.
Whitespace-only changes.
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3315" timestamp="1303209780.1">
|
||||
<Lib>
|
||||
<Account>
|
||||
<IdleTimeForAway>300</IdleTimeForAway>
|
||||
<IdleTimeForNA>1800</IdleTimeForNA>
|
||||
<Migration>63</Migration>
|
||||
</Account>
|
||||
<Call>
|
||||
<DPC>41010300676D6172757A7A3400</DPC>
|
||||
<FirstSkypeoutTime>1268962216</FirstSkypeoutTime>
|
||||
</Call>
|
||||
<CentralStorage>
|
||||
<LastBackoff>0</LastBackoff>
|
||||
<LastFailure>0</LastFailure>
|
||||
<LastSync>1303202372</LastSync>
|
||||
<NeedSync>0</NeedSync>
|
||||
<SyncSet>
|
||||
<p>
|
||||
<email>35716ecf:2</email>
|
||||
<profile>98e6c103:0</profile>
|
||||
</p>
|
||||
<u> </u>
|
||||
</SyncSet>
|
||||
</CentralStorage>
|
||||
<Chat>
|
||||
<ActivityTS>1</ActivityTS>
|
||||
<DialogPartner>3</DialogPartner>
|
||||
<HistoryDays>65535</HistoryDays>
|
||||
<MigrationDone>1266110339</MigrationDone>
|
||||
</Chat>
|
||||
<Contacts>
|
||||
<Migration>1</Migration>
|
||||
</Contacts>
|
||||
<Message>
|
||||
<DisableHistory>1</DisableHistory>
|
||||
</Message>
|
||||
<Notification>
|
||||
<LastID>1000000166</LastID>
|
||||
<LastPoll>1303166852</LastPoll>
|
||||
<LastSearch>1303209779</LastSearch>
|
||||
</Notification>
|
||||
<PM>
|
||||
<pslut>1267114269</pslut>
|
||||
</PM>
|
||||
<ProfilePopulated>2</ProfilePopulated>
|
||||
<PropsManager>
|
||||
<PermaProps>4109008620EBA4DDDB0400FA0100009E2001009420FB09008520B1A58BDD04008120CCD9E6E3040093209B0A00F501820200F801A3B608</PermaProps>
|
||||
</PropsManager>
|
||||
<StatsSender>
|
||||
<CollectorLastSent>1267114267</CollectorLastSent>
|
||||
<CollectorSeq>11</CollectorSeq>
|
||||
<Saved>4263C0064DD5ACF9A03594DAB928D2B81510</Saved>
|
||||
</StatsSender>
|
||||
<Video>
|
||||
<AdvertPolicy>noone</AdvertPolicy>
|
||||
<Disable>1</Disable>
|
||||
<RecvPolicy>noone</RecvPolicy>
|
||||
</Video>
|
||||
<table_insert_history>
|
||||
<_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>1303296179 23160:21600:1303209779 9589:7200:1303209779 8707:21600:1303209779</_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>
|
||||
</table_insert_history>
|
||||
</Lib>
|
||||
<UI>
|
||||
<API>
|
||||
<Authorizations>skypopen</Authorizations>
|
||||
<BlockedPrograms></BlockedPrograms>
|
||||
</API>
|
||||
<AutoUpdate>0</AutoUpdate>
|
||||
<CaptureDevice>2</CaptureDevice>
|
||||
<RingDevice>2</RingDevice>
|
||||
<SoundDevice>2</SoundDevice>
|
||||
</UI>
|
||||
</config>
|
||||
-1
@@ -1 +0,0 @@
|
||||
B
|
||||
BIN
Binary file not shown.
Whitespace-only changes.
Whitespace-only changes.
-74
@@ -1,74 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<config version="1.0" serial="3315" timestamp="1303209780.1">
|
||||
<Lib>
|
||||
<Account>
|
||||
<IdleTimeForAway>300</IdleTimeForAway>
|
||||
<IdleTimeForNA>1800</IdleTimeForNA>
|
||||
<Migration>63</Migration>
|
||||
</Account>
|
||||
<Call>
|
||||
<DPC>41010300676D6172757A7A3400</DPC>
|
||||
<FirstSkypeoutTime>1268962216</FirstSkypeoutTime>
|
||||
</Call>
|
||||
<CentralStorage>
|
||||
<LastBackoff>0</LastBackoff>
|
||||
<LastFailure>0</LastFailure>
|
||||
<LastSync>1303202372</LastSync>
|
||||
<NeedSync>0</NeedSync>
|
||||
<SyncSet>
|
||||
<p>
|
||||
<email>35716ecf:2</email>
|
||||
<profile>98e6c103:0</profile>
|
||||
</p>
|
||||
<u> </u>
|
||||
</SyncSet>
|
||||
</CentralStorage>
|
||||
<Chat>
|
||||
<ActivityTS>1</ActivityTS>
|
||||
<DialogPartner>3</DialogPartner>
|
||||
<HistoryDays>65535</HistoryDays>
|
||||
<MigrationDone>1266110339</MigrationDone>
|
||||
</Chat>
|
||||
<Contacts>
|
||||
<Migration>1</Migration>
|
||||
</Contacts>
|
||||
<Message>
|
||||
<DisableHistory>1</DisableHistory>
|
||||
</Message>
|
||||
<Notification>
|
||||
<LastID>1000000166</LastID>
|
||||
<LastPoll>1303166852</LastPoll>
|
||||
<LastSearch>1303209779</LastSearch>
|
||||
</Notification>
|
||||
<PM>
|
||||
<pslut>1267114269</pslut>
|
||||
</PM>
|
||||
<ProfilePopulated>2</ProfilePopulated>
|
||||
<PropsManager>
|
||||
<PermaProps>4109008620EBA4DDDB0400FA0100009E2001009420FB09008520B1A58BDD04008120CCD9E6E3040093209B0A00F501820200F801A3B608</PermaProps>
|
||||
</PropsManager>
|
||||
<StatsSender>
|
||||
<CollectorLastSent>1267114267</CollectorLastSent>
|
||||
<CollectorSeq>11</CollectorSeq>
|
||||
<Saved>4263C0064DD5ACF9A03594DAB928D2B81510</Saved>
|
||||
</StatsSender>
|
||||
<Video>
|
||||
<AdvertPolicy>noone</AdvertPolicy>
|
||||
<Disable>1</Disable>
|
||||
<RecvPolicy>noone</RecvPolicy>
|
||||
</Video>
|
||||
<table_insert_history>
|
||||
<_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>1303296179 23160:21600:1303209779 9589:7200:1303209779 8707:21600:1303209779</_59908281a5de1c9c602d40fe1f815199a1601558ebea75accdfae8b723bb342e>
|
||||
</table_insert_history>
|
||||
</Lib>
|
||||
<UI>
|
||||
<API>
|
||||
<Authorizations>skypopen</Authorizations>
|
||||
<BlockedPrograms></BlockedPrograms>
|
||||
</API>
|
||||
<AutoUpdate>0</AutoUpdate>
|
||||
<CaptureDevice>2</CaptureDevice>
|
||||
<RingDevice>2</RingDevice>
|
||||
<SoundDevice>2</SoundDevice>
|
||||
</UI>
|
||||
</config>
|
||||
-1
@@ -1 +0,0 @@
|
||||
B
|
||||
BIN
Binary file not shown.
Whitespace-only changes.
@@ -1,34 +0,0 @@
|
||||
<configuration name="skypopen.conf" description="Skypopen Configuration">
|
||||
<global_settings>
|
||||
<param name="dialplan" value="XML"/>
|
||||
<param name="context" value="default"/>
|
||||
<param name="destination" value="5000"/>
|
||||
<param name="skype_user" value="user1"/>
|
||||
<param name="report_incoming_chatmessages" value="true"/>
|
||||
<param name="silent_mode" value="false"/>
|
||||
<param name="write_silence_when_idle" value="true"/>
|
||||
<param name="setsockopt" value="true"/>
|
||||
</global_settings>
|
||||
<!-- one entry here per each skypopen interface -->
|
||||
<per_interface_settings>
|
||||
<interface id="1" name="interface1">
|
||||
<param name="X11-display" value=":101"/>
|
||||
<param name="skype_user" value="user1"/>
|
||||
</interface>
|
||||
<interface id="2" name="interface2">
|
||||
<param name="X11-display" value=":102"/>
|
||||
<param name="skype_user" value="user2"/>
|
||||
</interface>
|
||||
<!-- following interfaces are commented out
|
||||
<interface id="3" name="interface3">
|
||||
<param name="X11-display" value=":103"/>
|
||||
<param name="skype_user" value="user3"/>
|
||||
</interface>
|
||||
<interface id="4" name="interface4">
|
||||
<param name="X11-display" value=":104"/>
|
||||
<param name="skype_user" value="user4"/>
|
||||
</interface>
|
||||
-->
|
||||
</per_interface_settings>
|
||||
</configuration>
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
echo off
|
||||
REM
|
||||
REM you MUST use the new Skype (4.x) for Windows, older versions (3.x) cannot be started this way
|
||||
REM
|
||||
REM you have to adjust PATH to where the Skype executable is
|
||||
set PATH=%PATH%;C:\Program Files\Skype\Phone\
|
||||
|
||||
echo %PATH%
|
||||
|
||||
REM start a Skype client instance that will login to the Skype network using the "username password" you give to it. Here xxx would be the password and user1 the username
|
||||
start Skype.exe /secondary /username:user1 /password:xxx
|
||||
call wait 7
|
||||
start Skype.exe /secondary /username:user2 /password:xxx
|
||||
call wait 7
|
||||
REM
|
||||
REM Following Skype client instances are commented out
|
||||
REM
|
||||
REM start Skype.exe /secondary /username:user3 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user4 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user5 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user6 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user7 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user8 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user9 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user10 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user11 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user12 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user13 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user14 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user15 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user16 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user17 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user18 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user19 /password:xxx
|
||||
REM call wait 7
|
||||
REM start Skype.exe /secondary /username:user20 /password:xxx
|
||||
@@ -1,4 +0,0 @@
|
||||
REM would you believe there is no sleep() in standard windows batchfiles?
|
||||
@ping 127.0.0.1 -n 2 -w 1000 > nul
|
||||
@ping 127.0.0.1 -n %1% -w 1000> nul
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
echo off
|
||||
|
||||
REM
|
||||
REM you MUST use the new Skype (4.x) for Windows, older versions (3.x) cannot be started this way
|
||||
REM
|
||||
REM you have to adjust PATH to where the Skype executable is
|
||||
set PATH=%PATH%;C:\Program Files\Skype\Phone\
|
||||
|
||||
REM echo %PATH%
|
||||
|
||||
REM start a Skype client instance that will login to the Skype network using the "username password" you give to it.
|
||||
REM Here xxxx would be the password and user20 the username
|
||||
|
||||
start Skype.exe /secondary /username:user20 /password:xxxx
|
||||
call C:\wait.cmd 20
|
||||
|
||||
start Skype.exe /secondary /username:user19 /password:xxxx
|
||||
call C:\wait.cmd 5
|
||||
|
||||
REM
|
||||
REM Following Skype client instances are commented out
|
||||
REM
|
||||
|
||||
REM start Skype.exe /secondary /username:user18 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user17 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user16 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user15 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user14 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user13 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user12 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user11 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user10 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user9 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user8 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user7 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user6 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user5 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user4 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user3 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user2 /password:xxxx
|
||||
REM call C:\wait.cmd 5
|
||||
REM start Skype.exe /secondary /username:user1 /password:xxxx
|
||||
call C:\wait.cmd 120
|
||||
NET start AICCU2
|
||||
pause
|
||||
@@ -1,4 +0,0 @@
|
||||
REM would you believe there is no sleep() in standard windows batchfiles?
|
||||
@ping 127.0.0.1 -n 2 -w 1000 > nul
|
||||
@ping 127.0.0.1 -n %1% -w 1000> nul
|
||||
|
||||
@@ -1,365 +0,0 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
my $myname ;
|
||||
my $skype_download_url = "http://download.skype.com/linux/skype-4.3.0.37.tar.bz2";
|
||||
my $skype_download_pkg = "skype-4.3.0.37.tar.bz2";
|
||||
my $skype_binary_dir = "/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir";
|
||||
my $skype_download_dir = "/tmp/skype_download";
|
||||
my $skype_unpacked_dir = "skype-4.3.0.37";
|
||||
my $skype_share_dir = "/usr/share/skype";
|
||||
my $freeswitch_modules_config_dir = "/usr/local/freeswitch/conf/autoload_configs";
|
||||
my $skypopen_sound_driver_dir = "/usr/local/freeswitch/skypopen/skypopen-sound-driver-dir";
|
||||
my $skype_config_dir = "/usr/local/freeswitch/skypopen/skype-clients-configuration-dir";
|
||||
my $skype_startup_dir = "/usr/local/freeswitch/skypopen/skype-clients-startup-dir";
|
||||
my $skype_symlinks_dir = "/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir";
|
||||
my $skype_clients_to_be_launched = "5";
|
||||
my $skype_clients_starting_number = "100";
|
||||
my $multi_skypeusername = "one";
|
||||
my $skype_username = "your_own_skype_username";
|
||||
my $skype_password = "your_own_skype_password";
|
||||
my @skype_username_array;
|
||||
my @skype_password_array;
|
||||
my $sure = "nope";
|
||||
|
||||
### PRESENTATION ###
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("This is the interactive installation helper for Skypopen\n");
|
||||
printf("(http://wiki.freeswitch.org/wiki/Mod_skypopen_Skype_Endpoint_and_Trunk)\n");
|
||||
printf("\n");
|
||||
printf("Especially designed for FreeSWITCH\n");
|
||||
printf("by Giovanni Maruzzelli\n");
|
||||
printf("\n");
|
||||
printf("Please direct all questions or issues to the FreeSWITCH mailing list or Jira\n");
|
||||
printf("(http://lists.freeswitch.org/mailman/listinfo or https://freeswitch.org/jira)\n");
|
||||
printf("\n");
|
||||
printf("\n");
|
||||
printf("I'll ask you questions, giving default answers in square brackets [] if any\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
printf("You'll be prompted to confirm your answer at each step\n");
|
||||
printf("At the end of questions, before I do anything, I'll let you review it all\n");
|
||||
printf("To abort, press Ctrl-C\n");
|
||||
printf("\n");
|
||||
printf("\n");
|
||||
printf("Let's start asking your name, so you see how the question/answer works\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$myname = &promptUser("Enter your name ", "Giovanni");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("OK %s, GREAT! Let's start real questions! (At any time, Ctrl-C to abort)\n", $myname);
|
||||
printf("\n");
|
||||
printf("At the end of questions, before I do anything, I'll let you review all your answers, don't worry! :)\n");
|
||||
printf("\n");
|
||||
printf("\n");
|
||||
|
||||
### ASKING QUESTIONS ###
|
||||
|
||||
printf("I'm about to download the Skype client for Linux version 2.0.0.72 for OSS\n");
|
||||
printf("nicely repackaged by Arch Linux with official Skype permission.\n");
|
||||
printf("I need to create a directory to download and unpack the Skype client\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_download_dir = &promptUser("Enter the full path of the Skype download directory ", "$skype_download_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to install the Skype client\n");
|
||||
printf("I would put the binary in $skype_binary_dir and the associated files in $skype_share_dir\n");
|
||||
printf("Location of associated files is mandatory ($skype_share_dir)\n");
|
||||
printf("Location of binary is recommended ($skype_binary_dir)\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_binary_dir = &promptUser("Enter the directory full path for Skype client binary ", "$skype_binary_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to create the FreeSWITCH configuration file for mod_skypopen (skypopen.conf.xml)\n");
|
||||
printf("I need to know where to put it, eg: where is the FreeSWITCH modules' config dir\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$freeswitch_modules_config_dir = &promptUser("Enter the directory full path for FreeSWITCH modules' config files ", "$freeswitch_modules_config_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to create the directory where to put our fake sound driver\n");
|
||||
printf("Location of fake sound driver directory is where you like it more :)\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skypopen_sound_driver_dir = &promptUser("Enter the directory full path for fake sound driver ", "$skypopen_sound_driver_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to create the configuration directory needed by the Skype clients\n");
|
||||
printf("Location of Skype clients configuration directory is where you like it more :)\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_config_dir = &promptUser("Enter the directory full path for Skype clients config ", "$skype_config_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to create a directory where I'll put the Skype clients startup script\n");
|
||||
printf("Location of Skype clients startup script directory is where you like it more :)\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_startup_dir = &promptUser("Enter the directory full path for Skype clients startup script ", "$skype_startup_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I'm about to create the directory for symlinks needed by the Skype clients startup script\n");
|
||||
printf("Location of symlinks directory is where you like it more :)\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_symlinks_dir = &promptUser("Enter the directory full path for Skype clients symlinks ", "$skype_symlinks_dir");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("How many Skype clients (channels) do you want to launch?\n");
|
||||
printf("Each Skype client will be one channel to FreeSWITCH and use approx 70MB of ram\n");
|
||||
printf("A quad core CPU can very easily support 20 or more Skype clients\n");
|
||||
printf("Each Skype client allows one concurrent call\n");
|
||||
printf("Eg: if you plan to have a max of 10 concurrent (outbound and/or inbound) Skype calls then enter 10\n");
|
||||
printf("To accept the default, just press Enter\n");
|
||||
$skype_clients_to_be_launched = &promptUser("Enter how many Skype clients will be launched ", "$skype_clients_to_be_launched");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
|
||||
|
||||
while(1){
|
||||
printf("You want all of the Skype clients to use the same Skype login (skypeusername)?\n");
|
||||
printf("eg: you want all of your skypopen channels to be Bob on the Skype network, or you want channel skype01 to be Bob, channel skype02 to be Alice, etc?\n");
|
||||
printf("Please answer 'one' for all channels using the same Skype login (you'll be asked just one time for Skype login and password) or 'multi' for being asked for each channel\n");
|
||||
printf("\n");
|
||||
$multi_skypeusername = &promptUser("Enter 'one' or 'multi' ", "$multi_skypeusername");
|
||||
system("clear");
|
||||
printf("\n");
|
||||
if($multi_skypeusername eq "one" or $multi_skypeusername eq "multi"){
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($multi_skypeusername eq "one"){
|
||||
printf("I need the Skype username which will be used by ALL the Skype clients to be launched\n");
|
||||
printf("(That's the one-word you registered as login to the Skype network)\n");
|
||||
printf("This installer will create the needed files to launch concurrently many (or one) instances of it\n");
|
||||
printf("\n");
|
||||
printf("NB: DON'T ACCEPT the DEFAULT, write YOUR OWN\n");
|
||||
$skype_username = &promptUser("Enter the Skype clients username ", "$skype_username");
|
||||
for($count=1; $count <= $skype_clients_to_be_launched ; $count++){
|
||||
$skype_username_array[$count] = $skype_username;
|
||||
}
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I need the Skype password which will be used by ALL the Skype clients to be launched\n");
|
||||
printf("(That's the one-word you registered as password to the Skype network)\n");
|
||||
printf("\n");
|
||||
printf("NB: DON'T ACCEPT the DEFAULT, write YOUR OWN\n");
|
||||
$skype_password = &promptUser("Enter the Skype clients password ", "$skype_password");
|
||||
for($count=1; $count <= $skype_clients_to_be_launched ; $count++){
|
||||
$skype_password_array[$count] = $skype_password;
|
||||
}
|
||||
system("clear");
|
||||
} else {
|
||||
for($count=1; $count <= $skype_clients_to_be_launched ; $count++){
|
||||
$skype_client_extension = $skype_clients_starting_number + $count ;
|
||||
printf("I need the Skype username which will be used by the Skype client for channel 'skype$skype_client_extension'\n");
|
||||
printf("(That's the one-word you registered as login to the Skype network)\n");
|
||||
printf("\n");
|
||||
printf("NB: DON'T ACCEPT the DEFAULT, write YOUR OWN\n");
|
||||
$skype_username = &promptUser("Enter the Skype username for channel 'skype$skype_client_extension'", "$skype_username");
|
||||
$skype_username_array[$count] = $skype_username;
|
||||
system("clear");
|
||||
printf("\n");
|
||||
printf("I need the Skype password which will be used by the Skype client 'skype$skype_client_extension'\n");
|
||||
printf("(That's the one-word you registered as password to the Skype network)\n");
|
||||
printf("\n");
|
||||
printf("NB: DON'T ACCEPT the DEFAULT, write YOUR OWN\n");
|
||||
$skype_password = &promptUser("Enter the Skype password for '$skype_username'", "$skype_password");
|
||||
$skype_password_array[$count] = $skype_password;
|
||||
system("clear");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
### GETTING FINAL APPROVAL ###
|
||||
printf("\n");
|
||||
printf("Please check the following values:\n");
|
||||
printf("\n");
|
||||
printf("directory for downloading and unpacking Skype client:\n'$skype_download_dir'\n");
|
||||
printf("directory for Skype client binary:\n'$skype_binary_dir'\n");
|
||||
printf("directory for FreeSWITCH modules' configs:\n'$freeswitch_modules_config_dir'\n");
|
||||
printf("directory for fake sound driver:\n'$skypopen_sound_driver_dir'\n");
|
||||
printf("directory for Skype clients configs:\n'$skype_config_dir'\n");
|
||||
printf("directory for Skype clients startup script:\n'$skype_startup_dir'\n");
|
||||
printf("directory for Skype clients symlinks:\n'$skype_symlinks_dir'\n");
|
||||
printf("how many Skype clients to launch: '$skype_clients_to_be_launched'\n");
|
||||
if($multi_skypeusername eq "one"){
|
||||
printf("Skype login: '$skype_username'\n");
|
||||
printf("Skype password: '$skype_password'\n");
|
||||
}else {
|
||||
for($count=1; $count <= $skype_clients_to_be_launched ; $count++){
|
||||
$skype_client_extension = $skype_clients_starting_number + $count ;
|
||||
printf("channel='skype$skype_client_extension' Skype login='$skype_username_array[$count]' Skype password='$skype_password_array[$count]'\n");
|
||||
}
|
||||
}
|
||||
|
||||
$sure = &promptUser("Are you sure you like the values? Write 'sure' for yes ", "$sure");
|
||||
if($sure ne "sure"){
|
||||
printf("No problem, please relaunch the installer and begin again\n");
|
||||
exit 0;
|
||||
}
|
||||
system("clear");
|
||||
|
||||
printf("\n");
|
||||
printf("GREAT! Please stand back, I'm working...\n");
|
||||
printf("\n");
|
||||
|
||||
#### EXECUTION ###
|
||||
|
||||
system("mkdir -p $skype_download_dir");
|
||||
system("cd $skype_download_dir ; wget -c $skype_download_url");
|
||||
system("cd $skype_download_dir ; tar -xjf $skype_download_pkg");
|
||||
|
||||
system("mkdir -p $skype_binary_dir");
|
||||
system("cd $skype_download_dir/$skype_unpacked_dir ; cp skype $skype_binary_dir/");
|
||||
|
||||
system("mkdir -p $skype_share_dir");
|
||||
system("cd $skype_download_dir/$skype_unpacked_dir ; cp -a avatars $skype_share_dir/");
|
||||
system("cd $skype_download_dir/$skype_unpacked_dir ; cp -a sounds $skype_share_dir/");
|
||||
system("cd $skype_download_dir/$skype_unpacked_dir ; cp -a lang $skype_share_dir/");
|
||||
system("cd $skype_download_dir/$skype_unpacked_dir ; cp -a icons $skype_share_dir/");
|
||||
|
||||
|
||||
system("mkdir -p $skype_config_dir");
|
||||
system("mkdir -p $skype_startup_dir");
|
||||
system("mkdir -p $skype_symlinks_dir");
|
||||
|
||||
system("echo \"<configuration name=\\\"skypopen.conf\\\" description=\\\"Skypopen Configuration\\\">\" > $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \"<global_settings>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"dialplan\\\" value=\\\"XML\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"context\\\" value=\\\"default\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"destination\\\" value=\\\"5000\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"skype_user\\\" value=\\\"$skype_username\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"report_incoming_chatmessages\\\" value=\\\"false\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"write_silence_when_idle\\\" value=\\\"false\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" <param name=\\\"setsockopt\\\" value=\\\"true\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \"</global_settings>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \"<!-- one entry follows per each skypopen interface -->\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \"<per_interface_settings>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
|
||||
|
||||
system("echo \"#!/bin/sh\" > $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo >> $skype_startup_dir/start_skype_clients.sh");
|
||||
|
||||
|
||||
for ($count = 1; $count <= $skype_clients_to_be_launched; $count++) {
|
||||
$skype_client_extension = $skype_clients_starting_number + $count ;
|
||||
$skype_login=$skype_username_array[$count];
|
||||
$skype_passwd=$skype_password_array[$count];
|
||||
system("ln -s $skype_binary_dir/skype $skype_symlinks_dir/skype$skype_client_extension");
|
||||
system("mkdir -p $skype_config_dir/skype$skype_client_extension");
|
||||
system("cp -a ../configs/skype-client-configuration-dir-template/skypeclient01/shared.* $skype_config_dir/skype$skype_client_extension");
|
||||
system("cp -a ../configs/skype-client-configuration-dir-template/skypeclient01/skypenameA $skype_config_dir/skype$skype_client_extension/$skype_login");
|
||||
|
||||
system("echo \" <interface id=\\\"$count\\\" name=\\\"skype$skype_client_extension\\\">\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
if($multi_skypeusername ne "one"){
|
||||
system("echo \" <param name=\\\"skype_user\\\" value=\\\"$skype_login\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
}
|
||||
system("echo \" <param name=\\\"X11-display\\\" value=\\\":$skype_client_extension\\\"/>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \" </interface>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
|
||||
system("echo \"#start the fake X server on the given port\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo \"/usr/bin/Xvfb :$skype_client_extension -ac -nolisten tcp -screen 0 640x480x8 &\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo \"sleep 3\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo \"# 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.\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo \"su root -c \\\"/bin/echo '$skype_login $skype_passwd'| DISPLAY=:$skype_client_extension $skype_symlinks_dir/skype$skype_client_extension --dbpath=$skype_config_dir/skype$skype_client_extension --pipelogin &\\\"\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo \"sleep 7\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
system("echo >> $skype_startup_dir/start_skype_clients.sh");
|
||||
}
|
||||
|
||||
system("echo \"</per_interface_settings>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
system("echo \"</configuration>\" >> $freeswitch_modules_config_dir/skypopen.conf.xml");
|
||||
|
||||
system("echo \"exit 0\" >> $skype_startup_dir/start_skype_clients.sh");
|
||||
|
||||
|
||||
printf("\n");
|
||||
printf("SUCCESS!!!\n");
|
||||
printf("\n");
|
||||
|
||||
|
||||
#=========================================================================#
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------#
|
||||
# promptUser, a Perl subroutine to prompt a user for input.
|
||||
# Copyright 2010 Alvin Alexander, devdaily.com.
|
||||
# This code is shared here under the
|
||||
# Creative Commons Attribution-ShareAlike Unported 3.0 license.
|
||||
# See http://creativecommons.org/licenses/by-sa/3.0/ for more information.
|
||||
#-------------------------------------------------------------------------#
|
||||
|
||||
# Original at: http://www.devdaily.com/perl/edu/articles/pl010005
|
||||
# Modified to get confirmations by Giovanni Maruzzelli
|
||||
|
||||
#----------------------------( promptUser )-----------------------------#
|
||||
# #
|
||||
# FUNCTION: promptUser #
|
||||
# #
|
||||
# PURPOSE: Prompt the user for some type of input, and return the #
|
||||
# input back to the calling program. #
|
||||
# #
|
||||
# ARGS: $promptString - what you want to prompt the user with #
|
||||
# $defaultValue - (optional) a default value for the prompt #
|
||||
# #
|
||||
#-------------------------------------------------------------------------#
|
||||
|
||||
sub promptUser {
|
||||
|
||||
#-------------------------------------------------------------------#
|
||||
# two possible input arguments - $promptString, and $defaultValue #
|
||||
# make the input arguments local variables. #
|
||||
#-------------------------------------------------------------------#
|
||||
|
||||
local($promptString,$defaultValue) = @_;
|
||||
local $input;
|
||||
local $confirm;
|
||||
local $gave;
|
||||
|
||||
#-------------------------------------------------------------------#
|
||||
# if there is a default value, use the first print statement; if #
|
||||
# no default is provided, print the second string. #
|
||||
#-------------------------------------------------------------------#
|
||||
|
||||
while(1){
|
||||
printf("\n");
|
||||
if ($defaultValue) {
|
||||
print $promptString, "\n[", $defaultValue, "]: ";
|
||||
} else {
|
||||
print $promptString, ": ";
|
||||
}
|
||||
|
||||
$| = 1; # force a flush after our print
|
||||
$input = <STDIN>; # get the input from STDIN (presumably the keyboard)
|
||||
|
||||
|
||||
#------------------------------------------------------------------#
|
||||
# remove the newline character from the end of the input the user #
|
||||
# gave us. #
|
||||
#------------------------------------------------------------------#
|
||||
|
||||
chomp($input);
|
||||
|
||||
$gave = $input ? $input : $defaultValue;
|
||||
print("You gave: '$gave'\nIt's OK? Please answer 'Y' for yes or 'N' for not [N]: ");
|
||||
$| = 1; # force a flush after our print
|
||||
$confirm = <STDIN>;
|
||||
chomp($confirm);
|
||||
if($confirm eq "Y" or $confirm eq "y"){
|
||||
last;
|
||||
}
|
||||
}
|
||||
#-----------------------------------------------------------------#
|
||||
# if we had a $default value, and the user gave us input, then #
|
||||
# return the input; if we had a default, and they gave us no #
|
||||
# no input, return the $defaultValue. #
|
||||
# #
|
||||
# if we did not have a default value, then just return whatever #
|
||||
# the user gave us. if they just hit the <enter> key, #
|
||||
# the calling routine will have to deal with that. #
|
||||
#-----------------------------------------------------------------#
|
||||
|
||||
if ("$defaultValue") {
|
||||
return $input ? $input : $defaultValue; # return $_ if it has a value
|
||||
} else {
|
||||
return $input;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,173 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>mod_skypopen</ProjectName>
|
||||
<ProjectGuid>{C6E78A4C-DB1E-47F4-9B63-4DC27D86343F}</ProjectGuid>
|
||||
<RootNamespace>mod_skypopen</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\w32\module_release.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\w32\module_release.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\w32\module_debug.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\..\..\..\w32\module_debug.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Project="$(SolutionDir)\w32\tiff.props" />
|
||||
<Import Project="$(SolutionDir)\w32\spandsp.props"/>
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src\msvc;%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src;%(RootDir)%(Directory)..\..\..\..\libs\jpeg-8d;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<TreatWarningAsError>false</TreatWarningAsError>
|
||||
<DisableSpecificWarnings>28252;28253;4456;6031;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>rpcrt4.lib "..\..\..\..\libs\spandsp\src\Win32\Debug\libtiff.lib" "..\..\..\..\Win32\Debug\libspandsp.lib" %(AdditionalOptions)</AdditionalOptions>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src\msvc;%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src;%(RootDir)%(Directory)..\..\..\..\libs\jpeg-8d;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<TreatWarningAsError>false</TreatWarningAsError>
|
||||
<DisableSpecificWarnings>28183;28252;28253;4456;6031;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>rpcrt4.lib "..\..\..\..\libs\spandsp\src\x64\Debug\libtiff.lib" "..\..\..\..\x64\Debug\libspandsp.lib" %(AdditionalOptions)</AdditionalOptions>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src\msvc;%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src;%(RootDir)%(Directory)..\..\..\..\libs\jpeg-8d;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DisableSpecificWarnings>28252;28253;4456;6031;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>rpcrt4.lib "..\..\..\..\libs\spandsp\src\Win32\Release\libtiff.lib" "..\..\..\..\Win32\Release\libspandsp.lib" %(AdditionalOptions)</AdditionalOptions>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src\msvc;%(RootDir)%(Directory)..\..\..\..\libs\spandsp\src;%(RootDir)%(Directory)..\..\..\..\libs\jpeg-8d;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<DisableSpecificWarnings>28252;28253;4456;6031;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>rpcrt4.lib "..\..\..\..\libs\spandsp\src\x64\Release\libtiff.lib" "..\..\..\..\x64\Release\libspandsp.lib" %(AdditionalOptions)</AdditionalOptions>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="mod_skypopen.c">
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="skypopen_protocol.c">
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">4305;4306;28193;4244;4267;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">4305;4306;28193;4244;4267;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">4305;4306;28193;4244;4267;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release|x64'">4305;4306;28193;4244;4267;4324;6340;6246;6011;6387;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
</AdditionalOptions>
|
||||
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
</AdditionalOptions>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="skypopen.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\w32\Library\FreeSwitchCore.2015.vcxproj">
|
||||
<Project>{202d7a4e-760d-4d0e-afa1-d7459ced30ff}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,93 +0,0 @@
|
||||
#
|
||||
# Asterisk -- A telephony toolkit for Linux.
|
||||
#
|
||||
# Makefile for channel drivers
|
||||
#
|
||||
# Copyright (C) 1999-2005, Mark Spencer
|
||||
#
|
||||
# Mark Spencer <markster@digium.com>
|
||||
#
|
||||
# Edited By Belgarath <> Aug 28 2004
|
||||
# Added bare bones ultrasparc-linux support.
|
||||
#
|
||||
# This program is free software, distributed under the terms of
|
||||
# the GNU General Public License
|
||||
#
|
||||
|
||||
#ASTERISK INCLUDE FILES
|
||||
#The directory that contains the Asterisk include files (eg: /usr/include or /usr/include/asterisk or /usr/src/asterisk/include or ...)
|
||||
#AST_INCLUDE_DIR=/usr/src/asterisk/include
|
||||
#AST_INCLUDE_DIR=/home/maruzz/devel/svn_asterisk_trunk/include
|
||||
#AST_INCLUDE_DIR=/home/maruzz/devel/svn_asterisk_branches_160/include
|
||||
#AST_INCLUDE_DIR=/home/maruzz/devel/svn_asterisk_branches_12/include
|
||||
#AST_INCLUDE_DIR=/home/maruzz/devel/svn_asterisk_branches_14/include
|
||||
#AST_INCLUDE_DIR=/home/maruzz/devel/svn_celliax_trunk/asterisk-1.2.rev137401/include
|
||||
AST_INCLUDE_DIR=/home/user/devel/asterisk-1.4.23.1/include
|
||||
|
||||
#ASTERISK
|
||||
CFLAGS+=-DASTERISK
|
||||
|
||||
#ASTERISK VERSION
|
||||
#Uncomment one of the following lines to match your Asterisk series
|
||||
CFLAGS+=-DASTERISK_VERSION_1_4
|
||||
#CFLAGS+=-DASTERISK_VERSION_1_6
|
||||
#CFLAGS+=-DASTERISK_VERSION_1_2
|
||||
|
||||
#LINUX SKYPE SUPPORT (Celliax for Cygwin always supports Skype)
|
||||
SKYPE_LIB=-L/usr/X11R6/lib -lX11
|
||||
|
||||
CFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
|
||||
CFLAGS+=-g3
|
||||
|
||||
|
||||
|
||||
CFLAGS+=-I$(AST_INCLUDE_DIR) -I.
|
||||
CFLAGS+=-D_REENTRANT -D_GNU_SOURCE
|
||||
#CFLAGS+=-O6
|
||||
CFLAGS+=-march=i686
|
||||
CFLAGS+=-fomit-frame-pointer
|
||||
ifeq ($(shell uname -m),x86_64)
|
||||
CFLAGS+=-fPIC
|
||||
endif
|
||||
|
||||
SVNDEF := -D'SKYPIAX_SVN_VERSION="$(shell svnversion -n ..)"'
|
||||
CFLAGS += $(SVNDEF)
|
||||
|
||||
|
||||
SOLINK=-shared -Xlinker -x
|
||||
CHANNEL_LIBS=chan_skypiax.so
|
||||
CC=gcc
|
||||
|
||||
OSARCH=$(shell uname -s)
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(OSARCH)),CYGWIN)
|
||||
# definition of pthread_kill as a printf (or as a noop) is required for Asterisk (and skypiax) to run on Cygwin
|
||||
# without it, each time (often) pthread_kill is called (by any thread, with any signal, URG included), bad things happen
|
||||
CC=gcc -D pthread_kill=cyg_no_pthreadkill
|
||||
AST_DLL_DIR=/home/maruzz/devel/svn_asterisk_branches_12
|
||||
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols cyg_no_pthread_kill.o
|
||||
CYGSOLIB=-L/usr/lib/w32api -lrpcrt4 -L/lib/mingw -lwinmm -L$(AST_DLL_DIR) -lasterisk.dll -L$(AST_DLL_DIR)/res -lres_features.so
|
||||
SKYPE_LIB=
|
||||
CHANNEL_LIBS=cyg_no_pthread_kill.o chan_skypiax.so
|
||||
endif
|
||||
|
||||
all: $(CHANNEL_LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.so *.o *.so.a
|
||||
|
||||
|
||||
#chan_skypiax section begins
|
||||
|
||||
#to debug threads and lock on 1.4 uncomment the following
|
||||
#CFLAGS+=-include /usr/src/asterisk/include/asterisk/autoconfig.h
|
||||
|
||||
|
||||
cyg_no_pthread_kill.o: cyg_no_pthread_kill.c
|
||||
$(CC) $(CFLAGS) -c -o cyg_no_pthread_kill.o cyg_no_pthread_kill.c
|
||||
chan_skypiax.o: chan_skypiax.c
|
||||
$(CC) $(CFLAGS) -c -o chan_skypiax.o chan_skypiax.c
|
||||
chan_skypiax.so: chan_skypiax.o skypiax_protocol.o
|
||||
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} chan_skypiax.o skypiax_protocol.o -lm -ldl $(SKYPE_LIB) ${CYGSOLIB}
|
||||
#chan_skypiax section ends
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
Skypopen for asterisk does not work yet.
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,17 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#define PRINTMSGCYG
|
||||
|
||||
extern int option_debug;
|
||||
int cyg_no_pthreadkill(int thread, int sig);
|
||||
|
||||
int cyg_no_pthreadkill(int thread, int sig)
|
||||
{
|
||||
#ifdef PRINTMSGCYG
|
||||
if (option_debug) {
|
||||
printf
|
||||
("\n\nHere there would have been a pthread_kill() on thread [%-7lx], with sig=%d, but it has been substituted by this printf in file cyg_no_pthread_kill.c because CYGWIN does not support sending a signal to a one only thread :-(\n\n",
|
||||
(unsigned long int) thread, sig);
|
||||
}
|
||||
#endif // PRINTMSGCYG
|
||||
return 0;
|
||||
}
|
||||
@@ -1,207 +0,0 @@
|
||||
;;;;;;;;
|
||||
;;;;;;;;
|
||||
;;;;;;; Skypiax Asterisk Driver
|
||||
;;;;;;;
|
||||
;;;;;;; Configuration file
|
||||
;;;;;;; lines beginning with semicolon (" are ignored (commented out)
|
||||
;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;
|
||||
;;;;;;; The first interface (named skypeclient)
|
||||
;;;;;;[skypeclient]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;; general settings, valid on all platforms
|
||||
;;;;;;;
|
||||
;;;;;;;
|
||||
;;;;;;; Default language
|
||||
;;;;;;;
|
||||
;;;;;;language=en
|
||||
;;;;;;;
|
||||
;;;;;;; Default context (in extensions.conf, can be overridden with @context syntax)
|
||||
;;;;;;;
|
||||
;;;;;;context=default
|
||||
;;;;;;;
|
||||
;;;;;;; Default extension (in extensions.conf) where incoming calls land
|
||||
;;;;;;;
|
||||
;;;;;;extension=s
|
||||
;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;; Debugging settings, valid globally for all interfaces on all platforms
|
||||
;;;;;;;
|
||||
;;;;;;; the debug values are global for all the interfaces.
|
||||
;;;;;;;
|
||||
;;;;;;; default is no skypiax debugging output, you **have** to activate debugging here to obtain debugging from skypiax
|
||||
;;;;;;;
|
||||
;;;;;;; To see the debugging output you have to "set debug 100" from the Asterisk CLI or launch
|
||||
;;;;;;; Asterisk with -ddddddddddd option, and have the logger.conf file activating debug info for console and messages
|
||||
;;;;;;;
|
||||
;;;;;;; You can activate each of the following separately, but you can't disactivate. Eg: debug_at=no does not subtract debug_at from debug_all
|
||||
;;;;;;; debug_all activate all possible debugging info
|
||||
;;;;;;;
|
||||
;;;;;;;debug_all=yes
|
||||
;;;;;;debug_skype=yes
|
||||
;;;;;;debug_pbx=yes
|
||||
;;;;;;;debug_sound=yes
|
||||
;;;;;;;debug_locks=yes
|
||||
;;;;;;;debug_monitorlocks=yes
|
||||
;;;;;;
|
||||
;;;;;;skype=yes ; legacy setting, leave it to yes
|
||||
;;;;;;X11_display=:101
|
||||
;;;;;;tcp_cli_port=11234
|
||||
;;;;;;tcp_srv_port=11235
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;; audio boost settings, valid for all platforms, to compensate for different input/output audio signal levels
|
||||
;;;;;;; tweak it if you get horrible (or not hearable) sound
|
||||
;;;;;;;
|
||||
;;;;;;;boost can be positive or negative (-40 to +40) in db
|
||||
;;;;;;;experiment to find which values are best for your computer
|
||||
;;;;;;playback_boost=0 ;
|
||||
;;;;;;capture_boost=0 ;
|
||||
;;;;;;
|
||||
;;; [skypiax1]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:101
|
||||
;;; tcp_cli_port=15576
|
||||
;;; tcp_srv_port=15577
|
||||
;;; skype_user=skypiax1
|
||||
;;;
|
||||
;;; [skypiax2]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:102
|
||||
;;; tcp_cli_port=15578
|
||||
;;; tcp_srv_port=15579
|
||||
;;; skype_user=skypiax2
|
||||
;;;
|
||||
;;; [skypiax3]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:103
|
||||
;;; tcp_cli_port=15580
|
||||
;;; tcp_srv_port=15581
|
||||
;;; skype_user=skypiax3
|
||||
;;;
|
||||
[skypiax4]
|
||||
language=en
|
||||
context=default
|
||||
extension=s
|
||||
debug_skype=yes
|
||||
debug_pbx=yes
|
||||
skype=yes ; legacy setting, leave it to yes
|
||||
playback_boost=0 ;
|
||||
capture_boost=0 ;
|
||||
X11_display=:104
|
||||
tcp_cli_port=15582
|
||||
tcp_srv_port=15583
|
||||
skype_user=skypiax4
|
||||
|
||||
[skypiax5]
|
||||
language=en
|
||||
context=default
|
||||
extension=s
|
||||
debug_skype=yes
|
||||
debug_pbx=yes
|
||||
skype=yes ; legacy setting, leave it to yes
|
||||
playback_boost=0 ;
|
||||
capture_boost=0 ;
|
||||
X11_display=:105
|
||||
tcp_cli_port=15584
|
||||
tcp_srv_port=15585
|
||||
skype_user=skypiax5
|
||||
|
||||
[skypiax6]
|
||||
language=en
|
||||
context=default
|
||||
extension=s
|
||||
debug_skype=yes
|
||||
debug_pbx=yes
|
||||
skype=yes ; legacy setting, leave it to yes
|
||||
playback_boost=0 ;
|
||||
capture_boost=0 ;
|
||||
X11_display=:106
|
||||
tcp_cli_port=15586
|
||||
tcp_srv_port=16586
|
||||
skype_user=skypiax6
|
||||
|
||||
;;; [skypiax17]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:117
|
||||
;;; tcp_cli_port=15587
|
||||
;;; tcp_srv_port=15588
|
||||
;;; skype_user=skypiax17
|
||||
;;;
|
||||
;;; [skypiax18]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:118
|
||||
;;; tcp_cli_port=15589
|
||||
;;; tcp_srv_port=15590
|
||||
;;; skype_user=skypiax18
|
||||
;;;
|
||||
;;; [skypiax19]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:119
|
||||
;;; tcp_cli_port=15591
|
||||
;;; tcp_srv_port=15592
|
||||
;;; skype_user=skypiax19
|
||||
;;;
|
||||
;;; [skypiax20]
|
||||
;;; language=en
|
||||
;;; context=default
|
||||
;;; extension=s
|
||||
;;; debug_skype=yes
|
||||
;;; debug_pbx=yes
|
||||
;;; skype=yes ; legacy setting, leave it to yes
|
||||
;;; playback_boost=0 ;
|
||||
;;; capture_boost=0 ;
|
||||
;;; X11_display=:120
|
||||
;;; tcp_cli_port=15593
|
||||
;;; tcp_srv_port=15594
|
||||
;;; skype_user=skypiax20
|
||||
;;;
|
||||
;;;
|
||||
;;;
|
||||
@@ -1,427 +0,0 @@
|
||||
//indent -gnu -ts4 -br -brs -cdw -lp -ce -nbfda -npcs -nprs -npsl -nbbo -saf -sai -saw -cs -bbo -nhnl -nut -sob -l90
|
||||
#ifndef _SKYPIAX_H_
|
||||
#define _SKYPIAX_H_
|
||||
|
||||
#ifndef SKYPIAX_SVN_VERSION
|
||||
#define SKYPIAX_SVN_VERSION "????NO_REVISION???"
|
||||
#endif
|
||||
|
||||
#include <asterisk/version.h> /* needed here for conditional compilation on version.h */
|
||||
/* the following #defs are for LINUX */
|
||||
#ifndef __CYGWIN__
|
||||
#ifndef ASTERISK_VERSION_1_6
|
||||
#ifndef ASTERISK_VERSION_1_4
|
||||
#ifndef ASTERISK_VERSION_1_2
|
||||
#define ASTERISK_VERSION_1_4
|
||||
#if(ASTERISK_VERSION_NUM == 999999)
|
||||
#undef ASTERISK_VERSION_1_4
|
||||
#elif(ASTERISK_VERSION_NUM < 10400)
|
||||
#undef ASTERISK_VERSION_1_4
|
||||
#endif /* ASTERISK_VERSION_NUM == 999999 || ASTERISK_VERSION_NUM < 10400 */
|
||||
#endif /* ASTERISK_VERSION_1_2 */
|
||||
#endif /* ASTERISK_VERSION_1_4 */
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
#ifdef ASTERISK_VERSION_1_2
|
||||
#undef ASTERISK_VERSION_1_4
|
||||
#endif /* ASTERISK_VERSION_1_2 */
|
||||
#ifdef ASTERISK_VERSION_1_6
|
||||
#define ASTERISK_VERSION_1_4
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
#define SKYPIAX_SKYPE
|
||||
#define WANT_SKYPE_X11
|
||||
#endif /* NOT __CYGWIN__ */
|
||||
/* the following #defs are for WINDOWS */
|
||||
#ifdef __CYGWIN__
|
||||
#undef ASTERISK_VERSION_1_4
|
||||
#undef ASTERISK_VERSION_1_6
|
||||
#define SKYPIAX_SKYPE
|
||||
#undef WANT_SKYPE_X11
|
||||
#endif /* __CYGWIN__ */
|
||||
|
||||
/* INCLUDES */
|
||||
#ifdef ASTERISK_VERSION_1_6
|
||||
#include <asterisk.h> /* some asterisk-devel package do not contains asterisk.h, but seems that is needed for the 1.6 series, at least from trunk */
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
#include <unistd.h>
|
||||
#include <termios.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/time.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#ifndef ASTERISK_VERSION_1_4
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#endif /* ASTERISK_VERSION_1_4 */
|
||||
#include <asterisk/frame.h>
|
||||
#include <asterisk/channel.h>
|
||||
#include <asterisk/module.h>
|
||||
#include <asterisk/options.h>
|
||||
#include <asterisk/pbx.h>
|
||||
#include <asterisk/config.h>
|
||||
#include <asterisk/cli.h>
|
||||
#include <asterisk/causes.h>
|
||||
#include <asterisk/endian.h>
|
||||
#include <asterisk/lock.h>
|
||||
#include <asterisk/devicestate.h>
|
||||
#include <asterisk/file.h>
|
||||
#include <asterisk/say.h>
|
||||
#ifdef ASTERISK_VERSION_1_6
|
||||
#include <asterisk/astobj2.h>
|
||||
#include <asterisk/paths.h>
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
#ifdef ASTERISK_VERSION_1_4
|
||||
#include <asterisk/stringfields.h>
|
||||
#include <asterisk/abstract_jb.h>
|
||||
#include <asterisk/logger.h>
|
||||
#include <asterisk/utils.h>
|
||||
#endif /* ASTERISK_VERSION_1_4 */
|
||||
#ifdef ASTERISK_VERSION_1_2
|
||||
#include <asterisk/utils.h>
|
||||
#include <asterisk/logger.h>
|
||||
#endif /* ASTERISK_VERSION_1_2 */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
//#include "skypiax_spandsp.h"
|
||||
#ifdef __CYGWIN__
|
||||
#include <windows.h>
|
||||
#endif /* __CYGWIN__ */
|
||||
#ifdef WANT_SKYPE_X11
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
#include <X11/Xatom.h>
|
||||
#endif /* WANT_SKYPE_X11 */
|
||||
#ifndef AST_DIGIT_ANYDIG
|
||||
#define AST_DIGIT_ANYDIG "0123456789*#"
|
||||
#else
|
||||
#warning Please review Skypiax AST_DIGIT_ANYDIG
|
||||
#endif
|
||||
#ifndef _ASTERISK_H
|
||||
#define AST_CONFIG_MAX_PATH 255 /* defined in asterisk.h, but some asterisk-devel package do not contains asterisk.h */
|
||||
extern char ast_config_AST_CONFIG_DIR[AST_CONFIG_MAX_PATH];
|
||||
int ast_register_atexit(void (*func) (void)); /* in asterisk.h, but some asterisk-devel package do not contains asterisk.h */
|
||||
void ast_unregister_atexit(void (*func) (void)); /* in asterisk.h, but some asterisk-devel package do not contains asterisk.h */
|
||||
#endif
|
||||
|
||||
/* DEFINITIONS */
|
||||
#define SAMPLERATE_SKYPIAX 8000
|
||||
#define SAMPLES_PER_FRAME SAMPLERATE_SKYPIAX/50
|
||||
#define SKYPIAX_DIR_CONFIG "directoriax.conf"
|
||||
|
||||
/* LUIGI RIZZO's magic */
|
||||
/* boost support. BOOST_SCALE * 10 ^(BOOST_MAX/20) must
|
||||
* be representable in 16 bits to avoid overflows.
|
||||
*/
|
||||
#define BOOST_SCALE (1<<9)
|
||||
#define BOOST_MAX 40 /* slightly less than 7 bits */
|
||||
/* call flow from the device */
|
||||
#define CALLFLOW_CALL_IDLE AST_STATE_DOWN
|
||||
#define CALLFLOW_INCOMING_RING AST_STATE_RING
|
||||
#define CALLFLOW_CALL_DIALING AST_STATE_DIALING
|
||||
#define CALLFLOW_CALL_LINEBUSY AST_STATE_BUSY
|
||||
#define CALLFLOW_CALL_ACTIVE 300
|
||||
#define CALLFLOW_INCOMING_HANGUP 100
|
||||
#define CALLFLOW_CALL_RELEASED 101
|
||||
#define CALLFLOW_CALL_NOCARRIER 102
|
||||
#define CALLFLOW_CALL_INFLUX 103
|
||||
#define CALLFLOW_CALL_INCOMING 104
|
||||
#define CALLFLOW_CALL_FAILED 105
|
||||
#define CALLFLOW_CALL_NOSERVICE 106
|
||||
#define CALLFLOW_CALL_OUTGOINGRESTRICTED 107
|
||||
#define CALLFLOW_CALL_SECURITYFAIL 108
|
||||
#define CALLFLOW_CALL_NOANSWER 109
|
||||
#define CALLFLOW_STATUS_FINISHED 110
|
||||
#define CALLFLOW_STATUS_CANCELLED 111
|
||||
#define CALLFLOW_STATUS_FAILED 112
|
||||
#define CALLFLOW_STATUS_REFUSED 113
|
||||
#define CALLFLOW_STATUS_RINGING 114
|
||||
#define CALLFLOW_STATUS_INPROGRESS 115
|
||||
#define CALLFLOW_STATUS_UNPLACED 116
|
||||
#define CALLFLOW_STATUS_ROUTING 117
|
||||
#define CALLFLOW_STATUS_EARLYMEDIA 118
|
||||
#define AST_STATE_HANGUP_REQUESTED 200
|
||||
//FIXME CALLFLOW_INCOMING_CALLID to be removed
|
||||
#define CALLFLOW_INCOMING_CALLID 1019
|
||||
/* debugging bitmask */
|
||||
#define DEBUG_SOUND 1
|
||||
#define DEBUG_SERIAL 2
|
||||
#define DEBUG_SKYPE 4
|
||||
#define DEBUG_AT 8
|
||||
#define DEBUG_FBUS2 16
|
||||
#define DEBUG_CALL 32
|
||||
#define DEBUG_LOCKS 64
|
||||
#define DEBUG_PBX 128
|
||||
#define DEBUG_MONITORLOCKS 256
|
||||
#define DEBUG_ALL DEBUG_SOUND|DEBUG_SERIAL|DEBUG_SKYPE|DEBUG_AT|DEBUG_FBUS2|DEBUG_CALL|DEBUG_PBX|DEBUG_LOCKS|DEBUG_MONITORLOCKS
|
||||
/* wrappers for ast_log */
|
||||
#define DEBUGA_SOUND(...) if (skypiax_debug & DEBUG_SOUND) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_SOUND %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_SERIAL(...) if (skypiax_debug & DEBUG_SERIAL) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_SERIAL %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_SKYPE(...) if (skypiax_debug & DEBUG_SKYPE) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_SKYPE %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_AT(...) if (skypiax_debug & DEBUG_AT) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_AT %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_FBUS2(...) if (skypiax_debug & DEBUG_FBUS2) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_FBUS2 %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_CALL(...) if (skypiax_debug & DEBUG_CALL) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_CALL %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define DEBUGA_PBX(...) if (skypiax_debug & DEBUG_PBX) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_PBX %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define ERRORA(...) ast_log(LOG_ERROR, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][ERROR %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define NOTICA(...) ast_log(LOG_NOTICE, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][NOTICE %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
#define WARNINGA(...) ast_log(LOG_WARNING, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][WARNING %-5d][%-10s][%2d,%2d,%2d] " __VA_ARGS__ );
|
||||
/* macros for logging */
|
||||
#define SKYPIAX_P_LOG p ? p->owner : NULL, (unsigned long)pthread_self(), __LINE__, p ? p->name ? p->name : "none" : "none", p ? p->owner ? p->owner->_state : -1 : -1, p ? p->interface_state : -1, p ? p->skype_callflow : -1
|
||||
#define SKYPIAX_TMP_LOG tmp ? tmp->owner : NULL, (unsigned long)pthread_self(), __LINE__, tmp ? tmp->name ? tmp->name : "none" : "none", tmp ? tmp->owner ? tmp->owner->_state : -1 : -1, tmp ? tmp->interface_state : -1, tmp ? tmp->skype_callflow : -1
|
||||
/* logging wrappers for ast_mutex_lock and ast_mutex_unlock */
|
||||
#define LOKKA(x) if (skypiax_debug & DEBUG_LOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_LOCKS %-5d][%-10s][%2d,%2d,%2d] going to lock %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????"); if (ast_mutex_lock(x)) ast_log(LOG_ERROR, "ast_mutex_lock failed, BAD\n"); if (skypiax_debug & DEBUG_LOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_LOCKS %-5d][%-10s][%2d,%2d,%2d] locked %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????");
|
||||
#define UNLOCKA(x) if (skypiax_debug & DEBUG_LOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_LOCKS %-5d][%-10s][%2d,%2d,%2d] going to unlock %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????"); if (ast_mutex_unlock(x)) ast_log(LOG_ERROR, "ast_mutex_lock failed, BAD\n"); if (skypiax_debug & DEBUG_LOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_LOCKS %-5d][%-10s][%2d,%2d,%2d] unlocked %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????");
|
||||
#define PUSHA_UNLOCKA(x) pthread_cleanup_push(skypiax_unlocka_log, (void *) x);
|
||||
#define POPPA_UNLOCKA(x) pthread_cleanup_pop(0);
|
||||
#define MONITORLOKKA(x) if (skypiax_debug & DEBUG_MONITORLOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_MONITORLOCKS %-5d][%-10s][%2d,%2d,%2d] going to lock %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????"); if (ast_mutex_lock(x)) ast_log(LOG_ERROR, "ast_mutex_lock failed, BAD\n"); if (skypiax_debug & DEBUG_MONITORLOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_MONITORLOCKS %-5d][%-10s][%2d,%2d,%2d] locked %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????");
|
||||
#define MONITORUNLOCKA(x) if (skypiax_debug & DEBUG_MONITORLOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_MONITORLOCKS %-5d][%-10s][%2d,%2d,%2d] going to unlock %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????"); if (ast_mutex_unlock(x)) ast_log(LOG_ERROR, "ast_mutex_lock failed, BAD\n"); if (skypiax_debug & DEBUG_MONITORLOCKS) ast_log(LOG_DEBUG, "rev "SKYPIAX_SVN_VERSION "[%p|%-7lx][DEBUG_MONITORLOCKS %-5d][%-10s][%2d,%2d,%2d] unlocked %p (%s)\n", SKYPIAX_P_LOG, x, x == &skypiax_monlock ? "MONLOCK" : x == &skypiax_iflock ? "IFLOCK" : x == &skypiax_usecnt_lock ? "USECNT_LOCK" : "?????");
|
||||
/* macros used for config file parsing (luigi rizzo)*/
|
||||
#define M_BOOL(tag, dst) M_F(tag, (dst) = ast_true(__val) )
|
||||
#define M_END(x) x;
|
||||
#define M_F(tag, f) if (!strcasecmp((__s), tag)) { f; } else
|
||||
#ifdef ASTERISK_VERSION_1_6
|
||||
#define M_START(var, val) const char *__s = var; const char *__val = val;
|
||||
#else
|
||||
#define M_START(var, val) char *__s = var; char *__val = val;
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
#define M_STR(tag, dst) M_F(tag, ast_copy_string(dst, __val, sizeof(dst)))
|
||||
#define M_UINT(tag, dst) M_F(tag, (dst) = strtoul(__val, NULL, 0) )
|
||||
|
||||
#define SKYPIAX_FRAME_SIZE 160
|
||||
|
||||
/* SKYPIAX INTERNAL STRUCTS */
|
||||
/*!
|
||||
* \brief structure for exchanging messages with the skype client
|
||||
*/
|
||||
#ifdef WANT_SKYPE_X11
|
||||
struct AsteriskHandles {
|
||||
Window skype_win;
|
||||
Display *disp;
|
||||
Window win;
|
||||
int fdesc[2];
|
||||
};
|
||||
#else /* WANT_SKYPE_X11 */
|
||||
struct AsteriskHandles {
|
||||
HWND win32_hInit_MainWindowHandle;
|
||||
HWND win32_hGlobal_SkypeAPIWindowHandle;
|
||||
int fdesc[2];
|
||||
};
|
||||
#endif /* WANT_SKYPE_X11 */
|
||||
|
||||
#ifndef WIN32
|
||||
struct SkypiaxHandles {
|
||||
Window skype_win;
|
||||
Display *disp;
|
||||
Window win;
|
||||
int api_connected;
|
||||
int fdesc[2];
|
||||
};
|
||||
#else //WIN32
|
||||
|
||||
struct SkypiaxHandles {
|
||||
HWND win32_hInit_MainWindowHandle;
|
||||
HWND win32_hGlobal_SkypeAPIWindowHandle;
|
||||
HINSTANCE win32_hInit_ProcessHandle;
|
||||
char win32_acInit_WindowClassName[128];
|
||||
UINT win32_uiGlobal_MsgID_SkypeControlAPIAttach;
|
||||
UINT win32_uiGlobal_MsgID_SkypeControlAPIDiscover;
|
||||
int api_connected;
|
||||
int fdesc[2];
|
||||
};
|
||||
|
||||
#endif //WIN32
|
||||
|
||||
/*!
|
||||
* \brief PVT structure for a skypiax interface (channel), created by skypiax_mkif
|
||||
*/
|
||||
struct skypiax_pvt {
|
||||
char *name; /*!< \brief 'name' of the interface (channel) */
|
||||
int interface_state; /*!< \brief 'state' of the interface (channel) */
|
||||
struct ast_channel *owner; /*!< \brief channel we belong to, possibly NULL */
|
||||
struct skypiax_pvt *next; /*!< \brief Next interface (channel) in list */
|
||||
char context[AST_MAX_EXTENSION]; /*!< \brief default Asterisk dialplan context for this interface */
|
||||
char language[MAX_LANGUAGE]; /*!< \brief default Asterisk dialplan language for this interface */
|
||||
char exten[AST_MAX_EXTENSION]; /*!< \brief default Asterisk dialplan extension for this interface */
|
||||
int skypiax_sound_rate; /*!< \brief rate of the sound device, in Hz, eg: 8000 */
|
||||
int skypiax_sound_capt_fd; /*!< \brief file descriptor for sound capture dev */
|
||||
char callid_name[50];
|
||||
char callid_number[50];
|
||||
pthread_t controldev_thread; /*!< \brief serial control thread for this interface, running during the call */
|
||||
double playback_boost;
|
||||
double capture_boost;
|
||||
int stripmsd;
|
||||
pthread_t skype_thread;
|
||||
struct AsteriskHandles AsteriskHandlesAst;
|
||||
struct SkypiaxHandles SkypiaxHandles;
|
||||
char skype_call_id[512];
|
||||
int skype_call_ongoing;
|
||||
char skype_friends[4096];
|
||||
char skype_fullname[512];
|
||||
char skype_displayname[512];
|
||||
int skype_callflow; /*!< \brief 'callflow' of the skype interface (as opposed to phone interface) */
|
||||
int skype; /*!< \brief config flag, bool, Skype support on this interface (0 if false, -1 if true) */
|
||||
int control_to_send;
|
||||
int audiopipe[2];
|
||||
int audioskypepipe[2];
|
||||
pthread_t tcp_srv_thread;
|
||||
pthread_t tcp_cli_thread;
|
||||
short audiobuf[160];
|
||||
int audiobuf_is_loaded;
|
||||
|
||||
//int phonebook_listing;
|
||||
//int phonebook_querying;
|
||||
//int phonebook_listing_received_calls;
|
||||
|
||||
//int phonebook_first_entry;
|
||||
//int phonebook_last_entry;
|
||||
//int phonebook_number_lenght;
|
||||
//int phonebook_text_lenght;
|
||||
FILE *phonebook_writing_fp;
|
||||
int skypiax_dir_entry_extension_prefix;
|
||||
#ifdef WIN32
|
||||
unsigned short tcp_cli_port;
|
||||
unsigned short tcp_srv_port;
|
||||
#else
|
||||
int tcp_cli_port;
|
||||
int tcp_srv_port;
|
||||
#endif
|
||||
char X11_display[256];
|
||||
|
||||
struct ast_frame read_frame;
|
||||
|
||||
char skype_user[256];
|
||||
char skype_password[256];
|
||||
char destination[256];
|
||||
char session_uuid_str[512 + 1];
|
||||
pthread_t signaling_thread;
|
||||
};
|
||||
|
||||
typedef struct skypiax_pvt private_t;
|
||||
/* FUNCTIONS */
|
||||
|
||||
/* module helpers functions */
|
||||
int load_module(void);
|
||||
int unload_module(void);
|
||||
int usecount(void);
|
||||
char *description(void);
|
||||
char *key(void);
|
||||
|
||||
/* chan_skypiax internal functions */
|
||||
void skypiax_unlocka_log(void *x);
|
||||
|
||||
void *do_skypeapi_thread(void *data);
|
||||
//int skypiax2skype(struct ast_channel *c, void *data);
|
||||
//int skype2skypiax(struct ast_channel *c, void *data);
|
||||
//void skypiax_disconnect(void);
|
||||
int skypiax_signaling_write(struct skypiax_pvt *p, char *msg_to_skype);
|
||||
int skypiax_signaling_read(struct skypiax_pvt *p);
|
||||
int skypiax_console_skype(int fd, int argc, char *argv[]);
|
||||
#ifdef WANT_SKYPE_X11
|
||||
int X11_errors_handler(Display * dpy, XErrorEvent * err);
|
||||
int skypiax_send_message(struct SkypiaxHandles *SkypiaxHandles, const char *message_P);
|
||||
int skypiax_present(struct SkypiaxHandles *SkypiaxHandles);
|
||||
void skypiax_clean_disp(void *data);
|
||||
#endif /* WANT_SKYPE_X11 */
|
||||
#ifdef __CYGWIN__
|
||||
|
||||
int win32_Initialize_CreateWindowClass(private_t * tech_pvt);
|
||||
void win32_DeInitialize_DestroyWindowClass(private_t * tech_pvt);
|
||||
int win32_Initialize_CreateMainWindow(private_t * tech_pvt);
|
||||
void win32_DeInitialize_DestroyMainWindow(private_t * tech_pvt);
|
||||
#endif /* __CYGWIN__ */
|
||||
|
||||
/* CHAN_SKYPIAX.C */
|
||||
int skypiax_queue_control(struct ast_channel *chan, int control);
|
||||
struct skypiax_pvt *skypiax_console_find_desc(char *dev);
|
||||
int skypiax_serial_call(struct skypiax_pvt *p, char *dstr);
|
||||
|
||||
/* FUNCTIONS */
|
||||
/* PBX interface functions */
|
||||
struct ast_channel *skypiax_request(const char *type, int format, void *data, int *cause);
|
||||
int skypiax_answer(struct ast_channel *c);
|
||||
int skypiax_hangup(struct ast_channel *c);
|
||||
int skypiax_originate_call(struct ast_channel *c, char *idest, int timeout);
|
||||
struct ast_frame *skypiax_read(struct ast_channel *chan);
|
||||
int skypiax_write(struct ast_channel *c, struct ast_frame *f);
|
||||
int skypiax_fixup(struct ast_channel *oldchan, struct ast_channel *newchan);
|
||||
#ifndef ASTERISK_VERSION_1_4
|
||||
int skypiax_indicate(struct ast_channel *c, int cond);
|
||||
#else
|
||||
int skypiax_indicate(struct ast_channel *c, int cond, const void *data, size_t datalen);
|
||||
#endif
|
||||
int skypiax_devicestate(void *data);
|
||||
#ifdef ASTERISK_VERSION_1_4
|
||||
int skypiax_digitsend_begin(struct ast_channel *ast, char digit);
|
||||
int skypiax_digitsend_end(struct ast_channel *ast, char digit, unsigned int duration);
|
||||
#else /* ASTERISK_VERSION_1_4 */
|
||||
int skypiax_digitsend(struct ast_channel *ast, char digit);
|
||||
#endif /* ASTERISK_VERSION_1_4 */
|
||||
|
||||
/* chan_skypiax internal functions */
|
||||
|
||||
struct skypiax_pvt *skypiax_mkif(struct ast_config *cfg, char *ctg, int is_first_category);
|
||||
struct ast_channel *skypiax_new(struct skypiax_pvt *p, int state, char *context);
|
||||
int skypiax_restart_monitor(void);
|
||||
void *skypiax_do_monitor(void *data);
|
||||
int skypiax_sound_boost(struct ast_frame *f, double boost);
|
||||
int skypiax_sound_init(struct skypiax_pvt *p);
|
||||
int skypiax_sound_shutdown(struct skypiax_pvt *p);
|
||||
struct ast_frame *skypiax_sound_read(struct skypiax_pvt *p);
|
||||
int skypiax_sound_write(struct skypiax_pvt *p, struct ast_frame *f);
|
||||
void *skypiax_do_controldev_thread(void *data);
|
||||
#ifdef ASTERISK_VERSION_1_6
|
||||
void skypiax_store_boost(const char *s, double *boost);
|
||||
#else
|
||||
void skypiax_store_boost(char *s, double *boost);
|
||||
#endif /* ASTERISK_VERSION_1_6 */
|
||||
int skypiax_console_set_active(int fd, int argc, char *argv[]);
|
||||
int skypiax_console_hangup(int fd, int argc, char *argv[]);
|
||||
int skypiax_console_playback_boost(int fd, int argc, char *argv[]);
|
||||
int skypiax_console_capture_boost(int fd, int argc, char *argv[]);
|
||||
int skypiax_console_skypiax(int fd, int argc, char *argv[]);
|
||||
int skypiax_console_dial(int fd, int argc, char *argv[]);
|
||||
int skypiax_audio_init(struct skypiax_pvt *p);
|
||||
//struct ast_frame *skypiax_audio_read(struct skypiax_pvt *p);
|
||||
int skypiax_audio_read(struct skypiax_pvt *p);
|
||||
void *skypiax_do_tcp_srv_thread(void *data);
|
||||
int skypiax_audio_write(struct skypiax_pvt *p, struct ast_frame *f);
|
||||
void *skypiax_do_tcp_cli_thread(void *data);
|
||||
int skypiax_call(struct skypiax_pvt *p, char *idest, int timeout);
|
||||
int skypiax_console_skypiax_dir_import(int fd, int argc, char *argv[]);
|
||||
|
||||
void *skypiax_do_tcp_srv_thread_func(void *obj);
|
||||
void *skypiax_do_tcp_cli_thread_func(void *obj);
|
||||
void *skypiax_do_skypeapi_thread_func(void *obj);
|
||||
int dtmf_received(private_t * tech_pvt, char *value);
|
||||
int start_audio_threads(private_t * tech_pvt);
|
||||
int new_inbound_channel(private_t * tech_pvt);
|
||||
int outbound_channel_answered(private_t * tech_pvt);
|
||||
int skypiax_senddigit(struct skypiax_pvt *p, char digit);
|
||||
int skypiax_signaling_write(private_t * tech_pvt, char *msg_to_skype);
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
int skypiax_pipe_read(switch_file_t * pipe, short *buf, int howmany);
|
||||
int skypiax_pipe_write(switch_file_t * pipe, short *buf, int howmany);
|
||||
/* Visual C do not have strsep ? */
|
||||
char *strsep(char **stringp, const char *delim);
|
||||
#else
|
||||
int skypiax_pipe_read(int pipe, short *buf, int howmany);
|
||||
int skypiax_pipe_write(int pipe, short *buf, int howmany);
|
||||
#endif /* WIN32 */
|
||||
int skypiax_close_socket(unsigned int fd);
|
||||
private_t *find_available_skypiax_interface(void);
|
||||
int remote_party_is_ringing(private_t * tech_pvt);
|
||||
int remote_party_is_early_media(private_t * tech_pvt);
|
||||
#define SKYPIAX_STATE_DOWN AST_STATE_DOWN
|
||||
#define SKYPIAX_STATE_RING AST_STATE_RING
|
||||
#define SKYPIAX_STATE_DIALING AST_STATE_DIALING
|
||||
#define SKYPIAX_STATE_BUSY AST_STATE_BUSY
|
||||
#define SKYPIAX_STATE_UP AST_STATE_UP
|
||||
#define SKYPIAX_STATE_RINGING AST_STATE_RINGING
|
||||
#define SKYPIAX_STATE_PRERING AST_STATE_PRERING
|
||||
#define SKYPIAX_STATE_RESERVED AST_STATE_RESERVED
|
||||
#define SKYPIAX_STATE_HANGUP_REQUESTED 200
|
||||
#endif /* _SKYPIAX_H_ */
|
||||
@@ -1,821 +0,0 @@
|
||||
/*
|
||||
* Dummy soundcard
|
||||
* Copyright (c) by Jaroslav Kysela <perex@perex.cz>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <sound/core.h>
|
||||
#include <sound/control.h>
|
||||
#include <sound/tlv.h>
|
||||
#include <sound/pcm.h>
|
||||
#include <sound/rawmidi.h>
|
||||
#include <sound/initval.h>
|
||||
|
||||
|
||||
MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>");
|
||||
MODULE_DESCRIPTION("Dummy soundcard (/dev/null)");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_SUPPORTED_DEVICE("{{ALSA,Dummy soundcard}}");
|
||||
|
||||
#define MAX_PCM_DEVICES 4
|
||||
#define MAX_PCM_SUBSTREAMS 128
|
||||
#define MAX_MIDI_DEVICES 2
|
||||
|
||||
|
||||
/* defaults */
|
||||
#ifndef MAX_BUFFER_SIZE
|
||||
#define MAX_BUFFER_SIZE (64*1024)
|
||||
#endif
|
||||
#ifndef MAX_PERIOD_SIZE
|
||||
#define MAX_PERIOD_SIZE MAX_BUFFER_SIZE
|
||||
#endif
|
||||
#ifndef USE_FORMATS
|
||||
#define USE_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE)
|
||||
#endif
|
||||
#ifndef USE_RATE
|
||||
#define USE_RATE SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000
|
||||
#define USE_RATE_MIN 5500
|
||||
#define USE_RATE_MAX 48000
|
||||
#endif
|
||||
#ifndef USE_CHANNELS_MIN
|
||||
#define USE_CHANNELS_MIN 1
|
||||
#endif
|
||||
#ifndef USE_CHANNELS_MAX
|
||||
#define USE_CHANNELS_MAX 2
|
||||
#endif
|
||||
#ifndef USE_PERIODS_MIN
|
||||
#define USE_PERIODS_MIN 10
|
||||
#endif
|
||||
#ifndef USE_PERIODS_MAX
|
||||
#define USE_PERIODS_MAX 1024
|
||||
#endif
|
||||
#ifndef add_playback_constraints
|
||||
#define add_playback_constraints(x) 0
|
||||
#endif
|
||||
#ifndef add_capture_constraints
|
||||
#define add_capture_constraints(x) 0
|
||||
#endif
|
||||
|
||||
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
|
||||
static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
|
||||
static int enable[SNDRV_CARDS] = { 1,[1 ... (SNDRV_CARDS - 1)] = 0 };
|
||||
static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 };
|
||||
static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 128 };
|
||||
|
||||
|
||||
module_param_array(index, int, NULL, 0444);
|
||||
MODULE_PARM_DESC(index, "Index value for dummy soundcard.");
|
||||
module_param_array(id, charp, NULL, 0444);
|
||||
MODULE_PARM_DESC(id, "ID string for dummy soundcard.");
|
||||
module_param_array(enable, bool, NULL, 0444);
|
||||
MODULE_PARM_DESC(enable, "Enable this dummy soundcard.");
|
||||
module_param_array(pcm_devs, int, NULL, 0444);
|
||||
MODULE_PARM_DESC(pcm_devs, "PCM devices # (0-4) for dummy driver.");
|
||||
module_param_array(pcm_substreams, int, NULL, 0444);
|
||||
MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-64) for dummy driver.");
|
||||
|
||||
static struct platform_device *devices[SNDRV_CARDS];
|
||||
static struct timer_list dummytimer;
|
||||
static int dummystarted = 0;
|
||||
static int dummyindex = 0;
|
||||
static spinlock_t dummylock;
|
||||
struct dummydpcm {
|
||||
struct snd_pcm_substream *substream;
|
||||
struct snd_dummy_pcm *dpcm;
|
||||
int started;
|
||||
int elapsed;
|
||||
};
|
||||
static struct dummydpcm dummydpcms[MAX_PCM_SUBSTREAMS];
|
||||
|
||||
#define MIXER_ADDR_MASTER 0
|
||||
#define MIXER_ADDR_LINE 1
|
||||
#define MIXER_ADDR_MIC 2
|
||||
#define MIXER_ADDR_SYNTH 3
|
||||
#define MIXER_ADDR_CD 4
|
||||
#define MIXER_ADDR_LAST 4
|
||||
|
||||
static void snd_card_dummy_pcm_timer_function(unsigned long data);
|
||||
struct snd_dummy {
|
||||
struct snd_card *card;
|
||||
struct snd_pcm *pcm;
|
||||
spinlock_t mixer_lock;
|
||||
int mixer_volume[MIXER_ADDR_LAST + 1][2];
|
||||
int capture_source[MIXER_ADDR_LAST + 1][2];
|
||||
};
|
||||
|
||||
struct snd_dummy_pcm {
|
||||
struct snd_dummy *dummy;
|
||||
//spinlock_t lock;
|
||||
//struct timer_list timer;
|
||||
unsigned int pcm_buffer_size;
|
||||
unsigned int pcm_period_size;
|
||||
unsigned int pcm_bps; /* bytes per second */
|
||||
unsigned int pcm_hz; /* HZ */
|
||||
unsigned int pcm_irq_pos; /* IRQ position */
|
||||
unsigned int pcm_buf_pos; /* position in buffer */
|
||||
struct snd_pcm_substream *substream;
|
||||
};
|
||||
|
||||
|
||||
static inline void snd_card_dummy_pcm_timer_start(struct snd_dummy_pcm *dpcm)
|
||||
{
|
||||
int i;
|
||||
int found = 0;
|
||||
|
||||
for (i = 0; i < dummyindex + 1; i++) {
|
||||
//if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
//printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
//}
|
||||
|
||||
if (dummydpcms[i].dpcm == dpcm) {
|
||||
dummydpcms[i].started = 1;
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
//if (!found) {
|
||||
//printk("skypopen: start, NOT found?\n");
|
||||
//}
|
||||
}
|
||||
|
||||
static inline void snd_card_dummy_pcm_timer_stop(struct snd_dummy_pcm *dpcm)
|
||||
{
|
||||
int i;
|
||||
int found = 0;
|
||||
|
||||
for (i = 0; i < dummyindex + 1; i++) {
|
||||
|
||||
//if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
//printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
//}
|
||||
if (dummydpcms[i].dpcm == dpcm) {
|
||||
dummydpcms[i].started = 0;
|
||||
dummydpcms[i].elapsed = 0;
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
static int snd_card_dummy_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
struct snd_dummy_pcm *dpcm = runtime->private_data;
|
||||
int err = 0;
|
||||
|
||||
spin_lock_bh(&dummylock);
|
||||
switch (cmd) {
|
||||
case SNDRV_PCM_TRIGGER_START:
|
||||
case SNDRV_PCM_TRIGGER_RESUME:
|
||||
snd_card_dummy_pcm_timer_start(dpcm);
|
||||
break;
|
||||
case SNDRV_PCM_TRIGGER_STOP:
|
||||
case SNDRV_PCM_TRIGGER_SUSPEND:
|
||||
snd_card_dummy_pcm_timer_stop(dpcm);
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
break;
|
||||
}
|
||||
spin_unlock_bh(&dummylock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_card_dummy_pcm_prepare(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
struct snd_dummy_pcm *dpcm = runtime->private_data;
|
||||
int bps;
|
||||
|
||||
bps = snd_pcm_format_width(runtime->format) * runtime->rate * runtime->channels / 8;
|
||||
|
||||
if (bps <= 0)
|
||||
return -EINVAL;
|
||||
|
||||
dpcm->pcm_bps = bps;
|
||||
dpcm->pcm_hz = HZ;
|
||||
dpcm->pcm_buffer_size = snd_pcm_lib_buffer_bytes(substream);
|
||||
dpcm->pcm_period_size = snd_pcm_lib_period_bytes(substream);
|
||||
dpcm->pcm_irq_pos = 0;
|
||||
dpcm->pcm_buf_pos = 0;
|
||||
snd_pcm_format_set_silence(runtime->format, runtime->dma_area, bytes_to_samples(runtime, runtime->dma_bytes));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void snd_card_dummy_pcm_timer_function(unsigned long data)
|
||||
{
|
||||
struct snd_dummy_pcm *dpcm = NULL;
|
||||
int i;
|
||||
|
||||
|
||||
dummytimer.expires = 1 + jiffies;
|
||||
add_timer(&dummytimer);
|
||||
|
||||
//spin_lock_bh(&dummylock);
|
||||
for (i = 0; i < dummyindex + 1; i++) {
|
||||
|
||||
#if 0
|
||||
if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
}
|
||||
#endif
|
||||
if (dummydpcms[i].started != 1)
|
||||
continue;
|
||||
dpcm = dummydpcms[i].dpcm;
|
||||
#if 0
|
||||
if (dpcm == NULL) {
|
||||
printk("dummy: timer_func %d %d NULL: continue\n", __LINE__, i);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
//spin_lock_bh(&dpcm->lock);
|
||||
dpcm->pcm_irq_pos += dpcm->pcm_bps * 1;
|
||||
dpcm->pcm_buf_pos += dpcm->pcm_bps * 1;
|
||||
dpcm->pcm_buf_pos %= dpcm->pcm_buffer_size * dpcm->pcm_hz;
|
||||
if (dpcm->pcm_irq_pos >= dpcm->pcm_period_size * dpcm->pcm_hz) {
|
||||
dpcm->pcm_irq_pos %= dpcm->pcm_period_size * dpcm->pcm_hz;
|
||||
//spin_unlock_bh(&dpcm->lock);
|
||||
//snd_pcm_period_elapsed(dpcm->substream);
|
||||
dummydpcms[i].elapsed = 1;
|
||||
} else {
|
||||
//spin_unlock_bh(&dpcm->lock);
|
||||
}
|
||||
}
|
||||
//spin_unlock_bh(&dummylock);
|
||||
for (i = 0; i < dummyindex + 1; i++) {
|
||||
|
||||
#if 0
|
||||
if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
}
|
||||
#endif
|
||||
if (dummydpcms[i].started != 1)
|
||||
continue;
|
||||
dpcm = dummydpcms[i].dpcm;
|
||||
#if 0
|
||||
if (dpcm == NULL) {
|
||||
printk("dummy: timer_func %d %d NULL: continue\n", __LINE__, i);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
if (dummydpcms[i].elapsed){
|
||||
snd_pcm_period_elapsed(dpcm->substream);
|
||||
dummydpcms[i].elapsed = 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static snd_pcm_uframes_t snd_card_dummy_pcm_pointer(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
struct snd_dummy_pcm *dpcm = runtime->private_data;
|
||||
|
||||
//return bytes_to_frames(runtime, dpcm->pcm_buf_pos / dpcm->pcm_hz);
|
||||
return (dpcm->pcm_buf_pos / dpcm->pcm_hz) / 2;
|
||||
}
|
||||
|
||||
static struct snd_pcm_hardware snd_card_dummy_playback = {
|
||||
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_RESUME | SNDRV_PCM_INFO_MMAP_VALID),
|
||||
//.info = (SNDRV_PCM_INFO_INTERLEAVED),
|
||||
.formats = USE_FORMATS,
|
||||
.rates = USE_RATE,
|
||||
.rate_min = USE_RATE_MIN,
|
||||
.rate_max = USE_RATE_MAX,
|
||||
.channels_min = USE_CHANNELS_MIN,
|
||||
.channels_max = USE_CHANNELS_MAX,
|
||||
.buffer_bytes_max = MAX_BUFFER_SIZE,
|
||||
//.period_bytes_min = 256,
|
||||
.period_bytes_min = 2048,
|
||||
.period_bytes_max = MAX_PERIOD_SIZE,
|
||||
.periods_min = USE_PERIODS_MIN,
|
||||
.periods_max = USE_PERIODS_MAX,
|
||||
.fifo_size = 0,
|
||||
};
|
||||
|
||||
static struct snd_pcm_hardware snd_card_dummy_capture = {
|
||||
.info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_RESUME | SNDRV_PCM_INFO_MMAP_VALID),
|
||||
//.info = (SNDRV_PCM_INFO_INTERLEAVED),
|
||||
.formats = USE_FORMATS,
|
||||
.rates = USE_RATE,
|
||||
.rate_min = USE_RATE_MIN,
|
||||
.rate_max = USE_RATE_MAX,
|
||||
.channels_min = USE_CHANNELS_MIN,
|
||||
.channels_max = USE_CHANNELS_MAX,
|
||||
.buffer_bytes_max = MAX_BUFFER_SIZE,
|
||||
//.period_bytes_min = 256,
|
||||
.period_bytes_min = 2048,
|
||||
.period_bytes_max = MAX_PERIOD_SIZE,
|
||||
.periods_min = USE_PERIODS_MIN,
|
||||
.periods_max = USE_PERIODS_MAX,
|
||||
.fifo_size = 0,
|
||||
};
|
||||
|
||||
static void snd_card_dummy_runtime_free(struct snd_pcm_runtime *runtime)
|
||||
{
|
||||
int i;
|
||||
|
||||
spin_lock_bh(&dummylock);
|
||||
|
||||
for (i = 0; i < dummyindex; i++) {
|
||||
|
||||
if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
printk("dummy, %s:%d, i=%d, dummyindex=%d \n", __FILE__, __LINE__, i, dummyindex);
|
||||
}
|
||||
if ((dummydpcms[i].dpcm == runtime->private_data)) {
|
||||
dummydpcms[i].started = 0;
|
||||
dummydpcms[i].elapsed = 0;
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
spin_unlock_bh(&dummylock);
|
||||
kfree(runtime->private_data);
|
||||
}
|
||||
|
||||
static int snd_card_dummy_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *hw_params)
|
||||
{
|
||||
return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
|
||||
}
|
||||
|
||||
static int snd_card_dummy_hw_free(struct snd_pcm_substream *substream)
|
||||
{
|
||||
return snd_pcm_lib_free_pages(substream);
|
||||
}
|
||||
|
||||
static struct snd_dummy_pcm *new_pcm_stream(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_dummy_pcm *dpcm;
|
||||
int i;
|
||||
int found = 0;
|
||||
|
||||
dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL);
|
||||
if (!dpcm) {
|
||||
printk("dummy, %s:%d, dummyindex=%d NO MEMORY!!!!\n", __FILE__, __LINE__, dummyindex);
|
||||
return dpcm;
|
||||
}
|
||||
//init_timer(&dpcm->timer);
|
||||
//spin_lock_init(&dpcm->lock);
|
||||
dpcm->substream = substream;
|
||||
|
||||
spin_lock_bh(&dummylock);
|
||||
for (i = 0; i < dummyindex; i++) {
|
||||
|
||||
//if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
//printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
//}
|
||||
if ((dummydpcms[i].substream == substream)) {
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
|
||||
dummydpcms[dummyindex].substream = substream;
|
||||
dummyindex++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
found = 0;
|
||||
for (i = 0; i < dummyindex; i++) {
|
||||
|
||||
//if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
//printk("dummy, %s:%d, i=%d, dummyindex=%d dpcm=%p\n", __FILE__, __LINE__, i, dummyindex, dpcm);
|
||||
//}
|
||||
if (dummydpcms[i].substream == substream) {
|
||||
dummydpcms[i].dpcm = dpcm;
|
||||
dummydpcms[i].started = 0;
|
||||
dummydpcms[i].elapsed = 0;
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
spin_unlock_bh(&dummylock);
|
||||
//if (!found) {
|
||||
//printk("skypopen dummyindex=%d NOT found????\n", dummyindex);
|
||||
//}
|
||||
return dpcm;
|
||||
}
|
||||
|
||||
static int snd_card_dummy_playback_open(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
struct snd_dummy_pcm *dpcm;
|
||||
int err;
|
||||
|
||||
if ((dpcm = new_pcm_stream(substream)) == NULL)
|
||||
return -ENOMEM;
|
||||
runtime->private_data = dpcm;
|
||||
/* makes the infrastructure responsible for freeing dpcm */
|
||||
runtime->private_free = snd_card_dummy_runtime_free;
|
||||
runtime->hw = snd_card_dummy_playback;
|
||||
if (substream->pcm->device & 1) {
|
||||
runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED;
|
||||
runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED;
|
||||
}
|
||||
if (substream->pcm->device & 2)
|
||||
runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID);
|
||||
err = add_playback_constraints(runtime);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_card_dummy_capture_open(struct snd_pcm_substream *substream)
|
||||
{
|
||||
struct snd_pcm_runtime *runtime = substream->runtime;
|
||||
struct snd_dummy_pcm *dpcm;
|
||||
int err;
|
||||
|
||||
if ((dpcm = new_pcm_stream(substream)) == NULL)
|
||||
return -ENOMEM;
|
||||
runtime->private_data = dpcm;
|
||||
/* makes the infrastructure responsible for freeing dpcm */
|
||||
runtime->private_free = snd_card_dummy_runtime_free;
|
||||
runtime->hw = snd_card_dummy_capture;
|
||||
if (substream->pcm->device == 1) {
|
||||
runtime->hw.info &= ~SNDRV_PCM_INFO_INTERLEAVED;
|
||||
runtime->hw.info |= SNDRV_PCM_INFO_NONINTERLEAVED;
|
||||
}
|
||||
if (substream->pcm->device & 2)
|
||||
runtime->hw.info &= ~(SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID);
|
||||
err = add_capture_constraints(runtime);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_card_dummy_playback_close(struct snd_pcm_substream *substream)
|
||||
{
|
||||
snd_card_dummy_pcm_timer_stop(substream->private_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_card_dummy_capture_close(struct snd_pcm_substream *substream)
|
||||
{
|
||||
snd_card_dummy_pcm_timer_stop(substream->private_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_card_dummy_playback_ops = {
|
||||
.open = snd_card_dummy_playback_open,
|
||||
.close = snd_card_dummy_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
.hw_params = snd_card_dummy_hw_params,
|
||||
.hw_free = snd_card_dummy_hw_free,
|
||||
.prepare = snd_card_dummy_pcm_prepare,
|
||||
.trigger = snd_card_dummy_pcm_trigger,
|
||||
.pointer = snd_card_dummy_pcm_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_card_dummy_capture_ops = {
|
||||
.open = snd_card_dummy_capture_open,
|
||||
.close = snd_card_dummy_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
.hw_params = snd_card_dummy_hw_params,
|
||||
.hw_free = snd_card_dummy_hw_free,
|
||||
.prepare = snd_card_dummy_pcm_prepare,
|
||||
.trigger = snd_card_dummy_pcm_trigger,
|
||||
.pointer = snd_card_dummy_pcm_pointer,
|
||||
};
|
||||
|
||||
static int __devinit snd_card_dummy_pcm(struct snd_dummy *dummy, int device, int substreams)
|
||||
{
|
||||
struct snd_pcm *pcm;
|
||||
int err;
|
||||
|
||||
err = snd_pcm_new(dummy->card, "Dummy PCM", device, substreams, substreams, &pcm);
|
||||
if (err < 0)
|
||||
return err;
|
||||
dummy->pcm = pcm;
|
||||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_card_dummy_playback_ops);
|
||||
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_card_dummy_capture_ops);
|
||||
pcm->private_data = dummy;
|
||||
pcm->info_flags = 0;
|
||||
strcpy(pcm->name, "Dummy PCM");
|
||||
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, snd_dma_continuous_data(GFP_KERNEL), 128 * 1024, 1024 * 1024);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define DUMMY_VOLUME(xname, xindex, addr) \
|
||||
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
|
||||
.name = xname, .index = xindex, \
|
||||
.info = snd_dummy_volume_info, \
|
||||
.get = snd_dummy_volume_get, .put = snd_dummy_volume_put, \
|
||||
.private_value = addr, \
|
||||
.tlv = { .p = db_scale_dummy } }
|
||||
|
||||
static int snd_dummy_volume_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
|
||||
{
|
||||
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
|
||||
uinfo->count = 2;
|
||||
uinfo->value.integer.min = -50;
|
||||
uinfo->value.integer.max = 100;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_dummy_volume_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol);
|
||||
int addr = kcontrol->private_value;
|
||||
|
||||
if (in_irq())
|
||||
printk("dummy: line %d we are in HARDWARE IRQ\n", __LINE__);
|
||||
spin_lock_bh(&dummy->mixer_lock);
|
||||
ucontrol->value.integer.value[0] = dummy->mixer_volume[addr][0];
|
||||
ucontrol->value.integer.value[1] = dummy->mixer_volume[addr][1];
|
||||
spin_unlock_bh(&dummy->mixer_lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_dummy_volume_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol);
|
||||
int change, addr = kcontrol->private_value;
|
||||
int left, right;
|
||||
|
||||
if (in_irq())
|
||||
printk("dummy: line %d we are in HARDWARE IRQ\n", __LINE__);
|
||||
left = ucontrol->value.integer.value[0];
|
||||
if (left < -50)
|
||||
left = -50;
|
||||
if (left > 100)
|
||||
left = 100;
|
||||
right = ucontrol->value.integer.value[1];
|
||||
if (right < -50)
|
||||
right = -50;
|
||||
if (right > 100)
|
||||
right = 100;
|
||||
spin_lock_bh(&dummy->mixer_lock);
|
||||
change = dummy->mixer_volume[addr][0] != left || dummy->mixer_volume[addr][1] != right;
|
||||
dummy->mixer_volume[addr][0] = left;
|
||||
dummy->mixer_volume[addr][1] = right;
|
||||
spin_unlock_bh(&dummy->mixer_lock);
|
||||
return change;
|
||||
}
|
||||
|
||||
static const DECLARE_TLV_DB_SCALE(db_scale_dummy, -4500, 30, 0);
|
||||
|
||||
#define DUMMY_CAPSRC(xname, xindex, addr) \
|
||||
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
|
||||
.info = snd_dummy_capsrc_info, \
|
||||
.get = snd_dummy_capsrc_get, .put = snd_dummy_capsrc_put, \
|
||||
.private_value = addr }
|
||||
|
||||
#define snd_dummy_capsrc_info snd_ctl_boolean_stereo_info
|
||||
|
||||
static int snd_dummy_capsrc_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol);
|
||||
int addr = kcontrol->private_value;
|
||||
|
||||
if (in_irq())
|
||||
printk("dummy: line %d we are in HARDWARE IRQ\n", __LINE__);
|
||||
spin_lock_bh(&dummy->mixer_lock);
|
||||
ucontrol->value.integer.value[0] = dummy->capture_source[addr][0];
|
||||
ucontrol->value.integer.value[1] = dummy->capture_source[addr][1];
|
||||
spin_unlock_bh(&dummy->mixer_lock);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_dummy_capsrc_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
|
||||
{
|
||||
struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol);
|
||||
int change, addr = kcontrol->private_value;
|
||||
int left, right;
|
||||
|
||||
if (in_irq())
|
||||
printk("dummy: line %d we are in HARDWARE IRQ\n", __LINE__);
|
||||
left = ucontrol->value.integer.value[0] & 1;
|
||||
right = ucontrol->value.integer.value[1] & 1;
|
||||
spin_lock_bh(&dummy->mixer_lock);
|
||||
change = dummy->capture_source[addr][0] != left && dummy->capture_source[addr][1] != right;
|
||||
dummy->capture_source[addr][0] = left;
|
||||
dummy->capture_source[addr][1] = right;
|
||||
spin_unlock_bh(&dummy->mixer_lock);
|
||||
return change;
|
||||
}
|
||||
|
||||
static struct snd_kcontrol_new snd_dummy_controls[] = {
|
||||
DUMMY_VOLUME("Master Volume", 0, MIXER_ADDR_MASTER),
|
||||
DUMMY_CAPSRC("Master Capture Switch", 0, MIXER_ADDR_MASTER),
|
||||
DUMMY_VOLUME("Synth Volume", 0, MIXER_ADDR_SYNTH),
|
||||
DUMMY_CAPSRC("Synth Capture Switch", 0, MIXER_ADDR_SYNTH),
|
||||
DUMMY_VOLUME("Line Volume", 0, MIXER_ADDR_LINE),
|
||||
DUMMY_CAPSRC("Line Capture Switch", 0, MIXER_ADDR_LINE),
|
||||
DUMMY_VOLUME("Mic Volume", 0, MIXER_ADDR_MIC),
|
||||
DUMMY_CAPSRC("Mic Capture Switch", 0, MIXER_ADDR_MIC),
|
||||
DUMMY_VOLUME("CD Volume", 0, MIXER_ADDR_CD),
|
||||
DUMMY_CAPSRC("CD Capture Switch", 0, MIXER_ADDR_CD)
|
||||
};
|
||||
|
||||
static int __devinit snd_card_dummy_new_mixer(struct snd_dummy *dummy)
|
||||
{
|
||||
struct snd_card *card = dummy->card;
|
||||
unsigned int idx;
|
||||
int err;
|
||||
|
||||
return 0; //XXX no mixer
|
||||
spin_lock_init(&dummy->mixer_lock);
|
||||
strcpy(card->mixername, "Dummy Mixer");
|
||||
|
||||
for (idx = 0; idx < ARRAY_SIZE(snd_dummy_controls); idx++) {
|
||||
err = snd_ctl_add(card, snd_ctl_new1(&snd_dummy_controls[idx], dummy));
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit snd_dummy_probe(struct platform_device *devptr)
|
||||
{
|
||||
struct snd_card *card;
|
||||
struct snd_dummy *dummy;
|
||||
int idx, err;
|
||||
int dev = devptr->id;
|
||||
|
||||
err = snd_card_create(index[dev], id[dev], THIS_MODULE,
|
||||
sizeof(struct snd_dummy), &card);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
dummy = card->private_data;
|
||||
dummy->card = card;
|
||||
for (idx = 0; idx < MAX_PCM_DEVICES && idx < pcm_devs[dev]; idx++) {
|
||||
if (pcm_substreams[dev] < 1)
|
||||
pcm_substreams[dev] = 1;
|
||||
if (pcm_substreams[dev] > MAX_PCM_SUBSTREAMS)
|
||||
pcm_substreams[dev] = MAX_PCM_SUBSTREAMS;
|
||||
err = snd_card_dummy_pcm(dummy, idx, pcm_substreams[dev]);
|
||||
if (err < 0)
|
||||
goto __nodev;
|
||||
}
|
||||
//err = snd_card_dummy_new_mixer(dummy);
|
||||
//if (err < 0)
|
||||
//goto __nodev;
|
||||
strcpy(card->driver, "Dummy");
|
||||
strcpy(card->shortname, "Dummy");
|
||||
sprintf(card->longname, "Dummy %i", dev + 1);
|
||||
|
||||
snd_card_set_dev(card, &devptr->dev);
|
||||
|
||||
err = snd_card_register(card);
|
||||
if (err == 0) {
|
||||
platform_set_drvdata(devptr, card);
|
||||
return 0;
|
||||
}
|
||||
__nodev:
|
||||
snd_card_free(card);
|
||||
return err;
|
||||
}
|
||||
|
||||
static int __devexit snd_dummy_remove(struct platform_device *devptr)
|
||||
{
|
||||
|
||||
del_timer(&dummytimer);
|
||||
snd_card_free(platform_get_drvdata(devptr));
|
||||
platform_set_drvdata(devptr, NULL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int snd_dummy_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
struct snd_dummy *dummy = card->private_data;
|
||||
|
||||
snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
|
||||
snd_pcm_suspend_all(dummy->pcm);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int snd_dummy_resume(struct platform_device *pdev)
|
||||
{
|
||||
struct snd_card *card = platform_get_drvdata(pdev);
|
||||
|
||||
snd_power_change_state(card, SNDRV_CTL_POWER_D0);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define SND_DUMMY_DRIVER "snd_dummy"
|
||||
|
||||
static struct platform_driver snd_dummy_driver = {
|
||||
.probe = snd_dummy_probe,
|
||||
.remove = __devexit_p(snd_dummy_remove),
|
||||
#ifdef CONFIG_PM
|
||||
.suspend = snd_dummy_suspend,
|
||||
.resume = snd_dummy_resume,
|
||||
#endif
|
||||
.driver = {
|
||||
.name = SND_DUMMY_DRIVER},
|
||||
};
|
||||
|
||||
static void snd_dummy_unregister_all(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(devices); ++i)
|
||||
platform_device_unregister(devices[i]);
|
||||
platform_driver_unregister(&snd_dummy_driver);
|
||||
}
|
||||
|
||||
static int __init alsa_card_dummy_init(void)
|
||||
{
|
||||
int i, cards, err;
|
||||
|
||||
err = platform_driver_register(&snd_dummy_driver);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
if (!dummystarted) {
|
||||
dummystarted = 1;
|
||||
spin_lock_init(&dummylock);
|
||||
|
||||
spin_lock_bh(&dummylock);
|
||||
for (i = 0; i < MAX_PCM_SUBSTREAMS; i++) {
|
||||
|
||||
//if (i > MAX_PCM_SUBSTREAMS || dummyindex > MAX_PCM_SUBSTREAMS) {
|
||||
//printk("dummy, %s:%d, i=%d, dummyindex=%d \n", __FILE__, __LINE__, i, dummyindex);
|
||||
//}
|
||||
dummydpcms[i].substream = NULL;
|
||||
dummydpcms[i].dpcm = NULL;
|
||||
dummydpcms[i].started = 0;
|
||||
dummydpcms[i].elapsed = 0;
|
||||
}
|
||||
init_timer(&dummytimer);
|
||||
dummytimer.data = (unsigned long) &dummydpcms;
|
||||
dummytimer.function = snd_card_dummy_pcm_timer_function;
|
||||
dummytimer.expires = 1 + jiffies;
|
||||
add_timer(&dummytimer);
|
||||
printk("snd-dummy skypopen driver version: 9, %s:%d working on a machine with %dHZ kernel\n", __FILE__, __LINE__, HZ);
|
||||
spin_unlock_bh(&dummylock);
|
||||
}
|
||||
|
||||
|
||||
cards = 0;
|
||||
for (i = 0; i < SNDRV_CARDS; i++) {
|
||||
struct platform_device *device;
|
||||
if (!enable[i])
|
||||
continue;
|
||||
device = platform_device_register_simple(SND_DUMMY_DRIVER, i, NULL, 0);
|
||||
if (IS_ERR(device))
|
||||
continue;
|
||||
if (!platform_get_drvdata(device)) {
|
||||
platform_device_unregister(device);
|
||||
continue;
|
||||
}
|
||||
devices[i] = device;
|
||||
cards++;
|
||||
}
|
||||
if (!cards) {
|
||||
#ifdef MODULE
|
||||
printk(KERN_ERR "Dummy soundcard not found or device busy\n");
|
||||
#endif
|
||||
snd_dummy_unregister_all();
|
||||
return -ENODEV;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit alsa_card_dummy_exit(void)
|
||||
{
|
||||
del_timer(&dummytimer);
|
||||
snd_dummy_unregister_all();
|
||||
}
|
||||
|
||||
module_init(alsa_card_dummy_init)
|
||||
module_exit(alsa_card_dummy_exit)
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,43 +0,0 @@
|
||||
# Comment/uncomment the following line to disable/enable debugging
|
||||
#DEBUG = y
|
||||
#LDDINC=
|
||||
|
||||
# Add your debugging flag (or not) to CFLAGS
|
||||
ifeq ($(DEBUG),y)
|
||||
DEBFLAGS = -O -g -DSKYPOPEN_DEBUG # "-O" is needed to expand inlines
|
||||
else
|
||||
DEBFLAGS = -O2 -Wall
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += $(DEBFLAGS)
|
||||
EXTRA_CFLAGS += -I$(LDDINC)
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
# call from kernel build system
|
||||
|
||||
skypopen-objs := main.o
|
||||
|
||||
obj-m := skypopen.o
|
||||
|
||||
else
|
||||
|
||||
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
||||
PWD := $(shell pwd)
|
||||
|
||||
modules:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD)/../include modules
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
|
||||
|
||||
depend .depend dep:
|
||||
$(CC) $(EXTRA_CFLAGS) -M *.c > .depend
|
||||
|
||||
|
||||
ifeq (.depend,$(wildcard .depend))
|
||||
include .depend
|
||||
endif
|
||||
@@ -1,502 +0,0 @@
|
||||
/*
|
||||
* main.c -- the bare skypopen char module
|
||||
*
|
||||
* Copyright (C) 2010 Giovanni Maruzzelli
|
||||
* Copyright (C) 2001 Alessandro Rubini and Jonathan Corbet
|
||||
* Copyright (C) 2001 O'Reilly & Associates
|
||||
*
|
||||
* The source code in this file can be freely used, adapted,
|
||||
* and redistributed in source or binary form, so long as an
|
||||
* acknowledgment appears in derived source files. The citation
|
||||
* should list that the code comes from the book "Linux Device
|
||||
* Drivers" by Alessandro Rubini and Jonathan Corbet, published
|
||||
* by O'Reilly & Associates. No warranty is attached;
|
||||
* we cannot take responsibility for errors or fitness for use.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
#include <linux/kernel.h> /* printk() */
|
||||
#include <linux/slab.h> /* kmalloc() */
|
||||
#include <linux/fs.h> /* everything... */
|
||||
#include <linux/errno.h> /* error codes */
|
||||
#include <linux/types.h> /* size_t */
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/fcntl.h> /* O_ACCMODE */
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/cdev.h>
|
||||
|
||||
#include <asm/uaccess.h> /* copy_*_user */
|
||||
|
||||
#include <linux/soundcard.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/hrtimer.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/hrtimer.h>
|
||||
#include <linux/ktime.h>
|
||||
|
||||
#include "skypopen.h" /* local definitions */
|
||||
|
||||
|
||||
/*
|
||||
* Our parameters which can be set at load time.
|
||||
*/
|
||||
|
||||
int skypopen_major = SKYPOPEN_MAJOR;
|
||||
int skypopen_minor = SKYPOPEN_MINOR;
|
||||
int skypopen_nr_devs = SKYPOPEN_NR_DEVS; /* number of bare skypopen devices */
|
||||
|
||||
module_param(skypopen_major, int, S_IRUGO);
|
||||
module_param(skypopen_minor, int, S_IRUGO);
|
||||
module_param(skypopen_nr_devs, int, S_IRUGO);
|
||||
|
||||
MODULE_AUTHOR("Original: Alessandro Rubini, Jonathan Corbet. Modified by: Giovanni Maruzzelli for FreeSWITCH skypopen");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
||||
static struct skypopen_dev *skypopen_devices; /* allocated in skypopen_init_module */
|
||||
|
||||
static int unload = 0;
|
||||
|
||||
#ifndef WANT_HRTIMER
|
||||
void my_timer_callback_inq( unsigned long data )
|
||||
{
|
||||
struct skypopen_dev *dev = (void *)data;
|
||||
|
||||
wake_up_interruptible(&dev->inq);
|
||||
mod_timer( &dev->timer_inq, jiffies + msecs_to_jiffies(SKYPOPEN_SLEEP) );
|
||||
|
||||
}
|
||||
|
||||
void my_timer_callback_outq( unsigned long data )
|
||||
{
|
||||
struct skypopen_dev *dev = (void *)data;
|
||||
|
||||
wake_up_interruptible(&dev->outq);
|
||||
mod_timer( &dev->timer_outq, jiffies + msecs_to_jiffies(SKYPOPEN_SLEEP) );
|
||||
}
|
||||
#else// WANT_HRTIMER
|
||||
|
||||
#ifndef CENTOS_5
|
||||
static enum hrtimer_restart my_hrtimer_callback_inq( struct hrtimer *timer_inq )
|
||||
{
|
||||
struct skypopen_dev *dev = container_of(timer_inq, struct skypopen_dev, timer_inq);
|
||||
|
||||
if(unload)
|
||||
return HRTIMER_NORESTART;
|
||||
|
||||
hrtimer_forward(&dev->timer_inq, timer_inq->_softexpires, ktime_set(0, SKYPOPEN_SLEEP * 1000000));
|
||||
wake_up_interruptible(&dev->inq);
|
||||
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
static enum hrtimer_restart my_hrtimer_callback_outq( struct hrtimer *timer_outq )
|
||||
{
|
||||
struct skypopen_dev *dev = container_of(timer_outq, struct skypopen_dev, timer_outq);
|
||||
|
||||
if(unload)
|
||||
return HRTIMER_NORESTART;
|
||||
|
||||
hrtimer_forward(&dev->timer_outq, timer_outq->_softexpires, ktime_set(0, SKYPOPEN_SLEEP * 1000000));
|
||||
wake_up_interruptible(&dev->outq);
|
||||
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
#else// CENTOS_5
|
||||
static int my_hrtimer_callback_inq( struct hrtimer *timer_inq )
|
||||
{
|
||||
struct skypopen_dev *dev = container_of(timer_inq, struct skypopen_dev, timer_inq);
|
||||
|
||||
if(unload)
|
||||
return HRTIMER_NORESTART;
|
||||
|
||||
hrtimer_forward(&dev->timer_inq, timer_inq->expires, ktime_set(0, SKYPOPEN_SLEEP * 1000000));
|
||||
wake_up_interruptible(&dev->inq);
|
||||
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
static int my_hrtimer_callback_outq( struct hrtimer *timer_outq )
|
||||
{
|
||||
struct skypopen_dev *dev = container_of(timer_outq, struct skypopen_dev, timer_outq);
|
||||
|
||||
if(unload)
|
||||
return HRTIMER_NORESTART;
|
||||
|
||||
hrtimer_forward(&dev->timer_outq, timer_outq->expires, ktime_set(0, SKYPOPEN_SLEEP * 1000000));
|
||||
wake_up_interruptible(&dev->outq);
|
||||
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
#endif// CENTOS_5
|
||||
#endif// WANT_HRTIMER
|
||||
|
||||
/* The clone-specific data structure includes a key field */
|
||||
|
||||
struct skypopen_listitem {
|
||||
struct skypopen_dev device;
|
||||
dev_t key;
|
||||
struct list_head list;
|
||||
|
||||
};
|
||||
|
||||
/* The list of devices, and a lock to protect it */
|
||||
static LIST_HEAD(skypopen_c_list);
|
||||
#ifdef WANT_DEFINE_SPINLOCK
|
||||
static DEFINE_SPINLOCK(skypopen_c_lock);
|
||||
#else // WANT_DEFINE_SPINLOCK
|
||||
static spinlock_t skypopen_c_lock = SPIN_LOCK_UNLOCKED;
|
||||
#endif // WANT_DEFINE_SPINLOCK
|
||||
|
||||
/* Look for a device or create one if missing */
|
||||
static struct skypopen_dev *skypopen_c_lookfor_device(dev_t key)
|
||||
{
|
||||
struct skypopen_listitem *lptr;
|
||||
#ifdef WANT_HRTIMER
|
||||
#endif// WANT_HRTIMER
|
||||
|
||||
list_for_each_entry(lptr, &skypopen_c_list, list) {
|
||||
if (lptr->key == key)
|
||||
return &(lptr->device);
|
||||
}
|
||||
|
||||
/* not found */
|
||||
lptr = kmalloc(sizeof(struct skypopen_listitem), GFP_KERNEL);
|
||||
if (!lptr)
|
||||
return NULL;
|
||||
|
||||
/* initialize the device */
|
||||
memset(lptr, 0, sizeof(struct skypopen_listitem));
|
||||
lptr->key = key;
|
||||
|
||||
init_waitqueue_head(&lptr->device.inq);
|
||||
init_waitqueue_head(&lptr->device.outq);
|
||||
|
||||
#ifndef WANT_HRTIMER
|
||||
setup_timer( &lptr->device.timer_inq, my_timer_callback_inq, (long int)lptr );
|
||||
setup_timer( &lptr->device.timer_outq, my_timer_callback_outq, (long int)lptr );
|
||||
printk( "Starting skypopen OSS driver read timer (%dms) skype client:(%d)\n", SKYPOPEN_SLEEP, current->tgid );
|
||||
mod_timer( &lptr->device.timer_inq, jiffies + msecs_to_jiffies(SKYPOPEN_SLEEP) );
|
||||
printk( "Starting skypopen OSS driver write timer (%dms) skype client:(%d)\n", SKYPOPEN_SLEEP, current->tgid );
|
||||
mod_timer( &lptr->device.timer_outq, jiffies + msecs_to_jiffies(SKYPOPEN_SLEEP) );
|
||||
#endif// WANT_HRTIMER
|
||||
|
||||
/* place it in the list */
|
||||
list_add(&lptr->list, &skypopen_c_list);
|
||||
|
||||
return &(lptr->device);
|
||||
}
|
||||
|
||||
/*
|
||||
* Open and close
|
||||
*/
|
||||
static int skypopen_c_open(struct inode *inode, struct file *filp)
|
||||
{
|
||||
struct skypopen_dev *dev;
|
||||
dev_t key;
|
||||
|
||||
key = current->tgid;
|
||||
|
||||
/* look for a skypopenc device in the list */
|
||||
spin_lock(&skypopen_c_lock);
|
||||
dev = skypopen_c_lookfor_device(key);
|
||||
if (dev){
|
||||
dev->opened++;
|
||||
}
|
||||
spin_unlock(&skypopen_c_lock);
|
||||
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
/* then, everything else is copied from the bare skypopen device */
|
||||
filp->private_data = dev;
|
||||
return 0; /* success */
|
||||
}
|
||||
|
||||
static int skypopen_c_release(struct inode *inode, struct file *filp)
|
||||
{
|
||||
dev_t key;
|
||||
struct skypopen_dev *dev = filp->private_data;
|
||||
int ret;
|
||||
|
||||
key = current->tgid;
|
||||
|
||||
spin_lock(&skypopen_c_lock);
|
||||
dev->opened--;
|
||||
spin_unlock(&skypopen_c_lock);
|
||||
|
||||
if(!dev->opened){
|
||||
#ifdef WANT_HRTIMER
|
||||
if(dev->timer_inq_started){
|
||||
ret = hrtimer_cancel( &dev->timer_inq );
|
||||
//printk( "Stopped skypopen OSS driver read HRtimer skype client:(%d) ret=%d\n", key, ret);
|
||||
dev->timer_inq_started=0;
|
||||
}
|
||||
if(dev->timer_outq_started){
|
||||
ret = hrtimer_cancel( &dev->timer_outq );
|
||||
//printk( "Stopped skypopen OSS driver write HRtimer skype client:(%d) ret=%d\n", key, ret);
|
||||
dev->timer_outq_started=0;
|
||||
}
|
||||
#endif// WANT_HRTIMER
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*************************************************************/
|
||||
|
||||
static ssize_t skypopen_read(struct file *filp, char __user *buf, size_t count,
|
||||
loff_t *f_pos)
|
||||
{
|
||||
DEFINE_WAIT(wait);
|
||||
struct skypopen_dev *dev = filp->private_data;
|
||||
dev_t key;
|
||||
|
||||
key = current->tgid;
|
||||
|
||||
if(unload)
|
||||
return -1;
|
||||
|
||||
#ifdef WANT_HRTIMER
|
||||
if(dev->timer_inq_started == 0){
|
||||
ktime_t ktime_inq;
|
||||
|
||||
ktime_inq = ktime_set( 0, SKYPOPEN_SLEEP * 1000000);
|
||||
hrtimer_init( &dev->timer_inq, CLOCK_MONOTONIC, HRTIMER_MODE_REL );
|
||||
dev->timer_inq.function = &my_hrtimer_callback_inq;
|
||||
hrtimer_start( &dev->timer_inq, ktime_inq, HRTIMER_MODE_REL );
|
||||
dev->timer_inq_started = 1;
|
||||
//printk( "Started skypopen OSS driver read HRtimer skype client:(%d) \n", key);
|
||||
}
|
||||
#endif// WANT_HRTIMER
|
||||
|
||||
//printk("READ\n");
|
||||
prepare_to_wait(&dev->inq, &wait, TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
finish_wait(&dev->inq, &wait);
|
||||
return count;
|
||||
}
|
||||
|
||||
static ssize_t skypopen_write(struct file *filp, const char __user *buf, size_t count,
|
||||
loff_t *f_pos)
|
||||
{
|
||||
DEFINE_WAIT(wait);
|
||||
struct skypopen_dev *dev = filp->private_data;
|
||||
dev_t key;
|
||||
|
||||
key = current->tgid;
|
||||
|
||||
if(unload)
|
||||
return -1;
|
||||
|
||||
#ifdef WANT_HRTIMER
|
||||
if(dev->timer_outq_started == 0){
|
||||
ktime_t ktime_outq;
|
||||
|
||||
ktime_outq = ktime_set( 0, SKYPOPEN_SLEEP * 1000000);
|
||||
hrtimer_init( &dev->timer_outq, CLOCK_MONOTONIC, HRTIMER_MODE_REL );
|
||||
dev->timer_outq.function = &my_hrtimer_callback_outq;
|
||||
hrtimer_start( &dev->timer_outq, ktime_outq, HRTIMER_MODE_REL );
|
||||
dev->timer_outq_started = 1;
|
||||
//printk( "Started skypopen OSS driver write HRtimer skype client:(%d) \n", key);
|
||||
}
|
||||
#endif// WANT_HRTIMER
|
||||
|
||||
//printk("WRITE\n");
|
||||
prepare_to_wait(&dev->outq, &wait, TASK_INTERRUPTIBLE);
|
||||
schedule();
|
||||
finish_wait(&dev->outq, &wait);
|
||||
return count;
|
||||
|
||||
}
|
||||
/*
|
||||
* The ioctl() implementation
|
||||
*/
|
||||
|
||||
#ifndef HAVE_UNLOCKED_IOCTL
|
||||
static int skypopen_ioctl(struct inode *inode, struct file *filp,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
void __user *argp = (void __user *)arg;
|
||||
int __user *p = argp;
|
||||
|
||||
switch (cmd) {
|
||||
case OSS_GETVERSION:
|
||||
return put_user(SOUND_VERSION, p);
|
||||
case SNDCTL_DSP_GETBLKSIZE:
|
||||
return put_user(SKYPOPEN_BLK, p);
|
||||
case SNDCTL_DSP_GETFMTS:
|
||||
return put_user(28731, p);
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
#else// HAVE_UNLOCKED_IOCTL
|
||||
static long skypopen_unlocked_ioctl(struct file *filp,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
void __user *argp = (void __user *)arg;
|
||||
int __user *p = argp;
|
||||
|
||||
switch (cmd) {
|
||||
case OSS_GETVERSION:
|
||||
return put_user(SOUND_VERSION, p);
|
||||
case SNDCTL_DSP_GETBLKSIZE:
|
||||
return put_user(SKYPOPEN_BLK, p);
|
||||
case SNDCTL_DSP_GETFMTS:
|
||||
return put_user(28731, p);
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
#endif// HAVE_UNLOCKED_IOCTL
|
||||
|
||||
struct file_operations skypopen_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.llseek = no_llseek,
|
||||
.read = skypopen_read,
|
||||
.write = skypopen_write,
|
||||
#ifndef HAVE_UNLOCKED_IOCTL
|
||||
.ioctl = skypopen_ioctl,
|
||||
#else// HAVE_UNLOCKED_IOCTL
|
||||
.unlocked_ioctl = skypopen_unlocked_ioctl,
|
||||
#endif// HAVE_UNLOCKED_IOCTL
|
||||
.open = skypopen_c_open,
|
||||
.release = skypopen_c_release,
|
||||
};
|
||||
|
||||
/*
|
||||
* Finally, the module stuff
|
||||
*/
|
||||
|
||||
/*
|
||||
* The cleanup function is used to handle initialization failures as well.
|
||||
* Thefore, it must be careful to work correctly even if some of the items
|
||||
* have not been initialized
|
||||
*/
|
||||
|
||||
void skypopen_cleanup_module(void)
|
||||
{
|
||||
int i;
|
||||
int ret;
|
||||
struct skypopen_listitem *lptr, *next;
|
||||
dev_t devno = MKDEV(skypopen_major, skypopen_minor);
|
||||
|
||||
|
||||
unload = 1;
|
||||
|
||||
msleep(100);
|
||||
|
||||
/* Get rid of our char dev entries */
|
||||
if (skypopen_devices) {
|
||||
for (i = 0; i < skypopen_nr_devs; i++) {
|
||||
cdev_del(&skypopen_devices[i].cdev);
|
||||
}
|
||||
kfree(skypopen_devices);
|
||||
}
|
||||
|
||||
/* And all the cloned devices */
|
||||
list_for_each_entry_safe(lptr, next, &skypopen_c_list, list) {
|
||||
#ifndef WANT_HRTIMER
|
||||
ret= del_timer( &lptr->device.timer_inq );
|
||||
printk( "Stopped skypopen OSS driver read timer\n");
|
||||
ret= del_timer( &lptr->device.timer_outq );
|
||||
printk( "Stopped skypopen OSS driver write timer\n");
|
||||
#else// WANT_HRTIMER
|
||||
if(lptr->device.timer_inq_started){
|
||||
ret = hrtimer_cancel( &lptr->device.timer_inq );
|
||||
printk( "Stopped skypopen OSS driver read HRtimer\n");
|
||||
}
|
||||
if(lptr->device.timer_outq_started){
|
||||
ret = hrtimer_cancel( &lptr->device.timer_outq );
|
||||
printk( "Stopped skypopen OSS driver write HRtimer\n");
|
||||
}
|
||||
|
||||
#endif// WANT_HRTIMER
|
||||
list_del(&lptr->list);
|
||||
kfree(lptr);
|
||||
}
|
||||
/* cleanup_module is never called if registering failed */
|
||||
unregister_chrdev_region(devno, skypopen_nr_devs);
|
||||
printk("skypopen OSS driver unloaded\n");
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set up the char_dev structure for this device.
|
||||
*/
|
||||
static void skypopen_setup_cdev(struct skypopen_dev *dev, int index)
|
||||
{
|
||||
int err, devno = MKDEV(skypopen_major, skypopen_minor + index);
|
||||
|
||||
cdev_init(&dev->cdev, &skypopen_fops);
|
||||
dev->cdev.owner = THIS_MODULE;
|
||||
dev->cdev.ops = &skypopen_fops;
|
||||
err = cdev_add (&dev->cdev, devno, 1);
|
||||
/* Fail gracefully if need be */
|
||||
if (err)
|
||||
printk(KERN_NOTICE "Error %d adding skypopen%d", err, index);
|
||||
}
|
||||
|
||||
|
||||
|
||||
int skypopen_init_module(void)
|
||||
{
|
||||
int result, i;
|
||||
dev_t dev = 0;
|
||||
|
||||
printk("skypopen OSS driver loading (www.freeswitch.org)\n");
|
||||
|
||||
/*
|
||||
* Get a range of minor numbers to work with, asking for a dynamic
|
||||
* major unless directed otherwise at load time.
|
||||
*/
|
||||
if (skypopen_major) {
|
||||
dev = MKDEV(skypopen_major, skypopen_minor);
|
||||
result = register_chrdev_region(dev, skypopen_nr_devs, "dsp");
|
||||
} else {
|
||||
result = alloc_chrdev_region(&dev, skypopen_minor, skypopen_nr_devs,
|
||||
"dsp");
|
||||
skypopen_major = MAJOR(dev);
|
||||
}
|
||||
if (result < 0) {
|
||||
printk(KERN_WARNING "skypopen OSS driver: can't get major %d\n", skypopen_major);
|
||||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* allocate the devices -- we can't have them static, as the number
|
||||
* can be specified at load time
|
||||
*/
|
||||
skypopen_devices = kmalloc(skypopen_nr_devs * sizeof(struct skypopen_dev), GFP_KERNEL);
|
||||
if (!skypopen_devices) {
|
||||
result = -ENOMEM;
|
||||
goto fail; /* Make this more graceful */
|
||||
}
|
||||
memset(skypopen_devices, 0, skypopen_nr_devs * sizeof(struct skypopen_dev));
|
||||
|
||||
/* Initialize each device. */
|
||||
for (i = 0; i < skypopen_nr_devs; i++) {
|
||||
skypopen_setup_cdev(&skypopen_devices[i], i);
|
||||
}
|
||||
|
||||
/* At this point call the init function for any friend device */
|
||||
dev = MKDEV(skypopen_major, skypopen_minor + skypopen_nr_devs);
|
||||
return 0; /* succeed */
|
||||
|
||||
fail:
|
||||
skypopen_cleanup_module();
|
||||
return result;
|
||||
}
|
||||
|
||||
module_init(skypopen_init_module);
|
||||
module_exit(skypopen_cleanup_module);
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* skypopen.h -- definitions for the char module
|
||||
*
|
||||
* Copyright (C) 2010 Giovanni Maruzzelli
|
||||
* Copyright (C) 2001 Alessandro Rubini and Jonathan Corbet
|
||||
* Copyright (C) 2001 O'Reilly & Associates
|
||||
*
|
||||
* The source code in this file can be freely used, adapted,
|
||||
* and redistributed in source or binary form, so long as an
|
||||
* acknowledgment appears in derived source files. The citation
|
||||
* should list that the code comes from the book "Linux Device
|
||||
* Drivers" by Alessandro Rubini and Jonathan Corbet, published
|
||||
* by O'Reilly & Associates. No warranty is attached;
|
||||
* we cannot take responsibility for errors or fitness for use.
|
||||
*
|
||||
* $Id: skypopen.h,v 1.15 2004/11/04 17:51:18 rubini Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SKYPOPEN_H_
|
||||
#define _SKYPOPEN_H_
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/ioctl.h> /* needed for the _IOW etc stuff used later */
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
|
||||
#include <asm/switch_to.h> /* cli(), *_flags */
|
||||
#else
|
||||
#include <asm/system.h> /* cli(), *_flags */
|
||||
#endif //LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0)
|
||||
|
||||
|
||||
#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 18)
|
||||
#define CENTOS_5
|
||||
#define WANT_HRTIMER /* undef this only if you don't want to use High Resolution Timers (why?) */
|
||||
#endif /* CentOS 5.x */
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
|
||||
#define WANT_HRTIMER
|
||||
#endif /* HRTIMER */
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)
|
||||
#define WANT_DEFINE_SPINLOCK
|
||||
#endif /* DEFINE_SPINLOCK */
|
||||
|
||||
#define SKYPOPEN_BLK 1920
|
||||
#define SKYPOPEN_SLEEP 20
|
||||
|
||||
|
||||
#define SKYPOPEN_MAJOR 14 /* dynamic major by default */
|
||||
#define SKYPOPEN_MINOR 3 /* dynamic major by default */
|
||||
#define SKYPOPEN_NR_DEVS 1 /* not useful, I'm too lazy to remove it */
|
||||
|
||||
#ifdef CENTOS_5
|
||||
#define HRTIMER_MODE_REL HRTIMER_REL
|
||||
#endif// CENTOS_5
|
||||
|
||||
struct skypopen_dev {
|
||||
struct cdev cdev; /* Char device structure */
|
||||
wait_queue_head_t inq; /* read and write queues */
|
||||
wait_queue_head_t outq; /* read and write queues */
|
||||
#ifndef WANT_HRTIMER
|
||||
struct timer_list timer_inq;
|
||||
struct timer_list timer_outq;
|
||||
#else// WANT_HRTIMER
|
||||
struct hrtimer timer_inq;
|
||||
struct hrtimer timer_outq;
|
||||
#endif// WANT_HRTIMER
|
||||
int timer_inq_started;
|
||||
int timer_outq_started;
|
||||
int opened;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* The different configurable parameters
|
||||
*/
|
||||
extern int skypopen_major; /* main.c */
|
||||
extern int skypopen_nr_devs;
|
||||
|
||||
#endif /* _SKYPOPEN_H_ */
|
||||
@@ -1,405 +0,0 @@
|
||||
/*
|
||||
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
* Copyright (C) 2005-2011, Anthony Minessale II <anthm@freeswitch.org>
|
||||
*
|
||||
* Version: MPL 1.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Anthony Minessale II <anthm@freeswitch.org>
|
||||
* Portions created by the Initial Developer are Copyright (C)
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* This module (mod_gsmopen) has been contributed by:
|
||||
*
|
||||
* Giovanni Maruzzelli <gmaruzz@gmail.com>
|
||||
*
|
||||
* Maintainer: Giovanni Maruzzelli <gmaruzz@gmail.com>
|
||||
*
|
||||
* mod_skypopen.c -- Skype compatible Endpoint Module
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/time.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xlibint.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
#define XIO_ERROR_BY_SETJMP
|
||||
//#define XIO_ERROR_BY_UCONTEXT
|
||||
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
#ifdef XIO_ERROR_BY_SETJMP
|
||||
#include "setjmp.h"
|
||||
#endif
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
#ifdef XIO_ERROR_BY_UCONTEXT
|
||||
#include "ucontext.h"
|
||||
#endif
|
||||
|
||||
#endif //WIN32
|
||||
|
||||
#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
|
||||
#include <spandsp.h>
|
||||
#include <spandsp/version.h>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <netinet/tcp.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
//Windows macro for FD_SET includes a warning C4127: conditional expression is constant
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4127)
|
||||
#endif
|
||||
|
||||
#define MY_EVENT_INCOMING_CHATMESSAGE "skypopen::incoming_chatmessage"
|
||||
#define MY_EVENT_INCOMING_RAW "skypopen::incoming_raw"
|
||||
|
||||
#define SAMPLERATE_SKYPOPEN 16000
|
||||
#define MS_SKYPOPEN 20
|
||||
#define SAMPLES_PER_FRAME (SAMPLERATE_SKYPOPEN/(1000/MS_SKYPOPEN))
|
||||
#define BYTES_PER_FRAME (SAMPLES_PER_FRAME * sizeof(short))
|
||||
|
||||
#ifndef SKYPOPEN_SVN_VERSION
|
||||
#define SKYPOPEN_SVN_VERSION switch_version_full()
|
||||
#endif /* SKYPOPEN_SVN_VERSION */
|
||||
|
||||
typedef enum {
|
||||
TFLAG_IO = (1 << 0),
|
||||
TFLAG_INBOUND = (1 << 1),
|
||||
TFLAG_OUTBOUND = (1 << 2),
|
||||
TFLAG_DTMF = (1 << 3),
|
||||
TFLAG_VOICE = (1 << 4),
|
||||
TFLAG_HANGUP = (1 << 5),
|
||||
TFLAG_LINEAR = (1 << 6),
|
||||
TFLAG_PROGRESS = (1 << 7),
|
||||
TFLAG_BREAK = (1 << 8)
|
||||
} TFLAGS;
|
||||
|
||||
typedef enum {
|
||||
GFLAG_MY_CODEC_PREFS = (1 << 0)
|
||||
} GFLAGS;
|
||||
|
||||
#define DEBUGA_SKYPE(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%-*s [%s ] [DEBUG_SKYPE %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
#define DEBUGA_CALL(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%-*s [%s ] [DEBUG_CALL %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
#define DEBUGA_PBX(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%-*s [%s ] [DEBUG_PBX %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
#define ERRORA(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%-*s [%s ] [ERRORA %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
#define WARNINGA(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "%-*s[%s ] [WARNINGA %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
#define NOTICA(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "%-*s [%s ] [NOTICA %-5d][%-15s][%s,%s] " __VA_ARGS__ );
|
||||
|
||||
#define SKYPOPEN_P_LOG (int)((20 - (strlen(__FILE__))) + ((__LINE__ - 1000) < 0) + ((__LINE__ - 100) < 0)), " ", SKYPOPEN_SVN_VERSION, __LINE__, tech_pvt ? tech_pvt->name ? tech_pvt->name : "none" : "none", tech_pvt ? interface_status[tech_pvt->interface_state] : "N/A", tech_pvt ? skype_callflow[tech_pvt->skype_callflow] : "N/A"
|
||||
|
||||
/*********************************/
|
||||
#define SKYPOPEN_CAUSE_NORMAL 1
|
||||
/*********************************/
|
||||
#define SKYPOPEN_FRAME_DTMF 1
|
||||
/*********************************/
|
||||
#define SKYPOPEN_CONTROL_RINGING 1
|
||||
#define SKYPOPEN_CONTROL_ANSWER 2
|
||||
|
||||
/*********************************/
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
#define SKYPOPEN_RINGING_INIT 0
|
||||
#define SKYPOPEN_RINGING_PRE 1
|
||||
|
||||
/*********************************/
|
||||
#define SKYPOPEN_STATE_IDLE 0
|
||||
#define SKYPOPEN_STATE_DOWN 1
|
||||
#define SKYPOPEN_STATE_RING 2
|
||||
#define SKYPOPEN_STATE_DIALING 3
|
||||
#define SKYPOPEN_STATE_BUSY 4
|
||||
#define SKYPOPEN_STATE_UP 5
|
||||
#define SKYPOPEN_STATE_RINGING 6
|
||||
#define SKYPOPEN_STATE_PRERING 7
|
||||
#define SKYPOPEN_STATE_ERROR_DOUBLE_CALL 8
|
||||
#define SKYPOPEN_STATE_SELECTED 9
|
||||
#define SKYPOPEN_STATE_HANGUP_REQUESTED 10
|
||||
#define SKYPOPEN_STATE_PREANSWER 11
|
||||
#define SKYPOPEN_STATE_DEAD 12
|
||||
/*********************************/
|
||||
/* call flow from the device */
|
||||
#define CALLFLOW_CALL_IDLE 0
|
||||
#define CALLFLOW_CALL_DOWN 1
|
||||
#define CALLFLOW_INCOMING_RING 2
|
||||
#define CALLFLOW_CALL_DIALING 3
|
||||
#define CALLFLOW_CALL_LINEBUSY 4
|
||||
#define CALLFLOW_CALL_ACTIVE 5
|
||||
#define CALLFLOW_INCOMING_HANGUP 6
|
||||
#define CALLFLOW_CALL_RELEASED 7
|
||||
#define CALLFLOW_CALL_NOCARRIER 8
|
||||
#define CALLFLOW_CALL_INFLUX 9
|
||||
#define CALLFLOW_CALL_INCOMING 10
|
||||
#define CALLFLOW_CALL_FAILED 11
|
||||
#define CALLFLOW_CALL_NOSERVICE 12
|
||||
#define CALLFLOW_CALL_OUTGOINGRESTRICTED 13
|
||||
#define CALLFLOW_CALL_SECURITYFAIL 14
|
||||
#define CALLFLOW_CALL_NOANSWER 15
|
||||
#define CALLFLOW_STATUS_FINISHED 16
|
||||
#define CALLFLOW_STATUS_CANCELLED 17
|
||||
#define CALLFLOW_STATUS_FAILED 18
|
||||
#define CALLFLOW_STATUS_REFUSED 19
|
||||
#define CALLFLOW_STATUS_RINGING 20
|
||||
#define CALLFLOW_STATUS_INPROGRESS 21
|
||||
#define CALLFLOW_STATUS_UNPLACED 22
|
||||
#define CALLFLOW_STATUS_ROUTING 23
|
||||
#define CALLFLOW_STATUS_EARLYMEDIA 24
|
||||
#define CALLFLOW_INCOMING_CALLID 25
|
||||
#define CALLFLOW_STATUS_REMOTEHOLD 26
|
||||
|
||||
/*********************************/
|
||||
|
||||
#define SKYPOPEN_MAX_INTERFACES 64
|
||||
|
||||
#ifndef WIN32
|
||||
struct SkypopenHandles {
|
||||
Window skype_win;
|
||||
Display *disp;
|
||||
Window win;
|
||||
int currentuserhandle;
|
||||
int api_connected;
|
||||
int fdesc[2];
|
||||
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
#ifdef XIO_ERROR_BY_SETJMP
|
||||
jmp_buf ioerror_context;
|
||||
#endif
|
||||
#ifdef XIO_ERROR_BY_UCONTEXT
|
||||
ucontext_t ioerror_context;
|
||||
#endif
|
||||
|
||||
// CLOUDTREE (Thomas Hazel) - is there a capable freeswitch list?
|
||||
switch_bool_t managed;
|
||||
void *prev;
|
||||
void *next;
|
||||
};
|
||||
|
||||
// CLOUDTREE (Thomas Hazel) - is there a capable freeswitch list?
|
||||
struct SkypopenList {
|
||||
int entries;
|
||||
void *head;
|
||||
void *tail;
|
||||
};
|
||||
|
||||
// CLOUDTREE (Thomas Hazel) - is there a capable freeswitch list?
|
||||
struct SkypopenHandles *skypopen_list_add(struct SkypopenList *list, struct SkypopenHandles *x);
|
||||
struct SkypopenHandles *skypopen_list_find(struct SkypopenList *list, struct SkypopenHandles *x);
|
||||
struct SkypopenHandles *skypopen_list_remove_by_value(struct SkypopenList *list, Display * display);
|
||||
struct SkypopenHandles *skypopen_list_remove_by_reference(struct SkypopenList *list, struct SkypopenHandles *x);
|
||||
int skypopen_list_size(struct SkypopenList *list);
|
||||
|
||||
#else //WIN32
|
||||
|
||||
struct SkypopenHandles {
|
||||
HWND win32_hInit_MainWindowHandle;
|
||||
HWND win32_hGlobal_SkypeAPIWindowHandle;
|
||||
HINSTANCE win32_hInit_ProcessHandle;
|
||||
char win32_acInit_WindowClassName[128];
|
||||
UINT win32_uiGlobal_MsgID_SkypeControlAPIAttach;
|
||||
UINT win32_uiGlobal_MsgID_SkypeControlAPIDiscover;
|
||||
int currentuserhandle;
|
||||
int api_connected;
|
||||
switch_file_t *fdesc[2];
|
||||
};
|
||||
#endif //WIN32
|
||||
|
||||
#define MAX_CHATS 10
|
||||
|
||||
struct chat {
|
||||
char chatname[256];
|
||||
char dialog_partner[256];
|
||||
};
|
||||
typedef struct chat chat_t;
|
||||
|
||||
#define MAX_CHATMESSAGES 10
|
||||
|
||||
struct chatmessage {
|
||||
char id[256];
|
||||
char type[256];
|
||||
char chatname[256];
|
||||
char from_handle[256];
|
||||
char from_dispname[256];
|
||||
char body[512];
|
||||
};
|
||||
typedef struct chatmessage chatmessage_t;
|
||||
struct private_object {
|
||||
unsigned int flags;
|
||||
switch_codec_t read_codec;
|
||||
switch_codec_t write_codec;
|
||||
switch_frame_t read_frame;
|
||||
unsigned char databuf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
char session_uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1];
|
||||
switch_caller_profile_t *caller_profile;
|
||||
switch_mutex_t *mutex;
|
||||
switch_mutex_t *flag_mutex;
|
||||
|
||||
char interface_id[80];
|
||||
char name[80];
|
||||
char dialplan[80];
|
||||
char context[80];
|
||||
char dial_regex[256];
|
||||
char fail_dial_regex[256];
|
||||
char hold_music[256];
|
||||
char type[256];
|
||||
char X11_display[256];
|
||||
#ifdef WIN32
|
||||
unsigned short tcp_cli_port;
|
||||
unsigned short tcp_srv_port;
|
||||
#else
|
||||
int tcp_cli_port;
|
||||
int tcp_srv_port;
|
||||
#endif
|
||||
struct SkypopenHandles SkypopenHandles;
|
||||
|
||||
// CLOUDTREE (Thomas Hazel)
|
||||
char ringing_state;
|
||||
|
||||
int interface_state;
|
||||
char language[80];
|
||||
char exten[80];
|
||||
int skypopen_sound_rate;
|
||||
char callid_name[50];
|
||||
char callid_number[50];
|
||||
double playback_boost;
|
||||
double capture_boost;
|
||||
int stripmsd;
|
||||
char skype_call_id[512];
|
||||
int skype_call_ongoing;
|
||||
char skype_friends[4096];
|
||||
char skype_fullname[512];
|
||||
char skype_displayname[512];
|
||||
int skype_callflow;
|
||||
int skype;
|
||||
int control_to_send;
|
||||
#ifdef WIN32
|
||||
switch_file_t *audiopipe_srv[2];
|
||||
switch_file_t *audiopipe_cli[2];
|
||||
switch_file_t *skypopen_sound_capt_fd;
|
||||
#else /* WIN32 */
|
||||
int audiopipe_srv[2];
|
||||
int audiopipe_cli[2];
|
||||
int skypopen_sound_capt_fd;
|
||||
#endif /* WIN32 */
|
||||
switch_thread_t *tcp_srv_thread;
|
||||
switch_thread_t *tcp_cli_thread;
|
||||
switch_thread_t *skypopen_signaling_thread;
|
||||
switch_thread_t *skypopen_api_thread;
|
||||
short audiobuf[SAMPLES_PER_FRAME];
|
||||
int audiobuf_is_loaded;
|
||||
short audiobuf_cli[SAMPLES_PER_FRAME];
|
||||
switch_mutex_t *mutex_audio_cli;
|
||||
int flag_audio_cli;
|
||||
short audiobuf_srv[SAMPLES_PER_FRAME];
|
||||
switch_mutex_t *mutex_audio_srv;
|
||||
int flag_audio_srv;
|
||||
switch_mutex_t *mutex_thread_audio_cli;
|
||||
switch_mutex_t *mutex_thread_audio_srv;
|
||||
|
||||
FILE *phonebook_writing_fp;
|
||||
int skypopen_dir_entry_extension_prefix;
|
||||
char skype_user[256];
|
||||
char initial_skype_user[256];
|
||||
char skype_password[256];
|
||||
char destination[256];
|
||||
struct timeval answer_time;
|
||||
struct timeval ring_time;
|
||||
|
||||
struct timeval transfer_time;
|
||||
char transfer_callid_number[50];
|
||||
char skype_transfer_call_id[512];
|
||||
int running;
|
||||
uint32_t ib_calls;
|
||||
uint32_t ob_calls;
|
||||
uint32_t ib_failed_calls;
|
||||
uint32_t ob_failed_calls;
|
||||
|
||||
chatmessage_t chatmessages[MAX_CHATMESSAGES];
|
||||
chat_t chats[MAX_CHATS];
|
||||
uint32_t report_incoming_chatmessages;
|
||||
switch_timer_t timer_read;
|
||||
switch_timer_t timer_read_srv;
|
||||
switch_timer_t timer_write;
|
||||
int begin_to_write;
|
||||
int begin_to_read;
|
||||
dtmf_rx_state_t dtmf_state;
|
||||
switch_time_t old_dtmf_timestamp;
|
||||
switch_buffer_t *write_buffer;
|
||||
switch_buffer_t *read_buffer;
|
||||
int silent_mode;
|
||||
int write_silence_when_idle;
|
||||
int setsockopt;
|
||||
char answer_id[256];
|
||||
char answer_value[256];
|
||||
char ring_id[256];
|
||||
char ring_value[256];
|
||||
|
||||
char message[4096];
|
||||
char skype_voicemail_id[512];
|
||||
char skype_voicemail_id_greeting[512];
|
||||
};
|
||||
|
||||
typedef struct private_object private_t;
|
||||
|
||||
void *SWITCH_THREAD_FUNC skypopen_api_thread_func(switch_thread_t *thread, void *obj);
|
||||
int skypopen_audio_read(private_t *tech_pvt);
|
||||
int skypopen_audio_init(private_t *tech_pvt);
|
||||
int skypopen_signaling_write(private_t *tech_pvt, char *msg_to_skype);
|
||||
int skypopen_signaling_read(private_t *tech_pvt);
|
||||
|
||||
int skypopen_call(private_t *tech_pvt, char *idest, int timeout);
|
||||
int skypopen_senddigit(private_t *tech_pvt, char digit);
|
||||
|
||||
void *skypopen_do_tcp_srv_thread_func(void *obj);
|
||||
void *SWITCH_THREAD_FUNC skypopen_do_tcp_srv_thread(switch_thread_t *thread, void *obj);
|
||||
|
||||
void *skypopen_do_tcp_cli_thread_func(void *obj);
|
||||
void *SWITCH_THREAD_FUNC skypopen_do_tcp_cli_thread(switch_thread_t *thread, void *obj);
|
||||
|
||||
void *skypopen_do_skypeapi_thread_func(void *obj);
|
||||
void *SWITCH_THREAD_FUNC skypopen_do_skypeapi_thread(switch_thread_t *thread, void *obj);
|
||||
int dtmf_received(private_t *tech_pvt, char *value);
|
||||
int start_audio_threads(private_t *tech_pvt);
|
||||
int new_inbound_channel(private_t *tech_pvt);
|
||||
int outbound_channel_answered(private_t *tech_pvt);
|
||||
int skypopen_signaling_write(private_t *tech_pvt, char *msg_to_skype);
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
int skypopen_pipe_read(switch_file_t *pipe, short *buf, int howmany);
|
||||
int skypopen_pipe_write(switch_file_t *pipe, short *buf, int howmany);
|
||||
/* Visual C do not have strsep ? */
|
||||
char *strsep(char **stringp, const char *delim);
|
||||
#else
|
||||
int skypopen_pipe_read(int pipe, short *buf, int howmany);
|
||||
int skypopen_pipe_write(int pipe, short *buf, int howmany);
|
||||
#endif /* WIN32 */
|
||||
int skypopen_close_socket(unsigned int fd);
|
||||
private_t *find_available_skypopen_interface_rr(private_t *tech_pvt_calling);
|
||||
int remote_party_is_ringing(private_t *tech_pvt);
|
||||
int remote_party_is_early_media(private_t *tech_pvt);
|
||||
int skypopen_answer(private_t *tech_pvt);
|
||||
int skypopen_transfer(private_t *tech_pvt);
|
||||
#ifndef WIN32
|
||||
int skypopen_socket_create_and_bind(private_t *tech_pvt, int *which_port);
|
||||
#else
|
||||
int skypopen_socket_create_and_bind(private_t *tech_pvt, unsigned short *which_port);
|
||||
#endif //WIN32
|
||||
int incoming_chatmessage(private_t *tech_pvt, int which);
|
||||
int next_port(void);
|
||||
int skypopen_partner_handle_ring(private_t *tech_pvt);
|
||||
int skypopen_answered(private_t *tech_pvt);
|
||||
int inbound_channel_answered(private_t *tech_pvt);
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user