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