Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
ff08ea68
提交
ff08ea68
authored
5月 12, 2011
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: reindent using vim's =G
上级
5f6c469e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
1866 行增加
和
1877 行删除
+1866
-1877
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+263
-263
mod_skinny.h
src/mod/endpoints/mod_skinny/mod_skinny.h
+60
-60
skinny_api.c
src/mod/endpoints/mod_skinny/skinny_api.c
+382
-382
skinny_protocol.c
src/mod/endpoints/mod_skinny/skinny_protocol.c
+199
-199
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+350
-350
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+343
-354
skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.c
+151
-151
skinny_tables.h
src/mod/endpoints/mod_skinny/skinny_tables.h
+118
-118
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/mod_skinny.h
浏览文件 @
ff08ea68
...
...
@@ -48,66 +48,66 @@
#define SKINNY_EVENT_DEVICE_TO_USER "skinny::device_to_user"
struct
skinny_globals
{
int
running
;
switch_memory_pool_t
*
pool
;
switch_mutex_t
*
mutex
;
switch_hash_t
*
profile_hash
;
switch_event_node_t
*
user_to_device_node
;
switch_event_node_t
*
call_state_node
;
switch_event_node_t
*
message_waiting_node
;
switch_event_node_t
*
trap_node
;
int
auto_restart
;
int
running
;
switch_memory_pool_t
*
pool
;
switch_mutex_t
*
mutex
;
switch_hash_t
*
profile_hash
;
switch_event_node_t
*
user_to_device_node
;
switch_event_node_t
*
call_state_node
;
switch_event_node_t
*
message_waiting_node
;
switch_event_node_t
*
trap_node
;
int
auto_restart
;
};
typedef
struct
skinny_globals
skinny_globals_t
;
extern
skinny_globals_t
globals
;
typedef
enum
{
PFLAG_LISTENER_READY
=
(
1
<<
0
),
PFLAG_SHOULD_RESPAWN
=
(
1
<<
1
),
PFLAG_RESPAWN
=
(
1
<<
2
),
PFLAG_LISTENER_READY
=
(
1
<<
0
),
PFLAG_SHOULD_RESPAWN
=
(
1
<<
1
),
PFLAG_RESPAWN
=
(
1
<<
2
),
}
profile_flag_t
;
struct
skinny_profile
{
/* prefs */
char
*
name
;
char
*
domain
;
char
*
ip
;
unsigned
int
port
;
char
*
dialplan
;
char
*
context
;
char
*
patterns_dialplan
;
char
*
patterns_context
;
uint32_t
keep_alive
;
char
date_format
[
6
];
int
debug
;
/* prefs */
char
*
name
;
char
*
domain
;
char
*
ip
;
unsigned
int
port
;
char
*
dialplan
;
char
*
context
;
char
*
patterns_dialplan
;
char
*
patterns_context
;
uint32_t
keep_alive
;
char
date_format
[
6
];
int
debug
;
int
auto_restart
;
switch_hash_t
*
soft_key_set_sets_hash
;
switch_hash_t
*
device_type_params_hash
;
/* db */
char
*
dbname
;
char
*
odbc_dsn
;
char
*
odbc_user
;
char
*
odbc_pass
;
switch_odbc_handle_t
*
master_odbc
;
switch_mutex_t
*
sql_mutex
;
/* stats */
uint32_t
ib_calls
;
uint32_t
ob_calls
;
uint32_t
ib_failed_calls
;
uint32_t
ob_failed_calls
;
/* listener */
int
listener_threads
;
switch_mutex_t
*
listener_mutex
;
switch_socket_t
*
sock
;
switch_mutex_t
*
sock_mutex
;
struct
listener
*
listeners
;
int
flags
;
switch_mutex_t
*
flag_mutex
;
/* call id */
uint32_t
next_call_id
;
/* others */
switch_memory_pool_t
*
pool
;
switch_hash_t
*
soft_key_set_sets_hash
;
switch_hash_t
*
device_type_params_hash
;
/* db */
char
*
dbname
;
char
*
odbc_dsn
;
char
*
odbc_user
;
char
*
odbc_pass
;
switch_odbc_handle_t
*
master_odbc
;
switch_mutex_t
*
sql_mutex
;
/* stats */
uint32_t
ib_calls
;
uint32_t
ob_calls
;
uint32_t
ib_failed_calls
;
uint32_t
ob_failed_calls
;
/* listener */
int
listener_threads
;
switch_mutex_t
*
listener_mutex
;
switch_socket_t
*
sock
;
switch_mutex_t
*
sock_mutex
;
struct
listener
*
listeners
;
int
flags
;
switch_mutex_t
*
flag_mutex
;
/* call id */
uint32_t
next_call_id
;
/* others */
switch_memory_pool_t
*
pool
;
};
typedef
struct
skinny_profile
skinny_profile_t
;
...
...
@@ -127,7 +127,7 @@ typedef enum {
/*****************************************************************************/
typedef
enum
{
LFLAG_RUNNING
=
(
1
<<
0
),
LFLAG_RUNNING
=
(
1
<<
0
),
}
listener_flag_t
;
#define SKINNY_MAX_LINES 42
...
...
@@ -161,15 +161,15 @@ typedef switch_status_t (*skinny_listener_callback_func_t) (listener_t *listener
/* CHANNEL TYPES */
/*****************************************************************************/
typedef
enum
{
TFLAG_FORCE_ROUTE
=
(
1
<<
0
),
TFLAG_EARLY_MEDIA
=
(
1
<<
1
),
TFLAG_IO
=
(
1
<<
2
),
TFLAG_READING
=
(
1
<<
3
),
TFLAG_WRITING
=
(
1
<<
4
)
TFLAG_FORCE_ROUTE
=
(
1
<<
0
),
TFLAG_EARLY_MEDIA
=
(
1
<<
1
),
TFLAG_IO
=
(
1
<<
2
),
TFLAG_READING
=
(
1
<<
3
),
TFLAG_WRITING
=
(
1
<<
4
)
}
TFLAGS
;
typedef
enum
{
GFLAG_MY_CODEC_PREFS
=
(
1
<<
0
)
GFLAG_MY_CODEC_PREFS
=
(
1
<<
0
)
}
GFLAGS
;
struct
private_object
{
...
...
@@ -236,7 +236,7 @@ void profile_walk_listeners(skinny_profile_t *profile, skinny_listener_callback_
switch_cache_db_handle_t
*
skinny_get_db_handle
(
skinny_profile_t
*
profile
);
switch_status_t
skinny_execute_sql
(
skinny_profile_t
*
profile
,
char
*
sql
,
switch_mutex_t
*
mutex
);
switch_bool_t
skinny_execute_sql_callback
(
skinny_profile_t
*
profile
,
switch_mutex_t
*
mutex
,
char
*
sql
,
switch_core_db_callback_func_t
callback
,
void
*
pdata
);
switch_mutex_t
*
mutex
,
char
*
sql
,
switch_core_db_callback_func_t
callback
,
void
*
pdata
);
/*****************************************************************************/
/* LISTENER FUNCTIONS */
...
...
@@ -261,8 +261,8 @@ switch_status_t channel_on_routing(switch_core_session_t *session);
switch_status_t
channel_on_exchange_media
(
switch_core_session_t
*
session
);
switch_status_t
channel_on_soft_execute
(
switch_core_session_t
*
session
);
switch_call_cause_t
channel_outgoing_channel
(
switch_core_session_t
*
session
,
switch_event_t
*
var_event
,
switch_caller_profile_t
*
outbound_profile
,
switch_core_session_t
**
new_session
,
switch_memory_pool_t
**
pool
,
switch_originate_flag_t
flags
,
switch_call_cause_t
*
cancel_cause
);
switch_caller_profile_t
*
outbound_profile
,
switch_core_session_t
**
new_session
,
switch_memory_pool_t
**
pool
,
switch_originate_flag_t
flags
,
switch_call_cause_t
*
cancel_cause
);
switch_status_t
channel_read_frame
(
switch_core_session_t
*
session
,
switch_frame_t
**
frame
,
switch_io_flag_t
flags
,
int
stream_id
);
switch_status_t
channel_write_frame
(
switch_core_session_t
*
session
,
switch_frame_t
*
frame
,
switch_io_flag_t
flags
,
int
stream_id
);
switch_status_t
channel_kill_channel
(
switch_core_session_t
*
session
,
int
sig
);
...
...
src/mod/endpoints/mod_skinny/skinny_api.c
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_protocol.c
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_server.c
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_tables.c
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_tables.h
浏览文件 @
ff08ea68
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论