Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
7064487d
提交
7064487d
authored
5月 11, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-2936 please test on windows
上级
e544e4cf
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
24 行增加
和
28 行删除
+24
-28
Makefile.am
Makefile.am
+4
-2
modmake.rules.in
build/modmake.rules.in
+3
-3
configure.in
configure.in
+5
-0
switch.h
src/include/switch.h
+3
-0
Makefile
src/mod/applications/mod_cidlookup/Makefile
+0
-1
Makefile
src/mod/applications/mod_curl/Makefile
+0
-1
Makefile
src/mod/applications/mod_memcache/Makefile
+0
-2
Makefile
src/mod/event_handlers/mod_json_cdr/Makefile
+0
-1
Makefile
src/mod/formats/mod_shout/Makefile
+0
-2
mod_shout.c
src/mod/formats/mod_shout/mod_shout.c
+0
-3
mod_spidermonkey.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
+0
-6
mod_spidermonkey_curl.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey_curl.c
+0
-1
Makefile
src/mod/xml_int/mod_xml_cdr/Makefile
+0
-1
Makefile
src/mod/xml_int/mod_xml_curl/Makefile
+0
-1
mod_xml_curl.c
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
+1
-4
switch_core.c
src/switch_core.c
+8
-0
没有找到文件。
Makefile.am
浏览文件 @
7064487d
...
...
@@ -130,7 +130,7 @@ endif
lib_LTLIBRARIES
=
libfreeswitch.la
libfreeswitch_la_CFLAGS
=
$(CORE_CFLAGS)
$(AM_CFLAGS)
libfreeswitch_la_LDFLAGS
=
-version-info
1:0:0
$(AM_LDFLAGS)
$(PLATFORM_CORE_DEPLIBS)
libfreeswitch_la_LIBADD
=
$(CORE_LIBS)
libfreeswitch_la_LIBADD
=
$(CORE_LIBS)
$(LIBCURL)
libfreeswitch_la_DEPENDENCIES
=
$(BUILT_SOURCES)
if
HAVE_ODBC
...
...
@@ -180,7 +180,8 @@ library_include_HEADERS = \
libs/libteletone/src/libteletone_generate.h
\
libs/libteletone/src/libteletone.h
\
src/include/switch_limit.h
\
src/include/switch_odbc.h
src/include/switch_odbc.h
\
src/include/switch_curl.h
nodist_libfreeswitch_la_SOURCES
=
\
src/include/switch_frame.h
\
...
...
@@ -240,6 +241,7 @@ libfreeswitch_la_SOURCES = \
src/switch_pcm.c
\
src/switch_profile.c
\
src/switch_json.c
\
src/switch_curl.c
\
libs/stfu/stfu.c
\
libs/libteletone/src/libteletone_detect.c
\
libs/libteletone/src/libteletone_generate.c
\
...
...
build/modmake.rules.in
浏览文件 @
7064487d
...
...
@@ -80,9 +80,9 @@ TOUCH_TARGET=@TOUCH_TARGET@
MAKE_OPTS = `test -n "$(VERBOSE)" || echo -s`
RECURSE_MODNAME=`pwd | sed -e 's|^.*/||'`
RECURSE_SOURCEFILE=`if test -f "$$modname.cpp" -o -f "$(MODDIR)/$$modname.cpp"; then echo "$$modname.cpp"; else echo "$$modname.c"; fi`
RECURSE_OUR_DEPS=
`test -z "$(WANT_CURL)" || if test ! -z "$(LIBCURL_DEPS)"; then echo $(CURLLA); fi `
RECURSE_OUR_CFLAGS=`
test -z "$(WANT_CURL)" || echo $(LIBCURL_CPPFLAGS) ; $(LOCAL_INSERT_CFLAGS)
`
RECURSE_OUR_LDFLAGS=`
test -z "$(WANT_CURL)" || echo $(LIBCURL) ; $(LOCAL_INSERT_LDFLAGS)
`
RECURSE_OUR_DEPS=
RECURSE_OUR_CFLAGS=`
$(LOCAL_INSERT_CFLAGS)
`
RECURSE_OUR_LDFLAGS=`
$(LOCAL_INSERT_LDFLAGS)
`
RECURSE_MODDIR=`if test -z $(MODDIR); then pwd | sed -e 's|$(switch_builddir)|$(switch_srcdir)|'; else echo $(MODDIR); fi`
RECURSE_MAKE=+modname="$(RECURSE_MODNAME)" ; \
sourcefile="$(RECURSE_SOURCEFILE)" ; \
...
...
configure.in
浏览文件 @
7064487d
...
...
@@ -790,6 +790,11 @@ if test "$ac_cv_use_system_curl" != "yes" ; then
LIBCURL_DEPS='${switch_builddir}/libs/curl/lib/libcurl.la'
LIBCURL='${switch_builddir}/libs/curl/lib/libcurl.la'
LIBCURL_CPPFLAGS='-I${switch_srcdir}/libs/curl/include'
else
AC_CHECK_LIB(curl, curl_global_init, have_curl=yes, have_curl=no)
if test "x$have_curl" = "xyes" ; then
APR_ADDTO(SWITCH_AM_LDFLAGS, -lcurl)
fi
fi
AC_SUBST(LIBCURL_DEPS)
...
...
src/include/switch.h
浏览文件 @
7064487d
...
...
@@ -137,6 +137,9 @@
#include "switch_odbc.h"
#include "switch_json.h"
#include "switch_limit.h"
#ifndef WIN32
#include "switch_curl.h"
#endif
#include <libteletone.h>
...
...
src/mod/applications/mod_cidlookup/Makefile
浏览文件 @
7064487d
WANT_CURL
=
yes
BASE
=
../../../..
include
$(BASE)/build/modmake.rules
src/mod/applications/mod_curl/Makefile
浏览文件 @
7064487d
json-c
=
json-c-0.9
BASE
=
../../../..
WANT_CURL
=
yes
JSON_DIR
=
$(switch_srcdir)
/libs/
$
(
json-c
)
JSON_BUILDDIR
=
$(switch_builddir)
/libs/
$
(
json-c
)
...
...
src/mod/applications/mod_memcache/Makefile
浏览文件 @
7064487d
MEMCACHED
=
libmemcached-0.32
BASE
=
../../../..
WANT_CURL
=
yes
MEMCACHED_DIR
=
$(switch_srcdir)
/libs/
$(MEMCACHED)
MEMCACHED_BUILDDIR
=
$(switch_builddir)
/libs/
$(MEMCACHED)
...
...
src/mod/event_handlers/mod_json_cdr/Makefile
浏览文件 @
7064487d
json-c
=
json-c-0.9
BASE
=
../../../..
WANT_CURL
=
yes
JSON_DIR
=
$(switch_srcdir)
/libs/
$
(
json-c
)
JSON_BUILDDIR
=
$(switch_builddir)
/libs/
$
(
json-c
)
...
...
src/mod/formats/mod_shout/Makefile
浏览文件 @
7064487d
...
...
@@ -3,8 +3,6 @@ SHOUT=libshout-2.2.2
MPG123
=
mpg123-1.13.2
BASE
=
../../../..
WANT_CURL
=
yes
LAME_DIR
=
$(switch_srcdir)
/libs/
$(LAME)
SHOUT_DIR
=
$(switch_srcdir)
/libs/
$(SHOUT)
MPG123_DIR
=
$(switch_srcdir)
/libs/
$(MPG123)
...
...
src/mod/formats/mod_shout/mod_shout.c
浏览文件 @
7064487d
...
...
@@ -1480,8 +1480,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_shout_load)
supported_formats
[
0
]
=
"shout"
;
supported_formats
[
1
]
=
"mp3"
;
curl_global_init
(
CURL_GLOBAL_ALL
);
/* connect my internal structure to the blank pointer passed to me */
*
module_interface
=
switch_loadable_module_create_module_interface
(
pool
,
modname
);
file_interface
=
switch_loadable_module_create_interface
(
*
module_interface
,
SWITCH_FILE_INTERFACE
);
...
...
@@ -1507,7 +1505,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_shout_load)
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_shout_shutdown
)
{
curl_global_cleanup
();
mpg123_exit
();
return
SWITCH_STATUS_SUCCESS
;
}
...
...
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
浏览文件 @
7064487d
...
...
@@ -2551,7 +2551,6 @@ static JSBool js_fetchurl_file(JSContext * cx, JSObject * obj, uintN argc, jsval
url
=
JS_GetStringBytes
(
JS_ValueToString
(
cx
,
argv
[
0
]));
filename
=
JS_GetStringBytes
(
JS_ValueToString
(
cx
,
argv
[
1
]));
curl_global_init
(
CURL_GLOBAL_ALL
);
curl_handle
=
curl_easy_init
();
if
(
!
strncasecmp
(
url
,
"https"
,
5
))
{
curl_easy_setopt
(
curl_handle
,
CURLOPT_SSL_VERIFYPEER
,
0
);
...
...
@@ -2600,7 +2599,6 @@ static JSBool js_fetchurl(JSContext * cx, JSObject * obj, uintN argc, jsval * ar
JS_ValueToInt32
(
cx
,
argv
[
1
],
&
buffer_size
);
}
curl_global_init
(
CURL_GLOBAL_ALL
);
curl_handle
=
curl_easy_init
();
if
(
!
strncasecmp
(
url
,
"https"
,
5
))
{
curl_easy_setopt
(
curl_handle
,
CURLOPT_SSL_VERIFYPEER
,
0
);
...
...
@@ -3803,8 +3801,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spidermonkey_load)
SWITCH_ADD_APP
(
app_interface
,
"javascript"
,
"Launch JS ivr"
,
"Run a javascript ivr on a channel"
,
js_dp_function
,
"<script> [additional_vars [...]]"
,
SAF_SUPPORT_NOMEDIA
);
curl_global_init
(
CURL_GLOBAL_ALL
);
/* indicate that the module should continue to be loaded */
return
SWITCH_STATUS_NOUNLOAD
;
}
...
...
@@ -3814,8 +3810,6 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_spidermonkey_shutdown)
// this causes a crash
//JS_DestroyRuntime(globals.rt);
curl_global_cleanup
();
switch_core_hash_destroy
(
&
module_manager
.
mod_hash
);
switch_core_hash_destroy
(
&
module_manager
.
load_hash
);
return
SWITCH_STATUS_SUCCESS
;
...
...
src/mod/languages/mod_spidermonkey/mod_spidermonkey_curl.c
浏览文件 @
7064487d
...
...
@@ -242,7 +242,6 @@ const sm_module_interface_t curl_module_interface = {
SWITCH_MOD_DECLARE_NONSTD
(
switch_status_t
)
spidermonkey_init
(
const
sm_module_interface_t
**
module_interface
)
{
curl_global_init
(
CURL_GLOBAL_ALL
);
*
module_interface
=
&
curl_module_interface
;
return
SWITCH_STATUS_SUCCESS
;
}
...
...
src/mod/xml_int/mod_xml_cdr/Makefile
浏览文件 @
7064487d
WANT_CURL
=
yes
include
../../../../build/modmake.rules
src/mod/xml_int/mod_xml_curl/Makefile
浏览文件 @
7064487d
WANT_CURL
=
yes
include
../../../../build/modmake.rules
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
浏览文件 @
7064487d
...
...
@@ -547,9 +547,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
globals
.
hash_root
=
NULL
;
globals
.
hash_tail
=
NULL
;
if
(
do_config
()
==
SWITCH_STATUS_SUCCESS
)
{
curl_global_init
(
CURL_GLOBAL_ALL
);
}
else
{
if
(
do_config
()
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -573,7 +571,6 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_curl_shutdown)
}
switch_xml_unbind_search_function_ptr
(
xml_url_fetch
);
curl_global_cleanup
();
return
SWITCH_STATUS_SUCCESS
;
}
...
...
src/switch_core.c
浏览文件 @
7064487d
...
...
@@ -1300,6 +1300,7 @@ static void switch_core_set_serial(void)
switch_core_set_variable
(
"switch_serial"
,
buf
);
}
SWITCH_DECLARE
(
switch_status_t
)
switch_core_init
(
switch_core_flag_t
flags
,
switch_bool_t
console
,
const
char
**
err
)
{
switch_uuid_t
uuid
;
...
...
@@ -1445,6 +1446,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
switch_uuid_get
(
&
uuid
);
switch_uuid_format
(
runtime
.
uuid_str
,
&
uuid
);
#ifndef WIN32
switch_curl_init
(
runtime
.
memory_pool
);
#endif
return
SWITCH_STATUS_SUCCESS
;
}
...
...
@@ -2115,6 +2120,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Clean up modules.
\n
"
);
switch_loadable_module_shutdown
();
#ifndef WIN32
switch_curl_destroy
();
#endif
if
(
switch_test_flag
((
&
runtime
),
SCF_USE_SQL
))
{
switch_core_sqldb_stop
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论