Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
40c96d77
提交
40c96d77
authored
9月 02, 2008
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
spelling
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@9398
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
c665cc97
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
switch_core_io.c
src/switch_core_io.c
+3
-3
switch_core_rwlock.c
src/switch_core_rwlock.c
+2
-2
switch_core_state_machine.c
src/switch_core_state_machine.c
+1
-1
switch_event.c
src/switch_event.c
+1
-1
switch_rtp.c
src/switch_rtp.c
+2
-2
switch_scheduler.c
src/switch_scheduler.c
+2
-2
没有找到文件。
src/switch_core_io.c
浏览文件 @
40c96d77
...
...
@@ -963,7 +963,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_recv_dtmf(switch_core_sessio
new_dtmf
=
*
dtmf
;
if
(
new_dtmf
.
duration
>
switch_core_max_dtmf_duration
(
0
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
EC
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
CE
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_channel_get_name
(
session
->
channel
),
new_dtmf
.
digit
,
new_dtmf
.
duration
);
new_dtmf
.
duration
=
switch_core_max_dtmf_duration
(
0
);
}
else
if
(
!
new_dtmf
.
duration
)
{
...
...
@@ -993,7 +993,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf(switch_core_sessio
new_dtmf
=
*
dtmf
;
if
(
new_dtmf
.
duration
>
switch_core_max_dtmf_duration
(
0
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
EC
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
CE
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_channel_get_name
(
session
->
channel
),
new_dtmf
.
digit
,
new_dtmf
.
duration
);
new_dtmf
.
duration
=
switch_core_max_dtmf_duration
(
0
);
}
else
if
(
!
new_dtmf
.
duration
)
{
...
...
@@ -1063,7 +1063,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_send_dtmf_string(switch_core
if
(
dtmf
.
duration
>
switch_core_max_dtmf_duration
(
0
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
EC
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"%s EX
CE
SSIVE DTMF DIGIT [%c] LEN [%d]
\n
"
,
switch_channel_get_name
(
session
->
channel
),
dtmf
.
digit
,
dtmf
.
duration
);
dtmf
.
duration
=
switch_core_max_dtmf_duration
(
0
);
}
else
if
(
!
dtmf
.
duration
)
{
...
...
src/switch_core_rwlock.c
浏览文件 @
40c96d77
...
...
@@ -63,7 +63,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_lock(switch_core_sessio
}
else
{
status
=
(
switch_status_t
)
switch_thread_rwlock_tryrdlock
(
session
->
rwlock
);
#ifdef SWITCH_DEBUG_RWLOCKS
switch_log_printf
(
SWITCH_CHANNEL_ID_LOG
,
file
,
func
,
line
,
NULL
,
SWITCH_LOG_ERROR
,
"%s Read lock AQUIRED
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_ID_LOG
,
file
,
func
,
line
,
NULL
,
SWITCH_LOG_ERROR
,
"%s Read lock A
C
QUIRED
\n
"
,
switch_channel_get_name
(
session
->
channel
));
#endif
}
...
...
@@ -76,7 +76,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_lock(switch_core_sessio
SWITCH_DECLARE
(
void
)
switch_core_session_perform_write_lock
(
switch_core_session_t
*
session
,
const
char
*
file
,
const
char
*
func
,
int
line
)
{
switch_log_printf
(
SWITCH_CHANNEL_ID_LOG
,
file
,
func
,
line
,
NULL
,
SWITCH_LOG_ERROR
,
"%s Write lock AQUIRED
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_ID_LOG
,
file
,
func
,
line
,
NULL
,
SWITCH_LOG_ERROR
,
"%s Write lock A
C
QUIRED
\n
"
,
switch_channel_get_name
(
session
->
channel
));
#else
SWITCH_DECLARE
(
void
)
switch_core_session_write_lock
(
switch_core_session_t
*
session
)
...
...
src/switch_core_state_machine.c
浏览文件 @
40c96d77
...
...
@@ -226,7 +226,7 @@ static void print_trace(void)
#else
static
void
print_trace
(
void
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Trace not ava
li
able =(
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CRIT
,
"Trace not ava
il
able =(
\n
"
);
}
#endif
...
...
src/switch_event.c
浏览文件 @
40c96d77
...
...
@@ -803,7 +803,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch
return
SWITCH_STATUS_MEMERR
;
}
/* switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "hit serialze!.\n"); */
/* switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "hit serialze
d
!.\n"); */
for
(
hp
=
event
->
headers
;
hp
;
hp
=
hp
->
next
)
{
/*
* grab enough memory to store 3x the string (url encode takes one char and turns it into %XX)
...
...
src/switch_rtp.c
浏览文件 @
40c96d77
...
...
@@ -1386,7 +1386,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
if
(
stat
&&
rtp_session
->
recv_msg
.
header
.
pt
!=
rtp_session
->
te
&&
rtp_session
->
recv_msg
.
header
.
pt
!=
rtp_session
->
cng_pt
)
{
if
(
++
rtp_session
->
srtp_errs
>=
MAX_SRTP_ERRS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"error: srtp unprotect
ion
failed with code %d%s
\n
"
,
stat
,
"error: srtp unprotect failed with code %d%s
\n
"
,
stat
,
stat
==
err_status_replay_fail
?
" (replay check failed)"
:
stat
==
err_status_auth_fail
?
" (auth check failed)"
:
""
);
ret
=
-
1
;
...
...
@@ -1403,7 +1403,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
/* RFC2833 ... like all RFC RE: VoIP, guar
e
nteed to drive you to insanity!
/* RFC2833 ... like all RFC RE: VoIP, guar
a
nteed to drive you to insanity!
We know the real rules here, but if we enforce them, it's an interop nightmare so,
we put up with as much as we can so we don't have to deal with being punished for
doing it right. Nice guys finish last!
...
...
src/switch_scheduler.c
浏览文件 @
40c96d77
...
...
@@ -234,7 +234,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_del_task_id(uint32_t task_id)
for
(
tp
=
globals
.
task_list
;
tp
;
tp
=
tp
->
next
)
{
if
(
tp
->
task
.
task_id
==
task_id
)
{
if
(
switch_test_flag
(
tp
,
SSHF_NO_DEL
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Attempt made to delete undelet
e
able task #%u (group %s)
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Attempt made to delete undeletable task #%u (group %s)
\n
"
,
tp
->
task
.
task_id
,
tp
->
task
.
group
);
break
;
}
...
...
@@ -265,7 +265,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_del_task_group(const char *group)
for
(
tp
=
globals
.
task_list
;
tp
;
tp
=
tp
->
next
)
{
if
(
!
switch_strlen_zero
(
group
)
&&
!
strcmp
(
tp
->
task
.
group
,
group
))
{
if
(
switch_test_flag
(
tp
,
SSHF_NO_DEL
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Attempt made to delete undelet
e
able task #%u (group %s)
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Attempt made to delete undeletable task #%u (group %s)
\n
"
,
tp
->
task
.
task_id
,
group
);
continue
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论