Kamailio 在 FreeSwitch 前担任调度员
我正在努力使用 Kamailio 作为 FreeSwitch 的简单调度程序。这是我到目前为止的配置: http://pastebin.com/nBPSpe6S
连接 iPhone 和 Android 进行通话他们之间超时。 连接其中一部手机和我的笔记本电脑会使它们之间的呼叫产生错误“跳数太多”。
有了它们,我就可以呼叫 Freeswitch,收听语音邮件、保留音乐等。
所以我猜这仍然是 NAT 问题或类似问题?
任何人都可以发现配置中的错误、缺失或其他错误吗?
PS 将手机、笔记本电脑等直接添加到 FreeSwitch(无需 Kamailio)即可使一切正常。
I'm struggling with Kamailio as a simple dispatcher for FreeSwitch. This is my configuration so far: http://pastebin.com/nBPSpe6S
Connecting an iPhone and an Android makes the calls between them timeout.
Connecting one of the phones and my laptops makes calls between them produce the error "Too many hops".
With all of them I'm able to call in to the Freeswitch, for listening to voicemail, hold music etc.
So I guess it's still NAT problems or similar?
Can anyone spot the error, missing thing or something else that is wrong with the config?
P.S. Adding phones, laptops etc. directly to FreeSwitch, without Kamailio, makes everything works.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“跳数太多”就是——跳数太多。 SIP 消息的路由方式不正确。在 Kamailio 中的许多情况下,这是因为 DNS 和 Kamailio 没有相同的世界观。 Kamailio 不知道它对哪些域具有权威性(alias= 配置参数)并使用 DNS 进行转发。 DNS 指向同一个 Kamailio。
您的配置缺少 kamailio 应该侦听的 alias= 和 IP 地址。现在,您的配置并没有真正使用别名,所以我在这里没有看到这个问题。由于您没有显示调度程序表,因此很难弄清楚。我建议您添加几次对 xlog() 的调用,以查看发生了什么并找出消息循环的原因。祝你好运!
"Too many hops" is just that - too many hops. A SIP messages is being routed around in a bad way. In many cases in Kamailio, this is because DNS and Kamailio doesn't have the same view of the world. Kamailio doesn't know which domains it's authoritative for (the alias= configuration parameter) and forwards using DNS. DNS points back to the same Kamailio.
Your configuration lacks both alias= and IP addresses kamailio should listen to. Now, your configuration doesn't really use the alias, so I don't see that problem here. Since you are not showing the dispatcher table it's hard to figure out. I suggest you add a couple of calls to xlog() to see what's going on and figure out why a message is looping around. Good luck!