Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
6a38dce2
提交
6a38dce2
authored
5月 29, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
trivial compiler warnings
上级
4480abc9
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.c
+3
-3
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+2
-2
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+8
-8
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+1
-1
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.c
浏览文件 @
6a38dce2
...
...
@@ -1345,7 +1345,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
case
SWITCH_MESSAGE_INDICATE_JITTER_BUFFER
:
{
if
(
switch_rtp_ready
(
tech_pvt
->
rtp_session
))
{
int
len
,
maxlen
=
0
,
qlen
=
0
,
maxqlen
=
50
,
max_drift
=
0
;
int
len
=
0
,
maxlen
=
0
,
qlen
=
0
,
maxqlen
=
50
,
max_drift
=
0
;
if
(
msg
->
string_arg
)
{
char
*
p
,
*
q
;
...
...
@@ -1626,7 +1626,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
ip
=
switch_channel_get_variable
(
channel
,
SWITCH_REMOTE_MEDIA_IP_VARIABLE
);
port
=
switch_channel_get_variable
(
channel
,
SWITCH_REMOTE_MEDIA_PORT_VARIABLE
);
if
(
ip
&&
port
)
{
sofia_glue_set_local_sdp
(
tech_pvt
,
ip
,
atoi
(
port
),
msg
->
string_arg
,
1
);
sofia_glue_set_local_sdp
(
tech_pvt
,
ip
,
(
switch_port_t
)
atoi
(
port
),
msg
->
string_arg
,
1
);
}
if
(
!
sofia_test_flag
(
tech_pvt
,
TFLAG_BYE
))
{
...
...
@@ -1666,7 +1666,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
port
=
switch_channel_get_variable
(
other_channel
,
SWITCH_REMOTE_MEDIA_PORT_VARIABLE
);
switch_core_session_rwunlock
(
other_session
);
if
(
ip
&&
port
)
{
sofia_glue_set_local_sdp
(
tech_pvt
,
ip
,
atoi
(
port
),
NULL
,
1
);
sofia_glue_set_local_sdp
(
tech_pvt
,
ip
,
(
switch_port_t
)
atoi
(
port
),
NULL
,
1
);
}
}
...
...
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
6a38dce2
...
...
@@ -795,7 +795,7 @@ switch_status_t sofia_glue_activate_rtp(private_object_t *tech_pvt, switch_rtp_f
void
sofia_glue_deactivate_rtp
(
private_object_t
*
tech_pvt
);
void
sofia_glue_set_local_sdp
(
private_object_t
*
tech_pvt
,
const
char
*
ip
,
uint32
_t
port
,
const
char
*
sr
,
int
force
);
void
sofia_glue_set_local_sdp
(
private_object_t
*
tech_pvt
,
const
char
*
ip
,
switch_port
_t
port
,
const
char
*
sr
,
int
force
);
void
sofia_glue_tech_prepare_codecs
(
private_object_t
*
tech_pvt
);
...
...
@@ -1065,6 +1065,6 @@ void sofia_glue_proxy_codec(switch_core_session_t *session, const char *r_sdp);
switch_status_t
sofia_glue_sdp_map
(
const
char
*
r_sdp
,
switch_event_t
**
fmtp
,
switch_event_t
**
pt
);
void
sofia_glue_build_vid_refresh_message
(
switch_core_session_t
*
session
,
const
char
*
pl
);
void
sofia_glue_check_dtmf_type
(
private_object_t
*
tech_pvt
);
void
sofia_glue_parse_rtp_bugs
(
uint32
_t
*
flag_pole
,
const
char
*
str
);
void
sofia_glue_parse_rtp_bugs
(
switch_rtp_bug_flag
_t
*
flag_pole
,
const
char
*
str
);
char
*
sofia_glue_gen_contact_str
(
sofia_profile_t
*
profile
,
sip_t
const
*
sip
,
sofia_nat_parse_t
*
np
);
void
sofia_glue_pause_jitterbuffer
(
switch_core_session_t
*
session
,
switch_bool_t
on
);
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
6a38dce2
...
...
@@ -358,7 +358,7 @@ void sofia_glue_check_dtmf_type(private_object_t *tech_pvt)
}
void
sofia_glue_set_local_sdp
(
private_object_t
*
tech_pvt
,
const
char
*
ip
,
uint32
_t
port
,
const
char
*
sr
,
int
force
)
void
sofia_glue_set_local_sdp
(
private_object_t
*
tech_pvt
,
const
char
*
ip
,
switch_port
_t
port
,
const
char
*
sr
,
int
force
)
{
char
buf
[
2048
];
int
ptime
=
0
;
...
...
@@ -3579,7 +3579,7 @@ static void add_audio_codec(sdp_rtpmap_t *map, int ptime, char *buf, switch_size
codec_ms
=
switch_default_ptime
(
map
->
rm_encoding
,
map
->
rm_pt
);
}
map_bit_rate
=
switch_known_bitrate
(
map
->
rm_pt
);
map_bit_rate
=
switch_known_bitrate
(
(
switch_payload_t
)
map
->
rm_pt
);
if
(
!
ptime
&&
!
strcasecmp
(
map
->
rm_encoding
,
"g723"
))
{
ptime
=
codec_ms
=
30
;
...
...
@@ -4649,7 +4649,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
codec_ms
=
switch_default_ptime
(
rm_encoding
,
map
->
rm_pt
);
}
map_bit_rate
=
switch_known_bitrate
(
map
->
rm_pt
);
map_bit_rate
=
switch_known_bitrate
(
(
switch_payload_t
)
map
->
rm_pt
);
if
(
!
ptime
&&
!
strcasecmp
(
map
->
rm_encoding
,
"g723"
))
{
ptime
=
codec_ms
=
30
;
...
...
@@ -4765,7 +4765,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
switch_snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
tech_pvt
->
remote_sdp_audio_port
);
switch_channel_set_variable
(
tech_pvt
->
channel
,
SWITCH_REMOTE_MEDIA_IP_VARIABLE
,
tech_pvt
->
remote_sdp_audio_ip
);
switch_channel_set_variable
(
tech_pvt
->
channel
,
SWITCH_REMOTE_MEDIA_PORT_VARIABLE
,
tmp
);
tech_pvt
->
audio_recv_pt
=
map
->
rm_pt
;
tech_pvt
->
audio_recv_pt
=
(
switch_payload_t
)
map
->
rm_pt
;
if
(
switch_channel_direction
(
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
&&
!
sofia_test_flag
(
tech_pvt
,
TFLAG_REINVITE
))
{
sofia_glue_get_offered_pt
(
tech_pvt
,
mimp
,
&
tech_pvt
->
audio_recv_pt
);
...
...
@@ -4889,7 +4889,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
switch_channel_set_variable
(
tech_pvt
->
channel
,
"sip_video_pt"
,
tmp
);
sofia_glue_check_video_codecs
(
tech_pvt
);
tech_pvt
->
video_recv_pt
=
map
->
rm_pt
;
tech_pvt
->
video_recv_pt
=
(
switch_payload_t
)
map
->
rm_pt
;
if
(
switch_channel_direction
(
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
)
{
sofia_glue_get_offered_pt
(
tech_pvt
,
mimp
,
&
tech_pvt
->
video_recv_pt
);
...
...
@@ -5458,13 +5458,13 @@ static int recover_callback(void *pArg, int argc, char **argv, char **columnName
if
(
switch_rtp_ready
(
tech_pvt
->
rtp_session
))
{
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"sip_audio_recv_pt"
)))
{
switch_rtp_set_recv_pt
(
tech_pvt
->
rtp_session
,
atoi
(
tmp
));
switch_rtp_set_recv_pt
(
tech_pvt
->
rtp_session
,
(
switch_payload_t
)
atoi
(
tmp
));
}
}
if
(
switch_rtp_ready
(
tech_pvt
->
video_rtp_session
))
{
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"sip_video_recv_pt"
)))
{
switch_rtp_set_recv_pt
(
tech_pvt
->
rtp_session
,
atoi
(
tmp
));
switch_rtp_set_recv_pt
(
tech_pvt
->
rtp_session
,
(
switch_payload_t
)
atoi
(
tmp
));
}
}
...
...
@@ -6415,7 +6415,7 @@ void sofia_glue_build_vid_refresh_message(switch_core_session_t *session, const
}
void
sofia_glue_parse_rtp_bugs
(
uint32
_t
*
flag_pole
,
const
char
*
str
)
void
sofia_glue_parse_rtp_bugs
(
switch_rtp_bug_flag
_t
*
flag_pole
,
const
char
*
str
)
{
if
(
switch_stristr
(
"clear"
,
str
))
{
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
6a38dce2
...
...
@@ -1050,7 +1050,7 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
}
if
(
authorization
)
{
char
*
v_contact_str
;
char
*
v_contact_str
=
NULL
;
const
char
*
username
=
"unknown"
;
const
char
*
realm
=
reg_host
;
if
((
auth_res
=
sofia_reg_parse_auth
(
profile
,
authorization
,
sip
,
sip
->
sip_request
->
rq_method_name
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论