[SR-Users] Howto configure to use SQLITE

2012-02-10 Thread Perazim
I am a new user and am trying to configure kamailio to use SQLITE instead of MYSQL. I see that SQLITE option is rather new and maybe not as documented as MYSQL. I am running on fedora 14 and have installed MYSQL3 from rpms. Kamailio I built from sources because I need the SQLITE support. What ka

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

Re: [SR-Users] rtpproxy and CANCEL in serial forked scenarios

2012-02-10 Thread Daniel-Constantin Mierla
Hello, On 2/9/12 5:13 PM, Andreas Granig wrote: Hi, I ran into a scenario with couple of serial forks where kamailio loops to itself and, due to the looping, the INVITE to a new branch happens before the CANCEL to an old branch. What I do at the moment is force rtpproxy in branch route, and sto

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 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, 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] Detection of broken TCP connections to clients

2012-02-10 Thread Daniel-Constantin Mierla
Hello, On 2/9/12 3:51 PM, Yufei Tao wrote: Hi When clients register to Kamailio over TCP/TLS, if I set tcp_connection_lifetime to be quite small, like 30 seconds, and let clients send refreshes every 20 seconds, for example. When client crashes or have network problems, the TCP connection with

Re: [SR-Users] Detection of broken TCP connections to clients

2012-02-10 Thread Yufei Tao
Hi Daniel Thanks very much for your response! Now I can see that there may not be any relation between a stream connection and user availability - I was assuming a user is registered using one device only, which may not always be the case in fact. Yufei On 10/02/12 14:16, Daniel-Constantin Mierl

Re: [SR-Users] Detection of broken TCP connections to clients

2012-02-10 Thread Olle E. Johansson
10 feb 2012 kl. 15:16 skrev Daniel-Constantin Mierla: > Hello, > > On 2/9/12 3:51 PM, Yufei Tao wrote: >> Hi >> >> When clients register to Kamailio over TCP/TLS, if I set >> tcp_connection_lifetime to be quite small, like 30 seconds, and let >> clients send refreshes every 20 seconds, for exam