从命令行运行的Raspberry Pi的SIP客户端? [英] SIP-Client for Raspberry Pi that works from command line?

查看:318
本文介绍了从命令行运行的Raspberry Pi的SIP客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将树莓派用作SIP/VOIP电话,只需通过SSH控制RPI.

i want to use my raspberry pi as a SIP/VOIP-Phone, just controlling the RPI via SSH.

我找到了一些教程,看来Twinkle是最有用的应用程序之一.

I found some tutorials and it seems that Twinkle is one of the most useful apps for that.

因此,我成功地在RPI上安装了twinkle,在Android手机上成功安装了一个SPI客户端,并且知道我能够将文本消息从一个发送到另一个.

So i successfully installed twinkle on my RPI, one SPI-Client on my Android-Phone and for know i am able to send text messages from one to another.

问题是:我必须将Twinkel GUI与X服务器转发一起使用(当前将MacOS与X11和iTerm一起使用).

The thing is: I have to use the Twinkel GUI with X-Server-forwarding (currently using MacOS with X11 and iTerm).

但是我有点想使整个过程自动化,例如从命令行使用转瞬,用脚本等控制它.

But i kind of want to automate the whole process, like using twinkle from command line, controll it with scripts etc.

因此,显然不是为此而生的. (甚至没有关于account-config-file的文档,所以我不得不在x11-forwarding-stuff中苦苦挣扎)

So, obviously twinkle is not made for that. (there dont even is a documentation for the account-config-file, so i had to struggle through that x11-forwarding-stuff)

所以,我的最后一个问题是: 是否有可通过CLI控制的RPI的可比SIP客户端?

So, my final question is: Is there comparable SIP-client for the RPI that can be controlled via CLI?

任何提示都将受到高度赞赏.在搜寻这个问题时,我发现在RPI上使用星号服务器或将显示附加到其上的项目-但这不是我想要的...

any hint is highly appreciated. While googling this question i just found projects working with asterisk-server on the RPI or attaching displays to it - but thats not what i am looking for...

欢呼和感谢

推荐答案

我正在做同样的事情,到目前为止,我还遇到了其他选择:

I am doing the same thing and I came across additional options so far:

  1. Linphone :易于安装,但无法拨打电话
    RaspberryPI:使用linphonec进行SIP出站呼叫或其他SIP软电话

  1. Linphone: Easy to install but I fail to make phone calls
    RaspberryPI: Making SIP outbound calls using linphonec or an alternative SIP soft phone

(以前为SFLphone):看起来很有希望,但需要从源代码安装
安装"ring.cx SIP客户端"在Raspberry PI上.
更新:还要在下面的

Ring (formerly SFLphone): Looks promising but needs to be installed from source
Installing the "ring.cx SIP client" on a Raspberry PI.
Update: Also check out @aberaud's answer below

PJSIP (C库)

  • Recommended by this tutorial
  • Compile and Install on Raspi
  • See http://www.pjsip.org

眨眼CLI

我从SFLphone邮件列表中收到了此反馈,这可能会对您有所帮助:

Twinkle CLI

From the SFLphone mailing list I got this feedback, which might help you:

我很想知道项目是否为此写了些东西.顺便说一句,我使用了Twinkle SIP客户端,该客户端允许将命令传递给已启动的进程,以允许例如接听来电.真的很棒,可以让我映射一些键盘快捷键来控制我的手机,而无需切换桌面并找到合适的窗口.

I'm interests to known if the project write something for that. By the pass, I used Twinkle SIP client that permit to pass command to an already launched processus that permit for instance to answer an incoming call. It was really cool and permit me to map some keyboard shortcuts to control my phone without to switch desktop and find the good windows.

经过一番搜索,我发现了一些旧脚本,这些脚本允许使用DBUS API来控制sflphone的旧版本.受此脚本的启发,我编写了自己的脚本,与我使用的sflphone版本(Debian Wheezy中的1.4.1)兼容:

After some search, I'm found some old scripts that permit to control old versions of sflphone by using it's DBUS API. Inspire by this scripts, I wrote my own, compatible with the version of sflphone I used (1.4.1 in Debian Wheezy) :

https://gitlab.com/brenard/sflphone-ctl

这是工作日,我每天都在使用它.呼叫转移在我的台式机上不起作用,但可能是sflphone 1.4.1版上的错误.

It's work weel and I'm use it every day. Call transfer does not work on my desktop but it seam to be a bug on version 1.4.1 of sflphone.

B. R.

顺便说一句:twinkle --help显示以下内容:

BTW: twinkle --help shows the following:

--cmd <cli command>
    Instruct Twinkle to execute the CLI command. You can run
    all commands from the command line interface mode.
    When Twinkle is already running, this will instruct the running
    process to execute the CLI command.

    Examples:
    twinkle --cmd answer
    twinkle --cmd mute
    twinkle --cmd 'transfer 12345'

到目前为止,我本人没有运气,但我也真的想让它正常工作.

I had no luck so far myself but I really want to get this to work too.

这篇关于从命令行运行的Raspberry Pi的SIP客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆