- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在运行 Freeswitch 1.6 和 Mac 10.10.5我的 Freeswitch 服务器将位于 AWS 中,需要在我的本地环境中安装 Python ESL 模块才能使用 ESL 开始开发。我没能找到 ESL 模块。我得到了完整的源代码并尝试只构建 Python 库。
我用了this说明。
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git
cd /usr/src/freeswitch
./bootstrap.sh -j
./configure
cd /usr/src/freeswitch/libs/esl
当我转到 libs/esl
文件夹并键入:
make pymod -v
我得到:
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
当我运行时:
make pymod
我收到这个错误:
/Applications/Xcode.app/Contents/Developer/usr/bin/make MYLIB=".././.libs/libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/libs/esl/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/libs/libteletone/src -Werror -DMACOSX -DHAVE_OPENSSL" CXXFLAGS="-I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/libs/esl/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/src/include -I/Users/spicyramen/Documents/OpenSource/Development/freeswitch.git/libs/libteletone/src -fPIC" CXX_CFLAGS="" -C python
c++ -shared -Xlinker -x esl_wrap.o .././.libs/libesl.a `python ./python-config --ldflags` -o _ESL.so -L.
ld: internal error: atom not found in symbolIndex(__ZN24SWIG_Python_Thread_Allow3endEv) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [_ESL.so] Error 1
make: *** [pymod] Error 2
在我的 Makefile 中我有这个:
PYTHON = /Users/spicyramen/anaconda/bin/python
PYTHON_CFLAGS = -I/Users/spicyramen/anaconda/include/python2.7 -I/Users/spicyramen/anaconda/include/python2.7 -fno-strict-aliasing -I/Users/spicyramen/anaconda/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
PYTHON_LDFLAGS = -L/Users/spicyramen/anaconda/lib -ldl -framework CoreFoundation -lpython2.7
PYTHON_SITE_DIR = /Users/spicyramen/anaconda/lib/python2.7/site-packages
最佳答案
以下解决方案为我解决了这个问题:
来自 https://freeswitch.org/jira/browse/ESL-92
Mac OS X post Mavericks 附带的 ld
命令中存在错误,因此“-x”标志会去除额外的符号。该错误在此处描述 -x link flag causing link errors on Mac OSX 10.9 (bug?) (我已经在上游提交了一张票 https://llvm.org/bugs/show_bug.cgi?id=23337 )。
解决方法:
链接_ESL.so时去掉“-x”标志
cd libs/esl
sed -i '' 's/\(SOLINK = .*\)-x/\1/p' Makefile
make pymod
关于python - ESL python 的 Freeswitch 1.6 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38072591/
我正在尝试转接连接到 node-esl 的调用。我已成功将该调用桥接到另一个端点。现在,我想以编程方式将该调用转移到另一个分机或另一个号码,而不切断调用流程。 我已将桥接后的挂断设置为 false。但
这段代码: {{ getItemValue(item, field) ? getItemValue(item, field) : '–'; }} 产生此错误: in
Freeswitch 1.5 安装成功,Fs_cli 运行良好。 我正在使用 Centos 6。我想让 ESL 与 PHP 一起工作。所以我按照 Freeswitch Wiki 中编写的步骤为 PHP
我正在使用 Freeswitch ESL 客户端,我致力于发起调用并在两个应用程序之间建立连接并使它们相互通信。我试过在一端播放声音并在另一端录音,现在工作正常我的要求是在一端发送 dtmf 在另一端
我正在尝试使用 ESL 远程连接到 FreeSwitch 服务。连接机器和 FS 服务都在我的本地 VM 中,2 个不同的 VM 但我得到以下错误 [WARNING] mod_event_socket
我正在运行 Freeswitch 1.6 和 Mac 10.10.5我的 Freeswitch 服务器将位于 AWS 中,需要在我的本地环境中安装 Python ESL 模块才能使用 ESL 开始开发
我在 Ubuntu 16.04 上。我像这样安装了 Elixir wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all
我需要在某个时间范围内在 BASH 中输入某些内容时运行一个命令,如果不是那个时间,则运行另一个命令。这是我到目前为止所得到的,但它似乎没有用.. FLATTIME=$(date "+%H%M") F
我是一名优秀的程序员,十分优秀!