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: http://en.wikipedia.org/wiki/

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

2012-02-14 Thread Uri Shacked
OK, i read the following "Problems with event_route[htable:mod-init]" form aprik 2011. got it :-)... On Mon, Feb 13, 2012 at 8: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

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-13 Thread Daniel-Constantin Mierla
Hello, On 2/10/12 2:32 PM, Uri Shacked wrote: 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

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

2012-02-10 Thread Uri Shacked
thanks, i will try it. probably the best way i have. did you use the CFG_DB module somewhere? BR, -- Hi, you can easily use command substitution e.g. -A $(hostname) in your script which starts kamailio or use mysql batch query to retrieve the result if you wish to store it in datab

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

2012-02-10 Thread Michal Matyska
Hi, you can easily use command substitution e.g. -A $(hostname) in your script which starts kamailio or use mysql batch query to retrieve the result if you wish to store it in database. Michal Uri Shacked píše v Pá 10. 02. 2012 v 15:32 +0200: > thanks, > it is good see there is a wayto start wit

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 maintai

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 kamaili

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

2012-02-09 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

[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