提交 6bd34fb9 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

skypiax: lot of changes to allow for the usage of multiple instances of the same…

skypiax: lot of changes to allow for the usage of multiple instances of the same skype username, eg: 10 instances of skypename 'Bob' and 10 instances of skypename 'alice'. Horrible hacks for deciding which instance answer an incoming call, which busy instance will transfer to another and when, etc... ;-) Let's hope it does not breaks havoc...

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14340 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 92523206
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <switch.h> #include <switch.h>
#include <switch_version.h> #include <switch_version.h>
#include <sys/time.h>
#ifndef WIN32 #ifndef WIN32
#include <X11/Xlib.h> #include <X11/Xlib.h>
...@@ -232,7 +233,11 @@ struct private_object { ...@@ -232,7 +233,11 @@ struct private_object {
char skype_user[256]; char skype_user[256];
char skype_password[256]; char skype_password[256];
char destination[256]; char destination[256];
struct timeval answer_time;
struct timeval transfer_time;
char transfer_callid_number[50];
char skype_transfer_call_id[512];
}; };
typedef struct private_object private_t; typedef struct private_object private_t;
...@@ -270,6 +275,8 @@ int skypiax_pipe_read(int pipe, short *buf, int howmany); ...@@ -270,6 +275,8 @@ int skypiax_pipe_read(int pipe, short *buf, int howmany);
int skypiax_pipe_write(int pipe, short *buf, int howmany); int skypiax_pipe_write(int pipe, short *buf, int howmany);
#endif /* WIN32 */ #endif /* WIN32 */
int skypiax_close_socket(unsigned int fd); int skypiax_close_socket(unsigned int fd);
private_t *find_available_skypiax_interface(void); private_t *find_available_skypiax_interface(private_t * tech_pvt);
int remote_party_is_ringing(private_t * tech_pvt); int remote_party_is_ringing(private_t * tech_pvt);
int remote_party_is_early_media(private_t * tech_pvt); int remote_party_is_early_media(private_t * tech_pvt);
int skypiax_answer(private_t * tech_pvt, char *id, char *value);
int skypiax_transfer(private_t * tech_pvt, char *id, char *value);
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论