On Sun, Feb 26, 2017 at 06:33:08PM +0100, przeqpiciel wrote:
Let's suppose that i have two machines with installed asterisk and one with kamailio. I would like have routing based on sip domain. for domain sip.domain1.com send sip signalling to asterisk#1 server and for sip.domain2.com send to asterisk#2 server. What i should use? Domain module or what ?
The low tech solution is to do something based on $rd:
if($rd=="sip.domain1.com") { $du="sip:1.2.3.4"; } else if(($rd=="sip.domain2.com") { $du="sip:2.3.4.5"; }
//RELAY