Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f5b9bef3
提交
f5b9bef3
authored
9月 25, 2014
作者:
Brian West
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://stash.freeswitch.org:7999/fs/freeswitch
上级
07671917
f7de058a
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
58 行增加
和
21 行删除
+58
-21
modules.conf.in
build/modules.conf.in
+1
-1
modules.conf.xml
conf/vanilla/autoload_configs/modules.conf.xml
+1
-1
configure.ac
configure.ac
+1
-1
bootstrap.sh
debian/bootstrap.sh
+1
-2
Doxygen.conf
docs/Doxygen.conf
+1
-1
fs_cli.c
libs/esl/fs_cli.c
+17
-3
.update
libs/sofia-sip/.update
+1
-1
ws.c
libs/sofia-sip/libsofia-sip-ua/tport/ws.c
+15
-5
ws.c
src/mod/endpoints/mod_verto/ws.c
+15
-5
switch_channel.c
src/switch_channel.c
+5
-1
没有找到文件。
build/modules.conf.in
浏览文件 @
f5b9bef3
...
...
@@ -4,7 +4,7 @@
#applications/mod_blacklist
#applications/mod_callcenter
#applications/mod_cidlookup
applications/mod_cluechoo
#
applications/mod_cluechoo
applications/mod_commands
applications/mod_conference
#applications/mod_curl
...
...
conf/vanilla/autoload_configs/modules.conf.xml
浏览文件 @
f5b9bef3
...
...
@@ -60,7 +60,7 @@
<!--<load module="mod_easyroute"/>-->
<load
module=
"mod_esf"
/>
<load
module=
"mod_fsv"
/>
<
load
module=
"mod_cluechoo"
/
>
<
!--<load module="mod_cluechoo"/>--
>
<load
module=
"mod_valet_parking"
/>
<!--<load module="mod_fsk"/>-->
<!--<load module="mod_spy"/>-->
...
...
configure.ac
浏览文件 @
f5b9bef3
...
...
@@ -342,7 +342,7 @@ if test "$ax_cv_c_compiler_vendor" = "gnu"; then
saved_CFLAGS="$CFLAGS"
AC_CACHE_CHECK([whether compiler supports -Wno-unused-result],
[ac_cv_gcc_supports_w_no_unused_result], [
CFLAGS="$CFLAGS -Wno-unused-result"
CFLAGS="$CFLAGS -Wno-unused-result
-Wno-error=unused-result
"
AC_TRY_COMPILE([],[return 0;],
[ac_cv_gcc_supports_w_no_unused_result=yes],
[ac_cv_gcc_supports_w_no_unused_result=no])])
...
...
debian/bootstrap.sh
浏览文件 @
f5b9bef3
...
...
@@ -15,6 +15,7 @@ avoid_mods=(
applications/mod_osp
applications/mod_rad_auth
applications/mod_skel
applications/mod_cluechoo
asr_tts/mod_cepstral
codecs/mod_com_g729
codecs/mod_ilbc
...
...
@@ -433,7 +434,6 @@ Depends: \${misc:Depends}, freeswitch (= \${binary:Version}),
freeswitch-mod-voicemail (= \
${
binary
:Version
}
),
freeswitch-mod-esf (= \
${
binary
:Version
}
),
freeswitch-mod-fsv (= \
${
binary
:Version
}
),
freeswitch-mod-cluechoo (= \
${
binary
:Version
}
),
freeswitch-mod-valet-parking (= \
${
binary
:Version
}
),
freeswitch-mod-httapi (= \
${
binary
:Version
}
),
freeswitch-mod-dialplan-xml (= \
${
binary
:Version
}
),
...
...
@@ -564,7 +564,6 @@ Recommends:
freeswitch-mod-blacklist (= \
${
binary
:Version
}
),
freeswitch-mod-callcenter (= \
${
binary
:Version
}
),
freeswitch-mod-cidlookup (= \
${
binary
:Version
}
),
freeswitch-mod-cluechoo (= \
${
binary
:Version
}
),
freeswitch-mod-commands (= \
${
binary
:Version
}
),
freeswitch-mod-conference (= \
${
binary
:Version
}
),
freeswitch-mod-curl (= \
${
binary
:Version
}
),
...
...
docs/Doxygen.conf
浏览文件 @
f5b9bef3
...
...
@@ -31,7 +31,7 @@ PROJECT_NAME = "FreeSWITCH API Documentation"
# This could be handy for archiving the generated documentation or
# if some version control system is used.
PROJECT_NUMBER
=
1
.
0
.
6
PROJECT_NUMBER
=
1
.
5
.
14
b
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
...
...
libs/esl/fs_cli.c
浏览文件 @
f5b9bef3
...
...
@@ -61,6 +61,7 @@ typedef struct {
int
log_uuid
;
int
log_uuid_length
;
int
quiet
;
int
use_history_file
;
int
batch_mode
;
char
prompt_color
[
12
];
char
input_text_color
[
12
];
...
...
@@ -1222,6 +1223,7 @@ static void read_config(const char *dft_cfile, const char *cfile) {
esl_set_string
(
profiles
[
pcount
].
prompt_color
,
prompt_color
);
esl_set_string
(
profiles
[
pcount
].
input_text_color
,
input_text_color
);
esl_set_string
(
profiles
[
pcount
].
output_text_color
,
output_text_color
);
profiles
[
pcount
].
use_history_file
=
1
;
esl_log
(
ESL_LOG_DEBUG
,
"Found Profile [%s]
\n
"
,
profiles
[
pcount
].
name
);
pcount
++
;
}
...
...
@@ -1257,6 +1259,8 @@ static void read_config(const char *dft_cfile, const char *cfile) {
}
}
else
if
(
!
strcasecmp
(
var
,
"quiet"
))
{
profiles
[
pcount
-
1
].
quiet
=
esl_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"no-history-file"
))
{
profiles
[
pcount
-
1
].
use_history_file
=
!
esl_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"prompt-color"
))
{
esl_set_string
(
profiles
[
pcount
-
1
].
prompt_color
,
match_color
(
val
));
}
else
if
(
!
strcasecmp
(
var
,
"input-text-color"
))
{
...
...
@@ -1298,6 +1302,8 @@ int main(int argc, char *argv[])
const
char
*
line
=
NULL
;
char
cmd_str
[
1024
]
=
""
;
cli_profile_t
*
profile
=
NULL
;
int
argv_use_history_file
=
1
;
int
use_history_file
=
0
;
#ifndef WIN32
char
hfile
[
512
]
=
"/tmp/fs_cli_history"
;
char
cfile
[
512
]
=
"/etc/fs_cli.conf"
;
...
...
@@ -1324,6 +1330,7 @@ int main(int argc, char *argv[])
{
"log-uuid-short"
,
0
,
0
,
'S'
},
{
"quiet"
,
0
,
0
,
'q'
},
{
"batchmode"
,
0
,
0
,
'b'
},
{
"no-history-file"
,
0
,
0
,
'Q'
},
{
"retry"
,
0
,
0
,
'r'
},
{
"interrupt"
,
0
,
0
,
'i'
},
{
"reconnect"
,
0
,
0
,
'R'
},
...
...
@@ -1381,6 +1388,7 @@ int main(int argc, char *argv[])
esl_set_string
(
internal_profile
.
prompt_color
,
prompt_color
);
esl_set_string
(
internal_profile
.
input_text_color
,
input_text_color
);
esl_set_string
(
internal_profile
.
output_text_color
,
output_text_color
);
internal_profile
.
use_history_file
=
1
;
if
(
home
)
{
snprintf
(
hfile
,
sizeof
(
hfile
),
"%s/.fs_cli_history"
,
home
);
snprintf
(
cfile
,
sizeof
(
cfile
),
"%s/.fs_cli_conf"
,
home
);
...
...
@@ -1395,7 +1403,7 @@ int main(int argc, char *argv[])
esl_global_set_default_logger
(
6
);
/* default debug level to 6 (info) */
for
(;;)
{
int
option_index
=
0
;
opt
=
getopt_long
(
argc
,
argv
,
"H:P:u:p:d:x:l:USt:T:qrRhib?n"
,
options
,
&
option_index
);
opt
=
getopt_long
(
argc
,
argv
,
"H:P:u:p:d:x:l:USt:T:q
Q
rRhib?n"
,
options
,
&
option_index
);
if
(
opt
==
-
1
)
break
;
switch
(
opt
)
{
case
'H'
:
...
...
@@ -1450,6 +1458,9 @@ int main(int argc, char *argv[])
case
'b'
:
argv_batch
=
1
;
break
;
case
'Q'
:
argv_use_history_file
=
0
;
break
;
case
'i'
:
allow_ctl_c
=
1
;
break
;
...
...
@@ -1505,6 +1516,9 @@ int main(int argc, char *argv[])
profile
->
batch_mode
=
1
;
feature_level
=
0
;
}
if
(
argv_use_history_file
&&
profile
->
use_history_file
)
{
use_history_file
=
1
;
}
if
(
*
argv_loglevel
)
{
esl_set_string
(
profile
->
loglevel
,
argv_loglevel
);
profile
->
quiet
=
0
;
...
...
@@ -1658,7 +1672,7 @@ int main(int argc, char *argv[])
}
history
(
myhistory
,
&
ev
,
H_SETSIZE
,
800
);
el_set
(
el
,
EL_HIST
,
history
,
myhistory
);
history
(
myhistory
,
&
ev
,
H_LOAD
,
hfile
);
if
(
use_history_file
)
history
(
myhistory
,
&
ev
,
H_LOAD
,
hfile
);
el_source
(
el
,
NULL
);
#endif
#ifdef WIN32
...
...
@@ -1712,7 +1726,7 @@ int main(int argc, char *argv[])
}
#ifdef HAVE_LIBEDIT
done:
history
(
myhistory
,
&
ev
,
H_SAVE
,
hfile
);
if
(
use_history_file
)
history
(
myhistory
,
&
ev
,
H_SAVE
,
hfile
);
history_end
(
myhistory
);
el_end
(
el
);
#endif
...
...
libs/sofia-sip/.update
浏览文件 @
f5b9bef3
Wed Sep 24 01:09:42
CDT 2014
Thu Sep 25 21:43:53
CDT 2014
libs/sofia-sip/libsofia-sip-ua/tport/ws.c
浏览文件 @
f5b9bef3
...
...
@@ -332,19 +332,22 @@ ssize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes, int block)
ssize_t
r
;
int
err
=
0
;
wsh
->
x
++
;
if
(
wsh
->
x
>
250
)
ms_sleep
(
1
);
if
(
wsh
->
ssl
)
{
do
{
r
=
SSL_read
(
wsh
->
ssl
,
data
,
bytes
);
ms_sleep
(
10
);
if
(
r
==
-
1
)
{
err
=
SSL_get_error
(
wsh
->
ssl
,
r
);
if
(
!
block
&&
err
==
SSL_ERROR_WANT_READ
)
{
r
=
-
2
;
goto
end
;
}
if
(
block
)
ms_sleep
(
10
);
}
}
while
(
r
==
-
1
&&
err
==
SSL_ERROR_WANT_READ
&&
wsh
->
x
<
100
);
...
...
@@ -354,10 +357,17 @@ ssize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes, int block)
do
{
r
=
recv
(
wsh
->
sock
,
data
,
bytes
,
0
);
ms_sleep
(
10
);
if
(
r
==
-
1
)
{
if
(
!
block
&&
xp_is_blocking
(
xp_errno
()))
{
r
=
-
2
;
goto
end
;
}
if
(
block
)
ms_sleep
(
10
);
}
}
while
(
r
==
-
1
&&
xp_is_blocking
(
xp_errno
())
&&
wsh
->
x
<
100
);
if
(
wsh
->
x
>=
100
)
{
if
(
wsh
->
x
>=
100
0
||
(
block
&&
wsh
->
x
>=
100
)
)
{
r
=
-
1
;
}
...
...
src/mod/endpoints/mod_verto/ws.c
浏览文件 @
f5b9bef3
...
...
@@ -332,19 +332,22 @@ ssize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes, int block)
ssize_t
r
;
int
err
=
0
;
wsh
->
x
++
;
if
(
wsh
->
x
>
250
)
ms_sleep
(
1
);
if
(
wsh
->
ssl
)
{
do
{
r
=
SSL_read
(
wsh
->
ssl
,
data
,
bytes
);
ms_sleep
(
10
);
if
(
r
==
-
1
)
{
err
=
SSL_get_error
(
wsh
->
ssl
,
r
);
if
(
!
block
&&
err
==
SSL_ERROR_WANT_READ
)
{
r
=
-
2
;
goto
end
;
}
if
(
block
)
ms_sleep
(
10
);
}
}
while
(
r
==
-
1
&&
err
==
SSL_ERROR_WANT_READ
&&
wsh
->
x
<
100
);
...
...
@@ -354,10 +357,17 @@ ssize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes, int block)
do
{
r
=
recv
(
wsh
->
sock
,
data
,
bytes
,
0
);
ms_sleep
(
10
);
if
(
r
==
-
1
)
{
if
(
!
block
&&
xp_is_blocking
(
xp_errno
()))
{
r
=
-
2
;
goto
end
;
}
if
(
block
)
ms_sleep
(
10
);
}
}
while
(
r
==
-
1
&&
xp_is_blocking
(
xp_errno
())
&&
wsh
->
x
<
100
);
if
(
wsh
->
x
>=
100
)
{
if
(
wsh
->
x
>=
100
0
||
(
block
&&
wsh
->
x
>=
100
)
)
{
r
=
-
1
;
}
...
...
src/switch_channel.c
浏览文件 @
f5b9bef3
...
...
@@ -4203,7 +4203,11 @@ SWITCH_DECLARE(switch_status_t) switch_channel_get_variables(switch_channel_t *c
{
switch_status_t
status
;
switch_mutex_lock
(
channel
->
profile_mutex
);
status
=
switch_event_dup
(
event
,
channel
->
variables
);
if
(
channel
->
variables
)
{
status
=
switch_event_dup
(
event
,
channel
->
variables
);
}
else
{
status
=
switch_event_create
(
event
,
SWITCH_EVENT_CHANNEL_DATA
);
}
switch_mutex_unlock
(
channel
->
profile_mutex
);
return
status
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论