Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
0bc11afa
提交
0bc11afa
authored
5月 13, 2010
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: split out server part
And try to keep each file below 2000 lines
上级
51f1ad50
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
1947 行增加
和
1840 行删除
+1947
-1840
Makefile.am
src/mod/endpoints/mod_skinny/Makefile.am
+1
-1
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+1
-0
skinny_protocol.c
src/mod/endpoints/mod_skinny/skinny_protocol.c
+0
-1826
skinny_protocol.h
src/mod/endpoints/mod_skinny/skinny_protocol.h
+4
-13
skinny_server.c
src/mod/endpoints/mod_skinny/skinny_server.c
+1877
-0
skinny_server.h
src/mod/endpoints/mod_skinny/skinny_server.h
+64
-0
没有找到文件。
src/mod/endpoints/mod_skinny/Makefile.am
浏览文件 @
0bc11afa
...
...
@@ -3,7 +3,7 @@ include $(top_srcdir)/build/modmake.rulesam
MODNAME
=
mod_skinny
mod_LTLIBRARIES
=
mod_skinny.la
mod_skinny_la_SOURCES
=
mod_skinny.c skinny_protocol.c skinny_tables.c skinny_api.c
mod_skinny_la_SOURCES
=
mod_skinny.c skinny_protocol.c skinny_tables.c skinny_api.c
skinny_server.c
mod_skinny_la_CFLAGS
=
$(AM_CFLAGS)
mod_skinny_la_LIBADD
=
$(switch_builddir)
/libfreeswitch.la
mod_skinny_la_LDFLAGS
=
-avoid-version
-module
-no-undefined
-shared
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
0bc11afa
...
...
@@ -32,6 +32,7 @@
#include <switch.h>
#include "mod_skinny.h"
#include "skinny_protocol.h"
#include "skinny_server.h"
#include "skinny_tables.h"
#include "skinny_labels.h"
#include "skinny_api.h"
...
...
src/mod/endpoints/mod_skinny/skinny_protocol.c
浏览文件 @
0bc11afa
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_protocol.h
浏览文件 @
0bc11afa
...
...
@@ -621,7 +621,7 @@ enum skinny_codecs {
SKINNY_CODEC_RFC2833_DYNPAYLOAD
=
257
};
typedef
switch_status_t
(
*
skinny_command_t
)
(
char
**
argv
,
int
argc
,
switch_stream_handle_t
*
stream
);
char
*
skinny_codec2string
(
enum
skinny_codecs
skinnycodec
);
/*****************************************************************************/
/* SKINNY FUNCTIONS */
...
...
@@ -638,22 +638,12 @@ switch_status_t skinny_read_packet(listener_t *listener, skinny_message_t **req)
switch_status_t
skinny_device_event
(
listener_t
*
listener
,
switch_event_t
**
ev
,
switch_event_types_t
event_id
,
const
char
*
subclass_name
);
switch_status_t
skinny_session_send_call_info
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_walk_lines
(
skinny_profile_t
*
profile
,
char
*
channel_uuid
,
switch_core_db_callback_func_t
callback
,
void
*
data
);
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
);
switch_status_t
skinny_create_ingoing_session
(
listener_t
*
listener
,
uint32_t
*
line_instance
,
switch_core_session_t
**
session
);
switch_status_t
skinny_session_process_dest
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
,
char
*
dest
,
char
append_dest
,
uint32_t
backspace
);
switch_status_t
skinny_session_ring_out
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_answer
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_start_media
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_hold_line
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_unhold_line
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_stop_media
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_hold_active_calls
(
listener_t
*
listener
);
void
skinny_line_get
(
listener_t
*
listener
,
uint32_t
instance
,
struct
line_stat_res_message
**
button
);
void
skinny_speed_dial_get
(
listener_t
*
listener
,
uint32_t
instance
,
struct
speed_dial_stat_res_message
**
button
);
void
skinny_service_url_get
(
listener_t
*
listener
,
uint32_t
instance
,
struct
service_url_stat_res_message
**
button
);
void
skinny_feature_get
(
listener_t
*
listener
,
uint32_t
instance
,
struct
feature_stat_res_message
**
button
);
switch_status_t
skinny_perform_send_reply
(
listener_t
*
listener
,
const
char
*
file
,
const
char
*
func
,
int
line
,
skinny_message_t
*
reply
);
#define skinny_send_reply(listener, reply) skinny_perform_send_reply(listener, __FILE__, __SWITCH_FUNC__, __LINE__, reply)
...
...
@@ -737,6 +727,7 @@ switch_status_t send_define_time_date(listener_t *listener,
switch_status_t
send_define_current_time_date
(
listener_t
*
listener
);
switch_status_t
send_version
(
listener_t
*
listener
,
char
*
version
);
switch_status_t
send_capabilities_req
(
listener_t
*
listener
);
switch_status_t
send_register_reject
(
listener_t
*
listener
,
char
*
error
);
switch_status_t
send_open_receive_channel
(
listener_t
*
listener
,
...
...
src/mod/endpoints/mod_skinny/skinny_server.c
0 → 100644
浏览文件 @
0bc11afa
差异被折叠。
点击展开。
src/mod/endpoints/mod_skinny/skinny_server.h
0 → 100644
浏览文件 @
0bc11afa
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2010, Mathieu Parent <math.parent@gmail.com>
*
* 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
* Mathieu Parent <math.parent@gmail.com>
* Portions created by the Initial Developer are Copyright (C)
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Mathieu Parent <math.parent@gmail.com>
*
*
* skinny_server.h -- Skinny Call Control Protocol (SCCP) Endpoint Module
*
*/
#ifndef _SKINNY_SERVER_H
#define _SKINNY_SERVER_H
#include <switch.h>
/* SESSION FUNCTIONS */
switch_status_t
skinny_create_ingoing_session
(
listener_t
*
listener
,
uint32_t
*
line_instance
,
switch_core_session_t
**
session
);
switch_status_t
skinny_session_process_dest
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
,
char
*
dest
,
char
append_dest
,
uint32_t
backspace
);
switch_status_t
skinny_session_send_call_info
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_call_cause_t
skinny_ring_lines
(
private_t
*
tech_pvt
);
switch_status_t
skinny_session_ring_out
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_answer
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_start_media
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_hold_line
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_unhold_line
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_session_stop_media
(
switch_core_session_t
*
session
,
listener_t
*
listener
,
uint32_t
line_instance
);
switch_status_t
skinny_hold_active_calls
(
listener_t
*
listener
);
/* SKINNY MESSAGE HANDLERS */
#endif
/* _SKINNY_SERVER_H */
/* For Emacs:
* Local Variables:
* mode:c
* indent-tabs-mode:t
* tab-width:4
* c-basic-offset:4
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4:
*/
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论