Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
393b63b7
提交
393b63b7
authored
4月 05, 2012
作者:
Travis Cross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
integrate in-tree libzrtp into the build system
Thanks to Ken Rice for working with me late into the night to get this done.
上级
9e25cc2c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
9 行删除
+13
-9
Makefile.am
Makefile.am
+8
-1
configure.in
configure.in
+4
-7
switch_rtp.c
src/switch_rtp.c
+1
-1
没有找到文件。
Makefile.am
浏览文件 @
393b63b7
...
@@ -147,7 +147,11 @@ libfreeswitch_la_LDFLAGS += $(ODBC_LIB_FLAGS)
...
@@ -147,7 +147,11 @@ libfreeswitch_la_LDFLAGS += $(ODBC_LIB_FLAGS)
endif
endif
if
ENABLE_ZRTP
if
ENABLE_ZRTP
libfreeswitch_la_LDFLAGS
+=
-lzrtp
-lbn
CORE_CFLAGS
+=
-I
$(switch_srcdir)
/libs/libzrtp/third_party/bgaes
CORE_CFLAGS
+=
-I
$(switch_srcdir)
/libs/libzrtp/third_party/bnlib
CORE_CFLAGS
+=
-I
$(switch_srcdir)
/libs/libzrtp/include
libfreeswitch_la_LDFLAGS
+=
-Llibs
/libzrtp/third_party/bnlib
-lbn
-Llibs
/libzrtp/projects/gnu/build
-lzrtp
CORE_LIBS
+=
libs/libzrtp/projects/gnu/libzrtp.a
endif
endif
library_includedir
=
$(includedir)
library_includedir
=
$(includedir)
...
@@ -460,6 +464,9 @@ libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update
...
@@ -460,6 +464,9 @@ libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update
@
cd
libs/srtp
&&
$(MAKE)
@
cd
libs/srtp
&&
$(MAKE)
@
$(TOUCH_TARGET)
@
$(TOUCH_TARGET)
libs/libzrtp/projects/gnu/libzrtp.a
:
libs/libzrtp libs/libzrtp/projects/gnu/.update
@
cd
libs/libzrtp/projects/gnu
&&
$(MAKE)
@
$(TOUCH_TARGET)
##
##
## helper targets
## helper targets
...
...
configure.in
浏览文件 @
393b63b7
...
@@ -363,13 +363,7 @@ AM_CONDITIONAL([ENABLE_SRTP],[test "${enable_srtp}" = "yes"])
...
@@ -363,13 +363,7 @@ AM_CONDITIONAL([ENABLE_SRTP],[test "${enable_srtp}" = "yes"])
AC_ARG_ENABLE(zrtp,
AC_ARG_ENABLE(zrtp,
[AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp="no"])
[AS_HELP_STRING([--enable-zrtp], [Compile with zrtp Support])],,[enable_zrtp="no"])
if test "x$enable_zrtp" = "xyes" ; then
if test "x$enable_zrtp" = "xyes" ; then
saved_LIBS="$LIBS"
LIBS="-lpthread $LIBS"
LIBS="$saved_LIBS -L/usr/local/lib -lbn -lpthread"
AC_CHECK_LIB(zrtp, zrtp_init, [has_zrtp="yes"], [has_zrtp="no"])
LIBS="$saved_LIBS"
if test "x$has_zrtp" = "xno"; then
AC_ERROR([Cannot locate zrtp libraries])
fi
APR_ADDTO(SWITCH_AM_CFLAGS, -DENABLE_ZRTP)
APR_ADDTO(SWITCH_AM_CFLAGS, -DENABLE_ZRTP)
fi
fi
...
@@ -1090,6 +1084,9 @@ AC_CONFIG_SUBDIRS([libs/broadvoice])
...
@@ -1090,6 +1084,9 @@ AC_CONFIG_SUBDIRS([libs/broadvoice])
AC_CONFIG_SUBDIRS([libs/libg722_1])
AC_CONFIG_SUBDIRS([libs/libg722_1])
AC_CONFIG_SUBDIRS([libs/silk])
AC_CONFIG_SUBDIRS([libs/silk])
AC_CONFIG_SUBDIRS([libs/libcodec2])
AC_CONFIG_SUBDIRS([libs/libcodec2])
if test "x${enable_zrtp}" = "xyes"; then
AC_CONFIG_SUBDIRS([libs/libzrtp/projects/gnu])
fi
case $host in
case $host in
*-openbsd*)
*-openbsd*)
...
...
src/switch_rtp.c
浏览文件 @
393b63b7
...
@@ -71,7 +71,7 @@ static switch_mutex_t *port_lock = NULL;
...
@@ -71,7 +71,7 @@ static switch_mutex_t *port_lock = NULL;
typedef
srtp_hdr_t
rtp_hdr_t
;
typedef
srtp_hdr_t
rtp_hdr_t
;
#ifdef ENABLE_ZRTP
#ifdef ENABLE_ZRTP
#include
<libzrtp/zrtp.h>
#include
"zrtp.h"
static
zrtp_global_t
*
zrtp_global
;
static
zrtp_global_t
*
zrtp_global
;
static
zrtp_zid_t
zid
=
{
"FreeSWITCH01"
};
static
zrtp_zid_t
zid
=
{
"FreeSWITCH01"
};
static
int
zrtp_on
=
0
;
static
int
zrtp_on
=
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论