拨打 sip 电话
我正在寻找一种简单的方法来“ping” sip:user@ip 并返回“可通话”、“忙碌”、“未连接”等状态,如果前两个需要让他的电话响铃,那就可以了 (可选地,如果有必要打电话给他们查看状态,那么最好包含一个发件人号码,以便我可以在检查状态时在电话显示屏上识别我的服务器,或者在有人占用时播放短信号.wav,这样他们就知道那是什么)
.....像 sipsak -x 1200 -C random@ownip -s sip:adressee@hisip -vvv...
给我“406 没有联系人标题不可接受” 我还没有尝试其他任何东西 我已经想知道发送呼叫是否仍然需要在 ISP 处登录?
im searching for a simple method to "ping" a sip:user@ip and get back a status like "available for call" , "busy" , "not connected" if the first two require to make his phone ring, thats ok
(optionally if necessary to call them to see the status then it was nice to include a senders number so that i can identify my server on the phone display when its checking the status or to play a short signal .wav in case someone takes up, so that they know what it was)
.....something like sipsak -x 1200 -C random@ownip -s sip:adressee@hisip -vvv...
gives me "406 Not Acceptable without Contact header"
i did not try anything else yet
i already wonder if the sending call still needs to be logged in at an isp then?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能正在寻找 OPTIONS 消息。对 OPTIONS 的回复做了两件事 - 首先,它告诉您远程方的功能,其次,更重要的是,返回的状态代码是您发送 INVITE 时将获得的状态代码。
根据 sipsak 的文档,您正在寻找以下内容:
You're probably looking for the OPTIONS message. The reply to an OPTIONS does two things - first, it tells you the capabilities of the remote party and second, more importantly, the Status-Code returned is the Status-Code you would get if you'd sent an INVITE.
According to sipsak's documentation you're looking for this:
简单是可行的,但对于你想做的事情来说可能有点过分了。请参阅 http://en.wikipedia.org/wiki/SIMPLE
当然,并非所有 SIP 电话支持简单。
SIMPLE will work, but it may be overkill for what you want to do. See http://en.wikipedia.org/wiki/SIMPLE
Of course, not all SIP phones support SIMPLE.