![尝试安装呼叫流程应用程序……一直失败](https://linux22.com/image/1082486/%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%E5%91%BC%E5%8F%AB%E6%B5%81%E7%A8%8B%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E2%80%A6%E2%80%A6%E4%B8%80%E7%9B%B4%E5%A4%B1%E8%B4%A5.png)
有人尝试过安装 callflow 吗?
http://www.voip-info.org/wiki/view/Callflow
我下载了 tar 文件并将所有内容提取到:
/主页/jj/文档/callflow-20120624-180$
我按照 INSTALL 文件中的第一组说明进行操作,最终得到:
jj@joshua:~/Documents/callflow-20120624-180/build$ sudo find / -name callflow*
/callflow
/callflow/callflow.conf
/usr/local/bin/callflow
/usr/local/share/callflow
/usr/local/share/callflow/js/callflow.js
/usr/local/share/callflow/css/callflow.css
/usr/local/share/callflow/scripts/callflow.awk
/usr/local/share/man/man1/callflow.1
/home/jj/Documents/callflow-20120624-180
/home/jj/Documents/callflow-20120624-180/js/callflow.js
/home/jj/Documents/callflow-20120624-180/callflow
/home/jj/Documents/callflow-20120624-180/css/callflow.css
/home/jj/Documents/callflow-20120624-180/conf/callflow.conf
/home/jj/Documents/callflow-20120624-180/man/callflow.1
/home/jj/Documents/callflow-20120624-180/scripts/callflow.awk
/home/jj/Downloads/callflow-20120624-180.tar.bz2
/home/jj/.local/share/Trash/info/callflow.trashinfo
/home/jj/.local/share/Trash/files/callflow
/share/doc/callflow
当我尝试运行 bin 文件夹中的文件时,收到一条错误消息:
callflow:错误:安装目录“/usr/local/callflow”不存在 调整您的配置
我搜索后发现它安装/创建了 2 个 conf 文件:
jj@joshua:~/Documents/callflow-20120624-180/build$ sudo find / -name callflow.conf
/callflow/callflow.conf
/home/jj/Documents/callflow-20120624-180/conf/callflow.conf
jj@joshua:~/Documents/callflow-20120624-180/build$
它们都将设置目录设置为 /home/jj/Documents/callflow-20120624-180
我真的不知道我该怎么做才能实现这个目标...如能得到任何建议我将不胜感激。
答案1
您无需安装callflow
系统级软件即可解决问题。实际上,您甚至不需要致电cmake
。
这是 awk 和 shell 脚本的集合,它们将获取 tshark 可以读取的捕获文件并生成调用流程序列图
没有什么可编译的,callflow
返回一个错误,因为 $SETUPDIR 未定义。
您可以通过以下方式启动呼叫流程:
SETUPDIR=. ./callflow -h
为了获得更好的结果,当然可以编辑您的路径conf/callflow.conf
以将其修复SETUPDIR
为/home/jj/Documents/callflow-20120624-180
而不是/usr/local/callflow
。
现在编辑callflow
bash 脚本(第 5 行)以替换默认的 CONFDIR 值:
CONFDIR="/etc/callflow";
经过
CONFDIR="/home/jj/Documents/callflow-20120624-180/conf";
现在您可以从源代码运行它:
sylvain@sylvain-ThinkPad-T430s:~/Downloads/callflow-20120624-180$ ./callflow -h
Usage: callflow [options] <filename>
See callflow --help for extended help.
答案2
下载源代码并解压:
cd <where_you_downloaded_the_sources>
tar xvf callflow-20120624-180.tar.bz2 (change with your version file)
然后配置:
cd callflow-20120624-180/ (or the folder create by tar)
mkdir build
cd build
cmake .. -DSYSCONF_INSTALL_DIR=/etc
此安装 conf 文件在/etc/callflow/
。
安装:
sudo make install
现在,参考/etc/callflow/callflow.conf
(第一行):
# SETUPDIR, default /usr/local/callflow
SETUPDIR="/usr/local/callflow"
创建此文件夹:
sudo mkdir /usr/local/callflow
或更改SETUPDIR
现有文件夹,即/home/<your_home>/callflow
您现在应该可以运行该程序,输入:
callflow
答案3
如果您按照文件中的说明进行操作INSTALL
,那么您只需创建该文件夹:
$ sudo mkdir /usr/local/callflow
答案4
你应该尝试一个新版本呼叫流程-20141023.tar.bz2从Sourceforge。一些错误已被删除。我用 SIP pcap 文件进行了一些测试,它似乎可以工作(至少对于这种类型的消息)。有一点要考虑 - 设置 很重要$FILTER
。
例如
export $FILTER=sip
slawek@kodeina:~/src$ callflow Register.pcap
tshark started ** (process:20338): WARNING **: Preference "column.format" has been converted to "gui.column.format" Save your preferences to make this change permanent. DPI: 90 Background RRGGBBAA: ffffffff Area 0:0:1425:772 exported to 1425 x 772 pixels (90 dpi) Bitmap saved as: Register/callflow.png callflow: bz2 archive available at "Register/Register.tar.bz2" The output can be viewed with a browser: firefox Register/index.html