Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
77413ba9
提交
77413ba9
authored
8月 02, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3451 --resolve we support this but there was a bug, should work now
上级
9e399c19
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+7
-2
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+2
-2
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
77413ba9
...
...
@@ -3488,6 +3488,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
profile
->
local_network
=
"localnet.auto"
;
sofia_set_flag
(
profile
,
TFLAG_ENABLE_SOA
);
sofia_set_pflag
(
profile
,
PFLAG_CID_IN_1XX
);
profile
->
ndlb
|=
PFLAG_NDLB_ALLOW_NONDUP_SDP
;
for
(
param
=
switch_xml_child
(
settings
,
"param"
);
param
;
param
=
param
->
next
)
{
char
*
var
=
(
char
*
)
switch_xml_attr_soft
(
param
,
"name"
);
...
...
@@ -5109,11 +5110,13 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
}
if
(
session
)
{
if
((
switch_channel_test_flag
(
channel
,
CF_EARLY_MEDIA
)
||
switch_channel_test_flag
(
channel
,
CF_ANSWERED
))
&&
(
status
==
180
||
status
==
183
))
{
if
((
switch_channel_test_flag
(
channel
,
CF_EARLY_MEDIA
)
||
switch_channel_test_flag
(
channel
,
CF_ANSWERED
))
&&
(
status
==
180
||
status
==
183
)
&&
!
r_sdp
)
{
/* Must you send 180 after 183 w/sdp ? sheesh */
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Channel %s skipping state [%s][%d]
\n
"
,
switch_channel_get_name
(
channel
),
nua_callstate_name
(
ss_state
),
status
);
goto
done
;
}
else
if
(
switch_channel_test_flag
(
channel
,
CF_EARLY_MEDIA
)
&&
(
status
==
180
||
status
==
183
)
&&
r_sdp
)
{
sofia_set_flag_locked
(
tech_pvt
,
TFLAG_REINVITE
);
}
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Channel %s entering state [%s][%d]
\n
"
,
...
...
@@ -5211,7 +5214,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
sofia_set_flag_locked
(
tech_pvt
,
TFLAG_EARLY_MEDIA
);
switch_channel_mark_pre_answered
(
channel
);
sofia_set_flag
(
tech_pvt
,
TFLAG_SDP
);
if
(
switch_channel_test_flag
(
channel
,
CF_PROXY_MEDIA
))
{
if
(
switch_channel_test_flag
(
channel
,
CF_PROXY_MEDIA
)
||
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
)
)
{
if
(
sofia_glue_activate_rtp
(
tech_pvt
,
0
)
!=
SWITCH_STATUS_SUCCESS
)
{
goto
done
;
}
...
...
@@ -5632,6 +5635,8 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
sofia_glue_set_local_sdp
(
tech_pvt
,
NULL
,
0
,
NULL
,
0
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Processing updated SDP
\n
"
);
sofia_set_flag_locked
(
tech_pvt
,
TFLAG_REINVITE
);
if
(
sofia_glue_activate_rtp
(
tech_pvt
,
0
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"RTP Error!
\n
"
);
switch_channel_hangup
(
channel
,
SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER
);
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
77413ba9
...
...
@@ -3049,7 +3049,6 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
flags
&=
~
SWITCH_RTP_FLAG_BYTESWAP
;
}
if
(
tech_pvt
->
rtp_session
&&
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
))
{
//const char *ip = switch_channel_get_variable(tech_pvt->channel, SWITCH_LOCAL_MEDIA_IP_VARIABLE);
//const char *port = switch_channel_get_variable(tech_pvt->channel, SWITCH_LOCAL_MEDIA_PORT_VARIABLE);
...
...
@@ -3117,7 +3116,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
const
char
*
rport
=
NULL
;
switch_port_t
remote_rtcp_port
=
0
;
sofia_clear_flag_locked
(
tech_pvt
,
TFLAG_REINVITE
);
if
((
rport
=
switch_channel_get_variable
(
tech_pvt
->
channel
,
"sip_remote_audio_rtcp_port"
)))
{
remote_rtcp_port
=
(
switch_port_t
)
atoi
(
rport
);
...
...
@@ -3598,6 +3597,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
end:
sofia_clear_flag_locked
(
tech_pvt
,
TFLAG_REINVITE
);
sofia_glue_tech_track
(
tech_pvt
->
profile
,
tech_pvt
->
session
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论