Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
bac64570
提交
bac64570
authored
10月 28, 2007
作者:
Łukasz Zwierko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@6072
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
2491c688
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
22 行删除
+12
-22
mod_opalh323.cpp
src/mod/endpoints/mod_opal/mod_opalh323.cpp
+7
-13
mod_opalh323.h
src/mod/endpoints/mod_opal/mod_opalh323.h
+1
-1
opalh323_backend.h
src/mod/endpoints/mod_opal/opalh323_backend.h
+4
-8
没有找到文件。
src/mod/endpoints/mod_opal/mod_opalh323.cpp
浏览文件 @
bac64570
...
...
@@ -32,7 +32,7 @@
#include "mod_opalh323.h"
#in
lc
ude "opalh323_backend.h"
#in
cl
ude "opalh323_backend.h"
#include <switch.h>
/*
...
...
@@ -100,12 +100,6 @@ static switch_state_handler_table_t opalh323_event_handlers = {
SWITCH_MODULE_LOAD_FUNCTION
(
mod_opalh323_load
);
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_opalh323_shutdown
);
SWITCH_MODULE_DEFINITION
(
mod_opalh323
,
mod_opalh323_load
,
mod_opalh323_shutdown
,
NULL
);
/*
* Pointer to endpoint interface descriptor for this module
*/
switch_endpoint_interface_t
*
opalh323_endpoint_interface
;
/*
* This function is called on module load
...
...
@@ -126,7 +120,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opalh323_load)
{
return
SWITCH_STATUS_MEMERR
;
}
opalh323_endpoint_interface
=
switch_loadable_module_create_interface
(
*
module_interface
,
SWITCH_ENDPOINT_INTERFACE
);
opalh323_endpoint_interface
=
(
switch_endpoint_interface_t
*
)
switch_loadable_module_create_interface
(
*
module_interface
,
SWITCH_ENDPOINT_INTERFACE
);
opalh323_endpoint_interface
->
interface_name
=
"OPALH323"
;
opalh323_endpoint_interface
->
io_routines
=
&
opalh323_io_routines
;
opalh323_endpoint_interface
->
state_handler
=
&
opalh323_event_handlers
;
...
...
@@ -139,7 +133,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_opalh323_load)
return
SWITCH_STATUS_MEMERR
;
}
if
(
!
opalh323_manager
->
initialize
(
pool
))
if
(
!
opalh323_manager
->
initialize
(
modname
,
pool
,
opalh323_endpoint_interface
))
{
delete
opalh323_manager
;
return
SWITCH_STATUS_FALSE
;
/* if can't initialize return general error */
...
...
@@ -181,7 +175,7 @@ static switch_status_t opalh323_read_frame(switch_core_session_t *session, switc
static
switch_status_t
opalh323_write_frame
(
switch_core_session_t
*
session
,
switch_frame_t
*
frame
,
int
timeout
,
switch_io_flag_t
flags
,
int
stream_id
)
{
return
opalh323_manager
->
io_write_frame
(
session
,
frame
,
timeout
,
flag
,
stream_id
);
return
opalh323_manager
->
io_write_frame
(
session
,
frame
,
timeout
,
flag
s
,
stream_id
);
}
static
switch_status_t
opalh323_kill_channel
(
switch_core_session_t
*
session
,
int
sig
)
...
...
@@ -196,7 +190,7 @@ static switch_status_t opalh323_waitfor_read(switch_core_session_t *session, int
static
switch_status_t
opalh323_waitfor_write
(
switch_core_session_t
*
session
,
int
ms
,
int
stream_id
)
{
return
opalh323_manager
->
io_waitfor_write
(
session
,
ms
,
sream_id
);
return
opalh323_manager
->
io_waitfor_write
(
session
,
ms
,
s
t
ream_id
);
}
static
switch_status_t
opalh323_send_dtmf
(
switch_core_session_t
*
session
,
char
*
dtmf
)
...
...
@@ -224,9 +218,9 @@ static switch_status_t opalh323_read_video_frame(switch_core_session_t *session,
return
opalh323_manager
->
io_read_video_frame
(
session
,
frame
,
timeout
,
flag
,
stream_id
);
}
static
switch_status_t
opalh323_write_video_frame
(
switch_core_session_t
*
session
,
switch_frame_t
*
*
frame
,
int
timeout
,
switch_io_flag_t
flag
,
int
stream_id
)
static
switch_status_t
opalh323_write_video_frame
(
switch_core_session_t
*
session
,
switch_frame_t
*
frame
,
int
timeout
,
switch_io_flag_t
flag
,
int
stream_id
)
{
return
opalh323_manager
->
io_write_vid
oe
_frame
(
session
,
frame
,
timeout
,
flag
,
stream_id
);
return
opalh323_manager
->
io_write_vid
eo
_frame
(
session
,
frame
,
timeout
,
flag
,
stream_id
);
}
/*
...
...
src/mod/endpoints/mod_opal/mod_opalh323.h
浏览文件 @
bac64570
...
...
@@ -36,4 +36,4 @@
#endif
/* __FREESWITCH_MOD_OPALH323__ */
\ No newline at end of file
#endif
/* __FREESWITCH_MOD_OPALH323__ */
src/mod/endpoints/mod_opal/opalh323_backend.h
浏览文件 @
bac64570
...
...
@@ -32,11 +32,7 @@
#include <switch.h>
#include <opal/manager.h>
#include <opal/endpoint.h>
#include <opal/mediastrm.h>
class
H323EndPoint
;
#include <h323/h323ep.h>
/** This class is OpalManager implementation
* for FreeSWITCH OpalH323 module.
...
...
@@ -64,9 +60,9 @@ public:
* Method does real initialization of the manager
*/
bool
initialize
(
const
char
*
i_modName
const
char
*
i_modName
,
switch_memory_pool_t
*
i_memoryPool
,
switch_endpoint_interface_t
*
i_endpointInterface
,
switch_endpoint_interface_t
*
i_endpointInterface
);
/** FS callback handlers declarations
...
...
@@ -106,7 +102,7 @@ private:
char
*
m_pModuleName
;
/* name of this module */
bool
m_isInitilized
;
/* true if module has been initialized properly */
H323End
p
oint
*
m_pH323Endpoint
;
/* h323 endpoint control */
H323End
P
oint
*
m_pH323Endpoint
;
/* h323 endpoint control */
switch_memory_pool_t
*
m_pMemoryPool
;
/* FS memory pool */
switch_endpoint_interface_t
*
m_pEndpointInterface
;
/* FS endpoint inerface */
switch_hash_t
*
m_pSessionsHashTable
;
/* Stores pointrs to session object for each Opal connection */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论