Ruby SIP请求
我的任务是通过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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您可以只使用一些已经存在的解决方案,并从Ruby运行一个为您完成工作的命令行客户端。
在这里,我找到了一个带有命令行接口的SDK库:
https://sipsimpleclient.org/
这是他们在命令行接口上发送消息的示例:
发送这样的消息可以通过简单的Ruby
System
调用来完成。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.