Re: [SR-Users] get server parameters from DB when kamailio starts

2012-02-14 Thread Daniel-Constantin Mierla
Hello, On 2/13/12 7:48 PM, Uri Shacked wrote: thanks. i find the htable module a little confusing, or a little harder to understand. (although i said so on the mtree and today i find myself using it a lot). you have to understand first the structures behind it:

Re: [SR-Users] get server parameters from DB when kamailio starts

2012-02-13 Thread Uri Shacked
thanks. i find the htable module a little confusing, or a little harder to understand. (although i said so on the mtree and today i find myself using it a lot). but, i notice at the end of the doc at section 7 to the event_route[htable:mod-init]. i wonder, if i just load the htable module, and on

Re: [SR-Users] get server parameters from DB when kamailio starts

2012-02-10 Thread Daniel-Constantin Mierla
Hello, you can use defines to control the order (the values of NP servers), here is an example of defining NP servers (to str value, for sake of explanation): #!ifdef SRV1 #!define NPSRV1 abc #!define NPSRV2 xyz #!else #!define NPSRV2 abc #!define NPSRV1 xyz #!endif and start kamailio with

Re: [SR-Users] get server parameters from DB when kamailio starts

2012-02-10 Thread Uri Shacked
thanks, it is good see there is a wayto start with -A... and it might make it easier a little (cause i use the define as the group the server belongs to). but, it doesn't help me fully in my case. i would like to have a generic start, and generic cfg file (it is much easier when you need to

[SR-Users] get server parameters from DB when kamailio starts

2012-02-08 Thread Uri Shacked
Hi again... (i do find myself ask many questions these days :-)) well, now here is one more: i have 2 kamailio servers that i use in 2 locations. both use the same tables and DBURL. each of my server turns to a number portability (NP) server at its same location. for example, if server 1 has