Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
b9e03353
提交
b9e03353
authored
3月 16, 2007
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@4616
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
210926e5
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
47 行增加
和
64 行删除
+47
-64
switch_private.h.in
src/include/switch_private.h.in
+0
-3
Makefile.in
src/mod/Makefile.in
+10
-47
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+13
-12
mod_shout.c
src/mod/formats/mod_shout/mod_shout.c
+24
-2
没有找到文件。
src/include/switch_private.h.in
浏览文件 @
b9e03353
...
...
@@ -7,9 +7,6 @@
*/
#undef HAVE_DIRENT_H
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME
...
...
src/mod/Makefile.in
浏览文件 @
b9e03353
...
...
@@ -33,8 +33,6 @@ POST_INSTALL = :
NORMAL_UNINSTALL
=
:
PRE_UNINSTALL
=
:
POST_UNINSTALL
=
:
build_triplet
=
@build@
host_triplet
=
@host@
subdir
=
src/mod
DIST_COMMON
=
$(srcdir)
/Makefile.am
$(srcdir)
/Makefile.in
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
...
...
@@ -60,7 +58,6 @@ ACLOCAL = @ACLOCAL@
AMDEP_FALSE
=
@AMDEP_FALSE@
AMDEP_TRUE
=
@AMDEP_TRUE@
AMTAR
=
@AMTAR@
AR
=
@AR@
AUTOCONF
=
@AUTOCONF@
AUTOHEADER
=
@AUTOHEADER@
AUTOMAKE
=
@AUTOMAKE@
...
...
@@ -73,22 +70,15 @@ CPPFLAGS = @CPPFLAGS@
CRASHPROT_FALSE
=
@CRASHPROT_FALSE@
CRASHPROT_TRUE
=
@CRASHPROT_TRUE@
CURL
=
@CURL@
CXX
=
@CXX@
CXXCPP
=
@CXXCPP@
CXXDEPMODE
=
@CXXDEPMODE@
CXXFLAGS
=
@CXXFLAGS@
CYGPATH_W
=
@CYGPATH_W@
DEFS
=
@DEFS@
DEPDIR
=
@DEPDIR@
DYNAMIC_LIB_EXTEN
=
@DYNAMIC_LIB_EXTEN@
ECHO
=
@ECHO@
ECHO_C
=
@ECHO_C@
ECHO_N
=
@ECHO_N@
ECHO_T
=
@ECHO_T@
EGREP
=
@EGREP@
EXEEXT
=
@EXEEXT@
F77
=
@F77@
FFLAGS
=
@FFLAGS@
GETLIB
=
@GETLIB@
INSTALL_DATA
=
@INSTALL_DATA@
INSTALL_PROGRAM
=
@INSTALL_PROGRAM@
...
...
@@ -106,8 +96,6 @@ LIBCURL_CPPFLAGS = @LIBCURL_CPPFLAGS@
LIBCURL_DEPS
=
@LIBCURL_DEPS@
LIBOBJS
=
@LIBOBJS@
LIBS
=
@LIBS@
LIBTOOL
=
@LIBTOOL@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
MAKEINFO
=
@MAKEINFO@
OBJEXT
=
@OBJEXT@
...
...
@@ -119,7 +107,6 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION
=
@PACKAGE_VERSION@
PATH_SEPARATOR
=
@PATH_SEPARATOR@
PRTDIAG
=
@PRTDIAG@
RANLIB
=
@RANLIB@
SET_MAKE
=
@SET_MAKE@
SHELL
=
@SHELL@
SOLINK
=
@SOLINK@
...
...
@@ -134,34 +121,20 @@ WANT_DEBUG_TRUE = @WANT_DEBUG_TRUE@
WGET
=
@WGET@
ZCAT
=
@ZCAT@
_libcurl_config
=
@_libcurl_config@
ac_ct_AR
=
@ac_ct_AR@
ac_ct_CC
=
@ac_ct_CC@
ac_ct_CXX
=
@ac_ct_CXX@
ac_ct_F77
=
@ac_ct_F77@
ac_ct_RANLIB
=
@ac_ct_RANLIB@
ac_ct_STRIP
=
@ac_ct_STRIP@
am__fastdepCC_FALSE
=
@am__fastdepCC_FALSE@
am__fastdepCC_TRUE
=
@am__fastdepCC_TRUE@
am__fastdepCXX_FALSE
=
@am__fastdepCXX_FALSE@
am__fastdepCXX_TRUE
=
@am__fastdepCXX_TRUE@
am__include
=
@am__include@
am__leading_dot
=
@am__leading_dot@
am__quote
=
@am__quote@
am__tar
=
@am__tar@
am__untar
=
@am__untar@
bindir
=
@bindir@
build
=
@build@
build_alias
=
@build_alias@
build_cpu
=
@build_cpu@
build_os
=
@build_os@
build_vendor
=
@build_vendor@
datadir
=
@datadir@
exec_prefix
=
@exec_prefix@
host
=
@host@
host_alias
=
@host_alias@
host_cpu
=
@host_cpu@
host_os
=
@host_os@
host_vendor
=
@host_vendor@
includedir
=
@includedir@
infodir
=
@infodir@
install_sh
=
@install_sh@
...
...
@@ -230,15 +203,6 @@ $(top_srcdir)/configure: $(am__configure_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
mostlyclean-libtool
:
-
rm
-f
*
.lo
clean-libtool
:
-
rm
-rf
.libs _libs
distclean-libtool
:
-
rm
-f
libtool
uninstall-info-am
:
tags
:
TAGS
TAGS
:
...
...
@@ -300,11 +264,11 @@ distclean-generic:
maintainer-clean-generic
:
@
echo
"This command is intended for maintainers to use"
@
echo
"it deletes files that may require special tools to rebuild."
clean-am
:
clean-generic
clean-libtool
mostlyclean-am
clean-am
:
clean-generic mostlyclean-am
distclean
:
distclean-am
-
rm
-f
Makefile
distclean-am
:
clean-am distclean-generic
distclean-libtool
distclean-am
:
clean-am distclean-generic
dvi
:
dvi-am
...
...
@@ -332,7 +296,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean
:
mostlyclean-am
mostlyclean-am
:
mostlyclean-generic
mostlyclean-libtool
mostlyclean-am
:
mostlyclean-generic
pdf
:
pdf-am
...
...
@@ -344,14 +308,13 @@ ps-am:
uninstall-am
:
uninstall-info-am
.PHONY
:
all all-am check check-am clean clean-generic clean-libtool
\
distclean distclean-generic distclean-libtool distdir dvi
\
dvi-am html html-am info info-am install install-am
\
install-data install-data-am install-exec install-exec-am
\
install-info install-info-am install-man install-strip
\
installcheck installcheck-am installdirs maintainer-clean
\
maintainer-clean-generic mostlyclean mostlyclean-generic
\
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
\
.PHONY
:
all all-am check check-am clean clean-generic distclean
\
distclean-generic distdir dvi dvi-am html html-am info info-am
\
install install-am install-data install-data-am install-exec
\
install-exec-am install-info install-info-am install-man
\
install-strip installcheck installcheck-am installdirs
\
maintainer-clean maintainer-clean-generic mostlyclean
\
mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
\
uninstall-info-am
...
...
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
b9e03353
...
...
@@ -731,7 +731,6 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
}
/* If a file or speech event is being played */
if
(
conference
->
fnode
)
{
switch_mutex_lock
(
conference
->
mutex
);
/* Lead in time */
if
(
conference
->
fnode
->
leadin
)
{
conference
->
fnode
->
leadin
--
;
...
...
@@ -759,8 +758,6 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
}
}
has_file_data
=
1
;
switch_mutex_unlock
(
conference
->
mutex
);
}
else
{
has_file_data
=
0
;
}
...
...
@@ -1751,16 +1748,9 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
return
NULL
;
}
if
(
switch_core_timer_init
(
&
timer
,
conference
->
timer_name
,
conference
->
interval
,
samples
,
rec
->
pool
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"setup timer success interval: %u samples: %u
\n
"
,
conference
->
interval
,
samples
);
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Timer Setup Failed. Conference Cannot Start
\n
"
);
return
NULL
;
}
switch_mutex_lock
(
globals
.
hash_mutex
);
globals
.
threads
++
;
switch_mutex_unlock
(
globals
.
hash_mutex
);
switch_mutex_unlock
(
globals
.
hash_mutex
);
member
=
&
smember
;
...
...
@@ -1805,11 +1795,21 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
goto
end
;
}
if
(
switch_core_timer_init
(
&
timer
,
conference
->
timer_name
,
conference
->
interval
,
samples
,
rec
->
pool
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"setup timer success interval: %u samples: %u
\n
"
,
conference
->
interval
,
samples
);
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Timer Setup Failed. Conference Cannot Start
\n
"
);
goto
end
;
}
if
((
vval
=
switch_mprintf
(
"Conference %s"
,
conference
->
name
)))
{
switch_core_file_set_string
(
&
fh
,
SWITCH_AUDIO_COL_STR_TITLE
,
vval
);
switch_safe_free
(
vval
);
}
switch_core_file_set_string
(
&
fh
,
SWITCH_AUDIO_COL_STR_ARTIST
,
"FreeSWITCH mod_conference Software Conference Module"
);
while
(
switch_test_flag
(
member
,
MFLAG_RUNNING
)
&&
switch_test_flag
(
conference
,
CFLAG_RUNNING
)
&&
conference
->
count
)
{
mux_used
=
(
uint32_t
)
switch_buffer_inuse
(
member
->
mux_buffer
);
...
...
@@ -1832,7 +1832,8 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
if
(
!
switch_test_flag
((
&
fh
),
SWITCH_FILE_PAUSE
))
{
switch_size_t
len
=
(
switch_size_t
)
rlen
/
sizeof
(
int16_t
);
if
(
switch_core_file_write
(
&
fh
,
data
,
&
len
)
!=
SWITCH_STATUS_SUCCESS
)
{
goto
end
;
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_DEBUG
,
"Write Failed
\n
"
);
switch_clear_flag_locked
(
member
,
MFLAG_RUNNING
);
}
}
}
...
...
src/mod/formats/mod_shout/mod_shout.c
浏览文件 @
b9e03353
...
...
@@ -530,8 +530,9 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, char *path)
{
shout_context_t
*
context
;
char
*
host
,
*
file
;
char
*
username
,
*
password
;
char
*
username
,
*
password
,
*
port
;
char
*
err
=
NULL
;
int
portno
=
0
;
if
((
context
=
switch_core_alloc
(
handle
->
memory_pool
,
sizeof
(
*
context
)))
==
0
)
{
return
SWITCH_STATUS_MEMERR
;
...
...
@@ -610,6 +611,17 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, char *path)
goto
error
;
}
if
((
port
=
strchr
(
host
,
':'
)))
{
*
port
++
=
'\0'
;
if
(
port
)
{
portno
=
atoi
(
port
);
}
}
if
(
!
portno
)
{
portno
=
8000
;
}
if
(
!
(
context
->
shout
=
shout_new
()))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Could not allocate shout_t
\n
"
);
goto
error
;
...
...
@@ -625,7 +637,7 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, char *path)
goto
error
;
}
if
(
shout_set_port
(
context
->
shout
,
8000
)
!=
SHOUTERR_SUCCESS
)
{
if
(
shout_set_port
(
context
->
shout
,
portno
)
!=
SHOUTERR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error setting port: %s
\n
"
,
shout_get_error
(
context
->
shout
));
goto
error
;
}
...
...
@@ -650,6 +662,11 @@ static switch_status_t shout_file_open(switch_file_handle_t *handle, char *path)
goto
error
;
}
if
(
shout_set_description
(
context
->
shout
,
"FreeSWITCH mod_shout Broadcasting Module"
)
!=
SHOUTERR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error setting name: %s
\n
"
,
shout_get_error
(
context
->
shout
));
goto
error
;
}
if
(
shout_set_audio_info
(
context
->
shout
,
"bitrate"
,
"64000"
)
!=
SHOUTERR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error setting user: %s
\n
"
,
shout_get_error
(
context
->
shout
));
goto
error
;
...
...
@@ -818,6 +835,11 @@ static switch_status_t shout_file_set_string(switch_file_handle_t *handle, switc
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error setting name: %s
\n
"
,
shout_get_error
(
context
->
shout
));
}
break
;
case
SWITCH_AUDIO_COL_STR_ARTIST
:
if
(
shout_set_description
(
context
->
shout
,
string
)
!=
SHOUTERR_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Error setting name: %s
\n
"
,
shout_get_error
(
context
->
shout
));
}
break
;
default:
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Value Ignored
\n
"
);
break
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论