Ruby SIP请求

发布于 2025-01-21 07:32:44 字数 436 浏览 2 评论 0原文

我的任务是通过SIP(会话启动协议)发送警报消息。我使用Ruby(在轨道上)。

我已经看过如何发送'sip request'(sip client)在Java 中,看来它只是在UDP套接字上流式传输字符串。我正确吗?

有谁知道可以支持这一点的好宝石?我看过几个,但它们往往是SIP服务器,而不是客户 /发件人。 例如: https://github.com/turboladen/sdp

I have been tasked with sending alert messages via SIP (Session Initiation Protocol). I use Ruby (on Rails).

I have seen How to send ‘SIP request‘ (SIP client) in java and it appears it is just about streaming a string over a UDP socket. Am I correct?

Does anyone know of any good Gems that could support this? I have looked at several but they tend to be SIP servers rather than clients / senders.
e.g.: https://github.com/turboladen/sdp

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2025-01-28 07:32:44

也许您可以只使用一些已经存在的解决方案,并从Ruby运行一个为您完成工作的命令行客户端。

在这里,我找到了一个带有命令行接口的SDK库:
https://sipsimpleclient.org/

这是他们在命令行接口上发送消息的示例:

发送这样的消息可以通过简单的Ruby System调用来完成。

system('sip-message [..account options..] -m "Hello World"')

Perhaps you could just use some already existing solution and run a command-line client from Ruby that does the work for you.

Here I found an SDK library with a command-line interface:
https://sipsimpleclient.org/

Here's their example of sending a message with their command-line interface:
https://docs-new.sipthor.net/w/sip_clients/sip_message/

Sending a message like this could then be accomplished with a simple Ruby system call.

system('sip-message [..account options..] -m "Hello World"')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文