Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
7d7f23ce
提交
7d7f23ce
authored
10月 26, 2010
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skypopen: indented
上级
994cdbd1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
523 行增加
和
506 行删除
+523
-506
mod_skypopen.c
src/mod/endpoints/mod_skypopen/mod_skypopen.c
+295
-280
skypopen.h
src/mod/endpoints/mod_skypopen/skypopen.h
+45
-45
skypopen_protocol.c
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
+183
-181
没有找到文件。
src/mod/endpoints/mod_skypopen/mod_skypopen.c
浏览文件 @
7d7f23ce
差异被折叠。
点击展开。
src/mod/endpoints/mod_skypopen/skypopen.h
浏览文件 @
7d7f23ce
...
...
@@ -48,11 +48,11 @@
// CLOUDTREE (Thomas Hazel)
#ifdef XIO_ERROR_BY_SETJMP
#include "setjmp.h"
#include "setjmp.h"
#endif
// CLOUDTREE (Thomas Hazel)
#ifdef XIO_ERROR_BY_UCONTEXT
#include "ucontext.h"
#include "ucontext.h"
#endif
#endif //WIN32
...
...
@@ -176,32 +176,32 @@ struct SkypopenHandles {
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
#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
;
void
*
prev
;
void
*
next
;
};
// CLOUDTREE (Thomas Hazel) - is there a capable freeswitch list?
struct
SkypopenList
{
int
entries
;
void
*
head
;
void
*
tail
;
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
);
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
...
...
@@ -352,31 +352,31 @@ struct private_object {
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
);
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
);
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
*
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
*
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
);
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
);
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
...
...
@@ -384,20 +384,20 @@ 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
);
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, char *id, char *value);
int
skypopen_answer
(
private_t
*
tech_pvt
);
int
skypopen_answer
(
private_t
*
tech_pvt
);
//int skypopen_transfer(private_t * tech_pvt, char *id, char *value);
int
skypopen_transfer
(
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
);
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
);
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
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
);
int
skypopen_partner_handle_ring
(
private_t
*
tech_pvt
);
int
skypopen_answered
(
private_t
*
tech_pvt
);
int
inbound_channel_answered
(
private_t
*
tech_pvt
);
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
浏览文件 @
7d7f23ce
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论