Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a9438c51
提交
a9438c51
authored
4月 13, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@1145
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
5479e0a0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
6 行删除
+4
-6
mod_wanpipe.c
src/mod/endpoints/mod_wanpipe/mod_wanpipe.c
+2
-3
switch_rtp.c
src/switch_rtp.c
+2
-3
没有找到文件。
src/mod/endpoints/mod_wanpipe/mod_wanpipe.c
浏览文件 @
a9438c51
...
...
@@ -786,8 +786,6 @@ static switch_status wanpipe_outgoing_channel(switch_core_session *session, swit
}
}
switch_channel_set_caller_profile
(
channel
,
caller_profile
);
tech_pvt
->
caller_profile
=
caller_profile
;
if
(
bchan
)
{
...
...
@@ -802,7 +800,7 @@ static switch_status wanpipe_outgoing_channel(switch_core_session *session, swit
switch_set_flag
(
tech_pvt
,
TFLAG_NOSIG
);
snprintf
(
name
,
sizeof
(
name
),
"WanPipe/%s/nosig-%04x"
,
bchan
,
rand
()
&
0xffff
);
switch_channel_set_name
(
channel
,
name
);
switch_channel_set_caller_profile
(
channel
,
caller_profile
);
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Invalid address
\n
"
);
switch_core_session_destroy
(
new_session
);
...
...
@@ -854,6 +852,7 @@ static switch_status wanpipe_outgoing_channel(switch_core_session *session, swit
snprintf
(
name
,
sizeof
(
name
),
"WanPipe/s%dc%d/%s-%04x"
,
spri
->
span
,
channo
,
caller_profile
->
destination_number
,
rand
()
&
0xffff
);
switch_channel_set_name
(
channel
,
name
);
switch_channel_set_caller_profile
(
channel
,
caller_profile
);
sr
=
pri_sr_new
();
pri_sr_set_channel
(
sr
,
channo
,
0
,
0
);
pri_sr_set_bearer
(
sr
,
0
,
SPANS
[
span
]
->
l1
);
...
...
src/switch_rtp.c
浏览文件 @
a9438c51
...
...
@@ -606,7 +606,7 @@ static int rtp_common_write(switch_rtp *rtp_session, void *data, uint32_t datale
bytes
=
sbytes
;
}
rtp_session
->
send_msg
.
header
.
pt
=
rtp_session
->
payload
;
switch_socket_sendto
(
rtp_session
->
sock
,
rtp_session
->
remote_addr
,
0
,
(
void
*
)
&
rtp_session
->
send_msg
,
&
bytes
);
if
(
rtp_session
->
ice_user
)
{
...
...
@@ -631,7 +631,6 @@ SWITCH_DECLARE(int) switch_rtp_write(switch_rtp *rtp_session, void *data, uint32
rtp_session
->
seq
=
htons
(
rtp_session
->
seq
);
rtp_session
->
send_msg
.
header
.
seq
=
rtp_session
->
seq
;
rtp_session
->
send_msg
.
header
.
ts
=
htonl
(
rtp_session
->
ts
);
rtp_session
->
payload
=
(
uint8_t
)
htonl
(
rtp_session
->
payload
);
return
rtp_common_write
(
rtp_session
,
data
,
datalen
,
rtp_session
->
payload
);
...
...
@@ -643,10 +642,10 @@ SWITCH_DECLARE(int) switch_rtp_write_payload(switch_rtp *rtp_session, void *data
if
(
!
switch_test_flag
(
rtp_session
,
SWITCH_RTP_FLAG_IO
)
||
!
rtp_session
->
remote_addr
)
{
return
-
1
;
}
rtp_session
->
ts
+=
ts
;
rtp_session
->
send_msg
.
header
.
seq
=
htons
(
mseq
);
rtp_session
->
send_msg
.
header
.
ts
=
htonl
(
rtp_session
->
ts
);
rtp_session
->
send_msg
.
header
.
pt
=
(
uint8_t
)
htonl
(
payload
);
return
rtp_common_write
(
rtp_session
,
data
,
datalen
,
payload
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论