Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
6cfdddef
提交
6cfdddef
authored
10月 27, 2010
作者:
cypromis
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://git.freeswitch.org/freeswitch
上级
bc84eb33
19325c43
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
9 行删除
+32
-9
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+8
-3
switch_core_io.c
src/switch_core_io.c
+18
-0
Setup.wixproj
w32/Setup/Setup.wixproj
+6
-6
没有找到文件。
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
6cfdddef
...
...
@@ -2658,8 +2658,13 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
tech_pvt
->
read_impl
.
samples_per_second
!=
tech_pvt
->
rm_rate
||
tech_pvt
->
codec_ms
!=
(
uint32_t
)
tech_pvt
->
read_impl
.
microseconds_per_packet
/
1000
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
tech_pvt
->
session
),
SWITCH_LOG_DEBUG
,
"Changing Codec from %s@%dms to %s@%dms
\n
"
,
tech_pvt
->
read_impl
.
iananame
,
tech_pvt
->
read_impl
.
microseconds_per_packet
/
1000
,
tech_pvt
->
rm_encoding
,
tech_pvt
->
codec_ms
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
tech_pvt
->
session
),
SWITCH_LOG_DEBUG
,
"Changing Codec from %s@%dms@%dhz to %s@%dms@%luhz
\n
"
,
tech_pvt
->
read_impl
.
iananame
,
tech_pvt
->
read_impl
.
microseconds_per_packet
/
1000
,
tech_pvt
->
read_impl
.
samples_per_second
,
tech_pvt
->
rm_encoding
,
tech_pvt
->
codec_ms
,
tech_pvt
->
rm_rate
);
switch_core_session_lock_codec_write
(
tech_pvt
->
session
);
switch_core_session_lock_codec_read
(
tech_pvt
->
session
);
...
...
@@ -4429,7 +4434,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
tech_pvt
->
rm_encoding
=
switch_core_session_strdup
(
session
,
(
char
*
)
map
->
rm_encoding
);
tech_pvt
->
iananame
=
switch_core_session_strdup
(
session
,
(
char
*
)
mimp
->
iananame
);
tech_pvt
->
pt
=
(
switch_payload_t
)
map
->
rm_pt
;
tech_pvt
->
rm_rate
=
m
ap
->
rm_rate
;
tech_pvt
->
rm_rate
=
m
imp
->
samples_per_second
;
tech_pvt
->
codec_ms
=
mimp
->
microseconds_per_packet
/
1000
;
tech_pvt
->
bitrate
=
mimp
->
bits_per_second
;
tech_pvt
->
remote_sdp_audio_ip
=
switch_core_session_strdup
(
session
,
(
char
*
)
connection
->
c_address
);
...
...
src/switch_core_io.c
浏览文件 @
6cfdddef
...
...
@@ -124,6 +124,15 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
}
switch_mutex_lock
(
session
->
codec_read_mutex
);
if
(
!
switch_core_codec_ready
(
session
->
read_codec
))
{
switch_mutex_unlock
(
session
->
codec_read_mutex
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"%s has no read codec.
\n
"
,
switch_channel_get_name
(
session
->
channel
));
switch_channel_hangup
(
session
->
channel
,
SWITCH_CAUSE_INCOMPATIBLE_DESTINATION
);
*
frame
=
&
runtime
.
dummy_cng_frame
;
return
SWITCH_STATUS_FALSE
;
}
switch_mutex_lock
(
session
->
read_codec
->
mutex
);
top
:
...
...
@@ -181,6 +190,15 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
}
switch_mutex_lock
(
session
->
codec_read_mutex
);
if
(
!
switch_core_codec_ready
(
session
->
read_codec
))
{
switch_mutex_unlock
(
session
->
codec_read_mutex
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"%s has no read codec.
\n
"
,
switch_channel_get_name
(
session
->
channel
));
switch_channel_hangup
(
session
->
channel
,
SWITCH_CAUSE_INCOMPATIBLE_DESTINATION
);
*
frame
=
&
runtime
.
dummy_cng_frame
;
return
SWITCH_STATUS_FALSE
;
}
switch_mutex_lock
(
session
->
read_codec
->
mutex
);
if
(
!
switch_core_codec_ready
(
session
->
read_codec
))
{
*
frame
=
NULL
;
...
...
w32/Setup/Setup.wixproj
浏览文件 @
6cfdddef
...
...
@@ -12,26 +12,26 @@
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|x86' "
>
<OutputPath>
bin\x86\Debug\
</OutputPath>
<IntermediateOutputPath>
obj\X86\$(Configuration)\
</IntermediateOutputPath>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
..\..\..\..\..\conf;FreeSWITCHSoundFilesDir=..\..\..\
..\..\Win32\debug\sounds;
</DefineConstants>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
$(ProjectDir)..\..\conf;FreeSWITCHSoundFilesDir=$(ProjectDir)
..\..\Win32\debug\sounds;
</DefineConstants>
<WixVariables>
</WixVariables>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|x86' "
>
<OutputPath>
bin\x86\release\
</OutputPath>
<IntermediateOutputPath>
obj\X86\$(Configuration)\
</IntermediateOutputPath>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
..\..\..\..\..\conf;FreeSWITCHSoundFilesDir=..\..\..\
..\..\Win32\release\sounds;
</DefineConstants>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
$(ProjectDir)..\..\conf;FreeSWITCHSoundFilesDir=$(ProjectDir)
..\..\Win32\release\sounds;
</DefineConstants>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|x64' "
>
<OutputPath>
bin\x64\Debug\
</OutputPath>
<IntermediateOutputPath>
obj\X64\$(Configuration)\
</IntermediateOutputPath>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
..\..\..\..\..\conf;FreeSWITCHSoundFilesDir=..\..\..\
..\..\x64\debug\sounds;
</DefineConstants>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
$(ProjectDir)..\..\conf;FreeSWITCHSoundFilesDir=$(ProjectDir)
..\..\x64\debug\sounds;
</DefineConstants>
<WixVariables>
</WixVariables>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|x64' "
>
<OutputPath>
bin\x64\Release\
</OutputPath>
<IntermediateOutputPath>
obj\X64\$(Configuration)\
</IntermediateOutputPath>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
..\..\..\..\..\conf;FreeSWITCHSoundFilesDir=..\..\..\
..\..\x64\release\sounds;
</DefineConstants>
<DefineConstants>
Debug;FreeSWITCHConfFilesDir=
$(ProjectDir)..\..\conf;FreeSWITCHSoundFilesDir=$(ProjectDir)
..\..\x64\release\sounds;
</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile
Include=
"Fragments\FreeSWITCHConfFiles.wxs"
/>
...
...
@@ -735,8 +735,8 @@
</ItemGroup>
<Import
Project=
"$(WixTargetsPath)"
/>
<PropertyGroup>
<PreBuildEvent>
"$(WIX)bin\heat.exe" dir "
..\..\..\
..\..\conf" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs"
"$(WIX)bin\heat.exe" dir "
..\..\..\
..\..\Win32\Release\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs"
</PreBuildEvent>
<PreBuildEvent>
"$(WIX)bin\heat.exe" dir "
$(ProjectDir)
..\..\conf" -cg FreeSWITCHConfFiles -gg -scom -sreg -sfrag -srd -dr CONFLOCATION -var var.FreeSWITCHConfFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHConfFiles.wxs"
"$(WIX)bin\heat.exe" dir "
$(ProjectDir)
..\..\Win32\Release\sounds" -cg FreeSWITCHSoundFiles8 -gg -scom -sreg -sfrag -srd -dr SOUNDLOCATION -var var.FreeSWITCHSoundFilesDir -out "$(ProjectDir)Fragments\FreeSWITCHSoundFiles8.wxs"
</PreBuildEvent>
</PropertyGroup>
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论