Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f04322e9
提交
f04322e9
authored
10月 25, 2010
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skypopen: CLOUDTREE patch with some modifications
上级
7fce3995
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
400 行增加
和
41 行删除
+400
-41
mod_skypopen.c
src/mod/endpoints/mod_skypopen/mod_skypopen.c
+208
-15
skypopen.h
src/mod/endpoints/mod_skypopen/skypopen.h
+52
-0
skypopen_protocol.c
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
+140
-26
没有找到文件。
src/mod/endpoints/mod_skypopen/mod_skypopen.c
浏览文件 @
f04322e9
差异被折叠。
点击展开。
src/mod/endpoints/mod_skypopen/skypopen.h
浏览文件 @
f04322e9
...
@@ -41,6 +41,20 @@
...
@@ -41,6 +41,20 @@
#include <X11/Xlib.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xlibint.h>
#include <X11/Xatom.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
#endif //WIN32
#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
#define SPANDSP_EXPOSE_INTERNAL_STRUCTURES
...
@@ -58,6 +72,7 @@
...
@@ -58,6 +72,7 @@
#endif
#endif
#define MY_EVENT_INCOMING_CHATMESSAGE "skypopen::incoming_chatmessage"
#define MY_EVENT_INCOMING_CHATMESSAGE "skypopen::incoming_chatmessage"
#define MY_EVENT_INCOMING_RAW "skypopen::incoming_raw"
#define SAMPLERATE_SKYPOPEN 16000
#define SAMPLERATE_SKYPOPEN 16000
#define SAMPLES_PER_FRAME SAMPLERATE_SKYPOPEN/50
#define SAMPLES_PER_FRAME SAMPLERATE_SKYPOPEN/50
...
@@ -99,6 +114,11 @@ typedef enum {
...
@@ -99,6 +114,11 @@ typedef enum {
#define SKYPOPEN_CONTROL_RINGING 1
#define SKYPOPEN_CONTROL_RINGING 1
#define SKYPOPEN_CONTROL_ANSWER 2
#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_IDLE 0
#define SKYPOPEN_STATE_DOWN 1
#define SKYPOPEN_STATE_DOWN 1
...
@@ -154,7 +174,35 @@ struct SkypopenHandles {
...
@@ -154,7 +174,35 @@ struct SkypopenHandles {
int
currentuserhandle
;
int
currentuserhandle
;
int
api_connected
;
int
api_connected
;
int
fdesc
[
2
];
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
#else //WIN32
struct
SkypopenHandles
{
struct
SkypopenHandles
{
...
@@ -218,6 +266,9 @@ struct private_object {
...
@@ -218,6 +266,9 @@ struct private_object {
#endif
#endif
struct
SkypopenHandles
SkypopenHandles
;
struct
SkypopenHandles
SkypopenHandles
;
// CLOUDTREE (Thomas Hazel)
char
ringing_state
;
int
interface_state
;
int
interface_state
;
char
language
[
80
];
char
language
[
80
];
char
exten
[
80
];
char
exten
[
80
];
...
@@ -294,6 +345,7 @@ struct private_object {
...
@@ -294,6 +345,7 @@ struct private_object {
char
ring_id
[
256
];
char
ring_id
[
256
];
char
ring_value
[
256
];
char
ring_value
[
256
];
char
message
[
4096
];
};
};
typedef
struct
private_object
private_t
;
typedef
struct
private_object
private_t
;
...
...
src/mod/endpoints/mod_skypopen/skypopen_protocol.c
浏览文件 @
f04322e9
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论