[OpenSIPS-Users] 2 opensip-routers with one location database

Uwe Kastens kiste at kiste.org
Tue Mar 3 19:59:25 CET 2009


Hello,

I have two opensip-servers. One is a registrar for abc.domain.de the
other is for xyz.domain.de. It should be possible to register to both
system (one is internal in a trusted ip-range, the other is untrusted)
several times with different devices.

All calls from the pstn will go to abc.domain.de (trusted one). This one
should look up the user location db and fork the calls to the internal
and external users.

question 1)
Is it enough to work with a lookup("location") and start the forking
with t_relay() ?

route[1] {
      if (lookup("location")) {
         if (!t_relay()) {
                xlog("L_DBG","==========\nerror on
sl_reply_error();
         };
	}
exit;
}


question 2)
Can I merge both different domain lookups in one statement to get the
entries from the USRLOC?

BR

Kiste



-- 

kiste lat: 54.322684, lon: 10.13586



More information about the Users mailing list