Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
eaf6430e
提交
eaf6430e
authored
7月 04, 2015
作者:
Luis Azedo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-7776 #resolve add mod_kazoo to build system
上级
369a8855
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
39 行增加
和
3 行删除
+39
-3
erlang.m4
build/config/erlang.m4
+2
-0
kazoo.conf.xml
conf/vanilla/autoload_configs/kazoo.conf.xml
+0
-0
bootstrap.sh
debian/bootstrap.sh
+1
-0
control-modules
debian/control-modules
+6
-0
freeswitch.spec
freeswitch.spec
+15
-1
Makefile.am
src/mod/event_handlers/mod_kazoo/Makefile.am
+10
-0
kazoo_utils.c
src/mod/event_handlers/mod_kazoo/kazoo_utils.c
+1
-1
mod_kazoo.c
src/mod/event_handlers/mod_kazoo/mod_kazoo.c
+2
-0
mod_kazoo.h
src/mod/event_handlers/mod_kazoo/mod_kazoo.h
+2
-1
没有找到文件。
build/config/erlang.m4
浏览文件 @
eaf6430e
...
@@ -9,6 +9,7 @@ AC_ARG_WITH(
...
@@ -9,6 +9,7 @@ AC_ARG_WITH(
[with_erlang="try"]
[with_erlang="try"]
)
)
AM_CONDITIONAL([HAVE_ERLANG],[false])
if test "$with_erlang" != "no"
if test "$with_erlang" != "no"
then
then
save_CFLAGS="$CFLAGS"
save_CFLAGS="$CFLAGS"
...
@@ -78,6 +79,7 @@ then
...
@@ -78,6 +79,7 @@ then
AC_MSG_NOTICE([Your erlang seems OK, do not forget to enable mod_erlang_event in modules.conf])
AC_MSG_NOTICE([Your erlang seems OK, do not forget to enable mod_erlang_event in modules.conf])
AC_SUBST([ERLANG_CFLAGS], [$ERLANG_CFLAGS])
AC_SUBST([ERLANG_CFLAGS], [$ERLANG_CFLAGS])
AC_SUBST([ERLANG_LDFLAGS], [$ERLANG_LDFLAGS])
AC_SUBST([ERLANG_LDFLAGS], [$ERLANG_LDFLAGS])
AM_CONDITIONAL([HAVE_ERLANG],[true])
fi
fi
LIBS="$save_LIBS"
LIBS="$save_LIBS"
...
...
src/mod/event_handlers/mod_kazoo/conf
/autoload_configs/kazoo.conf.xml
→
conf/vanilla
/autoload_configs/kazoo.conf.xml
浏览文件 @
eaf6430e
File moved
debian/bootstrap.sh
浏览文件 @
eaf6430e
...
@@ -642,6 +642,7 @@ Recommends:
...
@@ -642,6 +642,7 @@ Recommends:
freeswitch-mod-event-test (= \
${
binary
:Version
}
),
freeswitch-mod-event-test (= \
${
binary
:Version
}
),
freeswitch-mod-event-zmq (= \
${
binary
:Version
}
),
freeswitch-mod-event-zmq (= \
${
binary
:Version
}
),
freeswitch-mod-json-cdr (= \
${
binary
:Version
}
),
freeswitch-mod-json-cdr (= \
${
binary
:Version
}
),
freeswitch-mod-kazoo (= \
${
binary
:Version
}
),
freeswitch-mod-radius-cdr (= \
${
binary
:Version
}
),
freeswitch-mod-radius-cdr (= \
${
binary
:Version
}
),
freeswitch-mod-snmp (= \
${
binary
:Version
}
),
freeswitch-mod-snmp (= \
${
binary
:Version
}
),
freeswitch-mod-local-stream (= \
${
binary
:Version
}
),
freeswitch-mod-local-stream (= \
${
binary
:Version
}
),
...
...
debian/control-modules
浏览文件 @
eaf6430e
...
@@ -523,6 +523,12 @@ Module: event_handlers/mod_format_cdr
...
@@ -523,6 +523,12 @@ Module: event_handlers/mod_format_cdr
Description: mod_format_cdr
Description: mod_format_cdr
Adds mod_format_cdr.
Adds mod_format_cdr.
Module: event_handlers/mod_kazoo
Description: mod_kazoo
Adds mod_kazoo.
Build-Depends: erlang-dev
Depends: erlang
Module: event_handlers/mod_json_cdr
Module: event_handlers/mod_json_cdr
Description: mod_json_cdr
Description: mod_json_cdr
Adds mod_json_cdr.
Adds mod_json_cdr.
...
...
freeswitch.spec
浏览文件 @
eaf6430e
...
@@ -1016,6 +1016,16 @@ Requires: %{name} = %{version}-%{release}
...
@@ -1016,6 +1016,16 @@ Requires: %{name} = %{version}-%{release}
%description event-format-cdr
%description event-format-cdr
JSON and XML Logger for the FreeSWITCH open source telephony platform
JSON and XML Logger for the FreeSWITCH open source telephony platform
%package kazoo
Summary: Kazoo Module for the FreeSWITCH open source telephony platform
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
Requires: erlang
BuildRequires: erlang
%description kazoo
Kazoo Module for FreeSWITCH.
%package event-multicast
%package event-multicast
Summary: Multicast Event System for the FreeSWITCH open source telephony platform
Summary: Multicast Event System for the FreeSWITCH open source telephony platform
Group: System/Libraries
Group: System/Libraries
...
@@ -1485,7 +1495,7 @@ ENDPOINTS_MODULES="endpoints/mod_dingaling ../../libs/freetdm/mod_freetdm \
...
@@ -1485,7 +1495,7 @@ ENDPOINTS_MODULES="endpoints/mod_dingaling ../../libs/freetdm/mod_freetdm \
######################################################################################################################
######################################################################################################################
EVENT_HANDLERS_MODULES="event_handlers/mod_cdr_csv event_handlers/mod_cdr_pg_csv event_handlers/mod_cdr_sqlite \
EVENT_HANDLERS_MODULES="event_handlers/mod_cdr_csv event_handlers/mod_cdr_pg_csv event_handlers/mod_cdr_sqlite \
event_handlers/mod_cdr_mongodb event_handlers/mod_format_cdr event_handlers/mod_erlang_event event_handlers/mod_event_multicast \
event_handlers/mod_cdr_mongodb event_handlers/mod_format_cdr event_handlers/mod_erlang_event event_handlers/mod_event_multicast \
event_handlers/mod_event_socket event_handlers/mod_json_cdr event_handlers/mod_radius_cdr \
event_handlers/mod_event_socket event_handlers/mod_json_cdr event_handlers/mod_
kazoo event_handlers/mod_
radius_cdr \
event_handlers/mod_snmp"
event_handlers/mod_snmp"
%if %{build_mod_rayo}
%if %{build_mod_rayo}
EVENT_HANDLERS_MODULES+=" event_handlers/mod_rayo"
EVENT_HANDLERS_MODULES+=" event_handlers/mod_rayo"
...
@@ -1873,6 +1883,7 @@ fi
...
@@ -1873,6 +1883,7 @@ fi
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/http_cache.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/http_cache.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/ivr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/ivr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/java.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/java.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/kazoo.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/lcr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/lcr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/local_stream.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/local_stream.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/logfile.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/logfile.conf.xml
...
@@ -2257,6 +2268,9 @@ fi
...
@@ -2257,6 +2268,9 @@ fi
%files event-json-cdr
%files event-json-cdr
%{MODINSTDIR}/mod_json_cdr.so*
%{MODINSTDIR}/mod_json_cdr.so*
%files kazoo
%{MODINSTDIR}/mod_kazoo.so*
%files event-radius-cdr
%files event-radius-cdr
%{MODINSTDIR}/mod_radius_cdr.so*
%{MODINSTDIR}/mod_radius_cdr.so*
...
...
src/mod/event_handlers/mod_kazoo/Makefile.am
浏览文件 @
eaf6430e
include
$(top_srcdir)/build/modmake.rulesam
include
$(top_srcdir)/build/modmake.rulesam
MODNAME
=
mod_kazoo
MODNAME
=
mod_kazoo
if
HAVE_ERLANG
mod_LTLIBRARIES
=
mod_kazoo.la
mod_LTLIBRARIES
=
mod_kazoo.la
mod_kazoo_la_SOURCES
=
mod_kazoo.c kazoo_utils.c kazoo_node.c kazoo_event_stream.c kazoo_fetch_agent.c kazoo_commands.c kazoo_dptools.c
mod_kazoo_la_SOURCES
=
mod_kazoo.c kazoo_utils.c kazoo_node.c kazoo_event_stream.c kazoo_fetch_agent.c kazoo_commands.c kazoo_dptools.c
mod_kazoo_la_CFLAGS
=
$(AM_CFLAGS)
@ERLANG_CFLAGS@
-D_REENTRANT
mod_kazoo_la_CFLAGS
=
$(AM_CFLAGS)
@ERLANG_CFLAGS@
-D_REENTRANT
mod_kazoo_la_LIBADD
=
$(switch_builddir)
/libfreeswitch.la
mod_kazoo_la_LIBADD
=
$(switch_builddir)
/libfreeswitch.la
mod_kazoo_la_LDFLAGS
=
-avoid-version
-module
-no-undefined
-shared
@ERLANG_LDFLAGS@
mod_kazoo_la_LDFLAGS
=
-avoid-version
-module
-no-undefined
-shared
@ERLANG_LDFLAGS@
else
install
:
error
all
:
error
error
:
$
(
error You must
install
erlang to build this module
)
endif
src/mod/event_handlers/mod_kazoo/kazoo_utils.c
浏览文件 @
eaf6430e
...
@@ -328,7 +328,7 @@ int ei_decode_string_or_binary_limited(char *buf, int *index, int maxsize, char
...
@@ -328,7 +328,7 @@ int ei_decode_string_or_binary_limited(char *buf, int *index, int maxsize, char
if
(
type
==
ERL_NIL_EXT
)
{
if
(
type
==
ERL_NIL_EXT
)
{
res
=
0
;
res
=
0
;
dst
=
'\0'
;
*
dst
=
'\0'
;
}
else
if
(
type
==
ERL_BINARY_EXT
)
{
}
else
if
(
type
==
ERL_BINARY_EXT
)
{
res
=
ei_decode_binary
(
buf
,
index
,
dst
,
&
len
);
res
=
ei_decode_binary
(
buf
,
index
,
dst
,
&
len
);
dst
[
len
]
=
'\0'
;
/* binaries aren't null terminated */
dst
[
len
]
=
'\0'
;
/* binaries aren't null terminated */
...
...
src/mod/event_handlers/mod_kazoo/mod_kazoo.c
浏览文件 @
eaf6430e
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
#define KAZOO_DESC "kazoo information"
#define KAZOO_DESC "kazoo information"
#define KAZOO_SYNTAX "<command> [<args>]"
#define KAZOO_SYNTAX "<command> [<args>]"
globals_t
globals
;
SWITCH_MODULE_LOAD_FUNCTION
(
mod_kazoo_load
);
SWITCH_MODULE_LOAD_FUNCTION
(
mod_kazoo_load
);
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_kazoo_shutdown
);
SWITCH_MODULE_SHUTDOWN_FUNCTION
(
mod_kazoo_shutdown
);
SWITCH_MODULE_RUNTIME_FUNCTION
(
mod_kazoo_runtime
);
SWITCH_MODULE_RUNTIME_FUNCTION
(
mod_kazoo_runtime
);
...
...
src/mod/event_handlers/mod_kazoo/mod_kazoo.h
浏览文件 @
eaf6430e
...
@@ -111,8 +111,9 @@ struct globals_s {
...
@@ -111,8 +111,9 @@ struct globals_s {
int
event_stream_preallocate
;
int
event_stream_preallocate
;
int
send_msg_batch
;
int
send_msg_batch
;
short
event_stream_framing
;
short
event_stream_framing
;
}
globals
;
};
typedef
struct
globals_s
globals_t
;
typedef
struct
globals_s
globals_t
;
extern
globals_t
globals
;
/* kazoo_node.c */
/* kazoo_node.c */
switch_status_t
new_kazoo_node
(
int
nodefd
,
ErlConnect
*
conn
);
switch_status_t
new_kazoo_node
(
int
nodefd
,
ErlConnect
*
conn
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论