<div dir="ltr">Hi again...<br>(i do find myself ask many questions these days.... :-))<br><br>well, now here is one more:<br><br>i have 2 kamailio servers that i use in 2 locations. both use the same<br>tables and DBURL.<br>
each of my server turns to a number portability (NP) server at its same<br>location.<br>for example, if server 1 has the call, it will turn to NP server 1 with the<br>query, and if the query fails, it will then turn to NP server 2.<br>
the kamailio server 2 does the same. but, turns to NP server 2 first and if<br>it fails, to NP server 1.<br><br>once this is understood....<br><br>here is my issue - i want to have 1 generic cfg file for my 2 servers.<br>
today, i use the same cfg file, but in server 1 i set it in the cfg to its<br>group, and on server 2 the same but a different group....<br><br>i tried to understand how do i get each server to &quot;pull&quot; its group from the<br>
DB. something like &quot;what is my group when my IP is X.Y.Z.Q ?<br>i raed the cfg_db module but didn&#39;t understand how to set it on my cfg file<br>and on the DB.<br><br>what is the best way to do what i want?<br>hope i was clear....<br>
<br>BR,<br>thanks to all the guys that help me so far, i appriciate it a lot!<br>Uri<br></div>