Hi All,
Is it possible for Kamailio to interface with a particular Asterisk Server based on the FQDN of a caller?
I would like to pass calls received by Kamailio through to different Asterisk Servers based on the FQDN of the caller. I have used Load Balancing before, but I want to select which Asterisk Server the call is directed to.
Thank you,
Am Montag, 13. August 2018, 19:48:49 CEST schrieb Wilkins, Steve:
Is it possible for Kamailio to interface with a particular Asterisk Server based on the FQDN of a caller?
I would like to pass calls received by Kamailio through to different Asterisk Servers based on the FQDN of the caller. I have used Load Balancing before, but I want to select which Asterisk Server the call is directed to.
Hello Steve,
not sure what you you mean with FQDN. But you can access arbitrary SIP headers (and many more) inside the Kamailio configuration and then route the SIP message accordingly. Have a look to the pseudo-variable section in our wiki to get some inspiration. There are also modules like lcr, carrierroute and other to do it with the help of a module and possible database tables.
Best regards,
Henning
On Mon, Aug 13, 2018 at 05:48:49PM +0000, Wilkins, Steve wrote:
Is it possible for Kamailio to interface with a particular Asterisk Server based on the FQDN of a caller?
Yes.
I would like to pass calls received by Kamailio through to different Asterisk Servers based on the FQDN of the caller. I have used Load Balancing before, but I want to select which Asterisk Server the call is directed to.
All you have to do is figure out on what criteria you want to make the routing. If it is the from domain ($fd) what will you do with an anonymous call ($fd=="anonymous.invalid")?
All you have to do is change $rd (or assign $du if the R-URI must remain unchanged).