简体   繁体   中英

Kamailio with multiple SIP gateways

I'm still digging through documentation for Kamailio and its modules.

I've got several SIP accounts for different VoIP providers (login1:password1:sip.provider1.com, login2:password2:sip.provider2.com...)

I've got bunch of users connecting to my Kamailio. I'd like to route their calls via those providers (round-robin, random, lcr - doesn't matter in this case).

Which modules should I use?

The default pstn.gw_ip and pstn.gw_port allow to specify only single provider without password.

The LCR module seems like logical choice but I did not found a way to specify per-provider password.

This seems like a very common task so I'm probably missing something obvious.

You should take a look at uac_auth kamailio module.

The documentation is there .

Mainly, you need to look at the uac_auth(..) method. This method is able to build and add an authentication header in a new request upon receiving 401 or 407!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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