简体   繁体   English

具有多个SIP网关的Kamailio

[英]Kamailio with multiple SIP gateways

I'm still digging through documentation for Kamailio and its modules. 我仍在挖掘Kamailio及其模块的文档。

I've got several SIP accounts for different VoIP providers (login1:password1:sip.provider1.com, login2:password2:sip.provider2.com...) 我有几个用于不同VoIP提供商的SIP帐户(login1:password1:sip.provider1.com,login2:password2:sip.provider2.com ...)

I've got bunch of users connecting to my Kamailio. 我有一堆用户连接到我的Kamailio。 I'd like to route their calls via those providers (round-robin, random, lcr - doesn't matter in this case). 我想通过这些提供商路由他们的呼叫(循环,随机,lcr-在这种情况下都没有关系)。

Which modules should I use? 我应该使用哪些模块?

The default pstn.gw_ip and pstn.gw_port allow to specify only single provider without password. 默认的pstn.gw_ip和pstn.gw_port允许仅指定单个提供程序而不提供密码。

The LCR module seems like logical choice but I did not found a way to specify per-provider password. LCR模块似乎是合乎逻辑的选择,但是我没有找到指定每个提供商密码的方法。

This seems like a very common task so I'm probably missing something obvious. 这似乎是一项非常普通的任务,所以我可能缺少明显的东西。

You should take a look at uac_auth kamailio module. 您应该看看uac_auth kamailio模块。

The documentation is there . 文档在那里

Mainly, you need to look at the uac_auth(..) method. 主要,您需要查看uac_auth(..)方法。 This method is able to build and add an authentication header in a new request upon receiving 401 or 407! 该方法能够在接收到401或407时在新请求中构建并添加身份验证标头!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM