Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
52956d5c
提交
52956d5c
authored
9月 07, 2006
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@2554
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
a4c778a0
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
18 行增加
和
33 行删除
+18
-33
Makefile.am
libs/codec/lpc10/Makefile.am
+7
-11
mod_dingaling.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c
+2
-5
mod_exosip.c
src/mod/endpoints/mod_exosip/mod_exosip.c
+3
-11
mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.c
+2
-4
switch_core.c
src/switch_core.c
+4
-2
没有找到文件。
libs/codec/lpc10/Makefile.am
浏览文件 @
52956d5c
...
...
@@ -2,24 +2,20 @@ EXTRA_DIST =
SUBDIRS
=
AUTOMAKE_OPTS
=
gnu
MAKE
=
gmake
NAME
=
lib
lpc10
NAME
=
lib
g7xx
AM_CC
=
gcc
AM_CFLAGS
=
-Wall
-O3
-funroll-loops
AM_CPPFLAGS
=
$(AM_CFLAGS)
lib_LTLIBRARIES
=
liblpc10.la
liblpc10_la_SOURCES
=
analys.c dcbias.c difmag.c energy.c hp100.c ivfilt.c lpcini.c mload.c placea.c prepro.c synths.c vparms.c
\
bsynz.c decode.c dyptrk.c f2clib.c invert.c lpcdec.c lpfilt.c onset.c placev.c random.c tbdm.c
\
chanwr.c deemp.c encode.c ham84.c irc2pc.c lpcenc.c median.c pitsyn.c preemp.c rcchk.c voicin.c
lib_LTLIBRARIES
=
libg7xx.la
libg7xx_la_SOURCES
=
g711.c g722_deode.c g722_encode.c g726.c
libg7xx_la_CFLAGS
=
$(AM_CFLAGS)
libg7xx_la_LDFLAGS
=
liblpc10_la_CFLAGS
=
$(AM_CFLAGS)
liblpc10_la_LDFLAGS
=
library_includedir
=
$(prefix)
/include/lpc10
library_include_HEADERS
=
f2c.h lpc10.h
library_includedir
=
$(prefix)
/include/g7xx
library_include_HEADERS
=
g726.h g711.h g722.h
...
...
src/mod/endpoints/mod_dingaling/mod_dingaling.c
浏览文件 @
52956d5c
...
...
@@ -283,17 +283,13 @@ static int activate_rtp(struct private_object *tech_pvt)
{
switch_channel_t
*
channel
=
switch_core_session_get_channel
(
tech_pvt
->
session
);
const
char
*
err
;
int
ms
=
2
0
;
int
ms
=
0
;
switch_rtp_flag_t
flags
;
if
(
switch_rtp_ready
(
tech_pvt
->
rtp_session
))
{
return
1
;
}
if
(
!
strncasecmp
(
tech_pvt
->
codec_name
,
"ilbc"
,
4
))
{
ms
=
30
;
}
if
(
switch_core_codec_init
(
&
tech_pvt
->
read_codec
,
tech_pvt
->
codec_name
,
tech_pvt
->
codec_rate
,
...
...
@@ -1693,6 +1689,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
if
(
!
strncasecmp
(
name
,
"ilbc"
,
4
))
{
name
=
"ilbc"
;
}
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"compare %s %d to %s %d
\n
"
,
payloads
[
x
].
name
,
payloads
[
x
].
id
,
name
,
tech_pvt
->
codecs
[
y
]
->
ianacode
);
if
(
tech_pvt
->
codecs
[
y
]
->
ianacode
>
96
)
{
match
=
strcasecmp
(
name
,
payloads
[
x
].
name
)
?
0
:
1
;
}
else
{
...
...
src/mod/endpoints/mod_exosip/mod_exosip.c
浏览文件 @
52956d5c
...
...
@@ -1439,17 +1439,13 @@ static switch_status_t exosip_create_call(eXosip_event_t * event)
{
int
rate
=
atoi
(
drate
);
int
ms
=
globals
.
codec_ms
;
int
ms
=
0
;
//
globals.codec_ms;
if
(
imp
)
{
ms
=
imp
->
microseconds_per_frame
/
1000
;
}
if
(
!
strcasecmp
(
dname
,
"ilbc"
))
{
ms
=
30
;
}
if
(
switch_core_codec_init
(
&
tech_pvt
->
read_codec
,
dname
,
rate
,
...
...
@@ -1938,11 +1934,7 @@ static void handle_answer(eXosip_event_t *event)
if
(
!
switch_test_flag
(
tech_pvt
,
TFLAG_USING_CODEC
))
{
int
rate
=
atoi
(
drate
);
int
ms
=
globals
.
codec_ms
;
if
(
!
strcasecmp
(
dname
,
"ilbc"
))
{
ms
=
30
;
}
int
ms
=
0
;
//globals.codec_ms;
if
(
imp
)
{
ms
=
imp
->
microseconds_per_frame
/
1000
;
...
...
@@ -2273,7 +2265,7 @@ static int config_exosip(int reload)
}
if
(
!
globals
.
codec_ms
)
{
globals
.
codec_ms
=
2
0
;
globals
.
codec_ms
=
0
;
}
if
(
!
globals
.
port
)
{
...
...
src/mod/endpoints/mod_sofia/mod_sofia.c
浏览文件 @
52956d5c
...
...
@@ -1661,6 +1661,8 @@ static switch_status_t config_sofia(int reload)
profile
->
name
=
switch_core_strdup
(
profile
->
pool
,
xprofilename
);
profile
->
dtmf_duration
=
100
;
profile
->
codec_ms
=
20
;
for
(
param
=
switch_xml_child
(
xprofile
,
"param"
);
param
;
param
=
param
->
next
)
{
char
*
var
=
(
char
*
)
switch_xml_attr_soft
(
param
,
"name"
);
char
*
val
=
(
char
*
)
switch_xml_attr_soft
(
param
,
"value"
);
...
...
@@ -1738,10 +1740,6 @@ static switch_status_t config_sofia(int reload)
profile
->
rtpip
=
switch_core_strdup
(
profile
->
pool
,
"127.0.0.1"
);
}
if
(
!
profile
->
codec_ms
)
{
profile
->
codec_ms
=
20
;
}
if
(
!
profile
->
sip_port
)
{
profile
->
sip_port
=
5060
;
}
...
...
src/switch_core.c
浏览文件 @
52956d5c
...
...
@@ -502,8 +502,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_init(switch_codec_t *codec, ch
return
SWITCH_STATUS_SUCCESS
;
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Codec %s Exists but not at the desired implementation.
\n
"
,
codec_name
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Codec %s Exists but not at the desired implementation. %dhz %dms
\n
"
,
codec_name
,
rate
,
ms
);
}
return
SWITCH_STATUS_NOTIMPL
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论