Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
7917a9a4
提交
7917a9a4
authored
5月 05, 2008
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
up
git-svn-id:
http://svn.openzap.org/svn/openzap/trunk@470
a93c3328-9c30-0410-af19-c9cd2b2d52af
上级
a90ef152
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
mod_openzap.c
libs/openzap/mod_openzap/mod_openzap.c
+13
-13
zap_isdn.c
libs/openzap/src/zap_isdn.c
+1
-1
没有找到文件。
libs/openzap/mod_openzap/mod_openzap.c
浏览文件 @
7917a9a4
...
...
@@ -115,9 +115,9 @@ typedef struct private_object private_t;
static
switch_status_t
channel_on_init
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_hangup
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_ring
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_
loopback
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_
transmit
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_r
out
ing
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_
exchange_media
(
switch_core_session_t
*
session
);
static
switch_status_t
channel_on_
soft_execute
(
switch_core_session_t
*
session
);
static
switch_call_cause_t
channel_outgoing_channel
(
switch_core_session_t
*
session
,
switch_caller_profile_t
*
outbound_profile
,
switch_core_session_t
**
new_session
,
...
...
@@ -359,8 +359,8 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
switch_set_flag_locked
(
tech_pvt
,
TFLAG_IO
);
/* Move Channel's State Machine to RING */
switch_channel_set_state
(
channel
,
CS_RING
);
/* Move Channel's State Machine to R
OUT
ING */
switch_channel_set_state
(
channel
,
CS_R
OUT
ING
);
switch_mutex_lock
(
globals
.
mutex
);
globals
.
calls
++
;
switch_mutex_unlock
(
globals
.
mutex
);
...
...
@@ -370,7 +370,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
return
SWITCH_STATUS_SUCCESS
;
}
static
switch_status_t
channel_on_ring
(
switch_core_session_t
*
session
)
static
switch_status_t
channel_on_r
out
ing
(
switch_core_session_t
*
session
)
{
switch_channel_t
*
channel
=
NULL
;
private_t
*
tech_pvt
=
NULL
;
...
...
@@ -498,15 +498,15 @@ static switch_status_t channel_kill_channel(switch_core_session_t *session, int
return
SWITCH_STATUS_SUCCESS
;
}
static
switch_status_t
channel_on_
loopback
(
switch_core_session_t
*
session
)
static
switch_status_t
channel_on_
exchange_media
(
switch_core_session_t
*
session
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"CHANNEL
LOOPBACK
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"CHANNEL
EXCHANGE_MEDIA
\n
"
);
return
SWITCH_STATUS_SUCCESS
;
}
static
switch_status_t
channel_on_
transmit
(
switch_core_session_t
*
session
)
static
switch_status_t
channel_on_
soft_execute
(
switch_core_session_t
*
session
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"CHANNEL
TRANSMIT
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"CHANNEL
SOFT_EXECUTE
\n
"
);
return
SWITCH_STATUS_SUCCESS
;
}
...
...
@@ -823,11 +823,11 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
switch_state_handler_table_t
openzap_state_handlers
=
{
/*.on_init */
channel_on_init
,
/*.on_r
ing */
channel_on_r
ing
,
/*.on_r
outing */
channel_on_rout
ing
,
/*.on_execute */
channel_on_execute
,
/*.on_hangup */
channel_on_hangup
,
/*.on_
loopback */
channel_on_loopback
,
/*.on_
transmit */
channel_on_transmit
/*.on_
exchange_media */
channel_on_exchange_media
,
/*.on_
soft_execute */
channel_on_soft_execute
};
switch_io_routines_t
openzap_io_routines
=
{
...
...
libs/openzap/src/zap_isdn.c
浏览文件 @
7917a9a4
...
...
@@ -467,7 +467,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
//is cast right here?
ChanID
.
IntType
=
1
;
/* PRI = 1, BRI = 0 */
ChanID
.
InfoChanSel
=
1
;
ChanID
.
InfoChanSel
=
1
;
//2 suggest 3 you tell me
ChanID
.
ChanMapType
=
3
;
/* B-Chan */
ChanID
.
ChanSlot
=
(
unsigned
char
)
zchan
->
chan_id
;
gen
->
ChanID
=
Q931AppendIE
((
L3UCHAR
*
)
gen
,
(
L3UCHAR
*
)
&
ChanID
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论