Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-09 Thread Andrew Pogrebennyk
Austin, the block beginning with dlg_manage() should be placed between route(AUTH) and route(PSTN). It is commented out and put outside the main routing block so I'm not sure if that was the case.. If the problem persists please get the dialogs list before calling, while the callee's phone is ring

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-04 Thread Austin Einter
Dear Andrew Here I am attaching the config file I am using currently. Please suggest me if something is wrong there. Also how do I limit the maximum number of calls. Thanks, Austin On Thu, Nov 3, 2011 at 2:33 PM, Andrew Pogrebennyk wrote: > Austin, > > Actually you could share your config to the

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-03 Thread Andrew Pogrebennyk
Austin, Actually you could share your config to the mailing list, I will tell you if there is something blatantly wrong ;-) Regards, Andrew On 11/03/2011 06:15 AM, Jason Penton wrote: > Hi Austin, > > Have a look at the TM module docs. You will find the appropriate > commands there. > > HTH >

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-02 Thread Jason Penton
Hi Austin, Have a look at the TM module docs. You will find the appropriate commands there. HTH On Nov 3, 2011 3:01 AM, "Austin Einter" wrote: > Dear Andrew, Henning > Thanks for sharing very useful information. > I am bit new to kamailio, probably askingvery easy questions, please bear > with

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-11-02 Thread Austin Einter
Dear Andrew, Henning Thanks for sharing very useful information. I am bit new to kamailio, probably askingvery easy questions, please bear with me. I am not sure if I am forwording the INVITE statelessly or not. How do I check if INVITE is forwarded statelessly. Andrew you have mentioned 'So make

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-31 Thread Henning Westerholt
On Sunday 30 October 2011, Austin Einter wrote: > [...] > To get $var(SIZE) working properly, do I need to enable MySql, please > advice. Hi Austin, its not necessary to enable mySQL database support in the dialog module to use the dialog profile support to e.g. get the number of concurrent cal

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-31 Thread Andrew Pogrebennyk
Austin, That is strange, because I am using similar setup successfully. Actually I don't know if it counts the calls that are being established, I didn't care for it. While looking through the docs: http://kamailio.org/docs/modules/3.1.x/modules_k/dialog.html#id2524304 the following note caught m

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-30 Thread Austin Einter
Thanks Andrew I added profile_with_value module parameter and with that I am able to overcome this error. My code looks as below. dlg_manage(); if (is_method("INVITE")) { if (!has_totag()) { #$var(SIZE) = 0; get_prof

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Andrew Pogrebennyk
On 10/30/2011 06:00 AM, Austin Einter wrote: > When I run kamailio, I get below error. > > 0(4925) CRITICAL: dialog [dialog.c:297]: profile not definited > [...] > Any idea why this error comes and how to fix it. You should really define profile caller by putting it into profiles_with_value mo

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Hi Alex I tried using profile. I added below code to kamailio.cfg in route section. if (is_method("INVITE")) { if (!has_totag()) { get_profile_size("caller", "$fu", "$var(SIZE)"); if( $var(SIZE) >= MAX_NUMBER_OF_CALLS ) {

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Alex Thansk for quick answer. I have not used profiles yet. I just observed some interesting stuff. In route section if I put code as below I see $DLG_count value is being changed, but it does not look consistent. *setflag(FLD_DLG); if (is_method("INVITE")) { * So if I put setflag before if c

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Alex Balashov
Have you tried using dialog profiles instead of $DLG_count? -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/ ___ SIP Expres

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Hi All Still I am struggling to find a solution how to control the number of calls. I have few more doubts regarding this. 1. Do I need to enable mysql , so that these counters such as $DLG_count will be updated properly. Now I am getting 0 always irrespective of number of calls in system. 2. F

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-29 Thread Austin Einter
Alex Initially I did not put dlg_manage(), after reading your post I added the dlg_manage(). Now in route section my code in kamailio.config looks as below. *dlg_manage(); if (is_method("INVITE")) { if (!has_totag()) { if($DLG_coun

Re: [SR-Users] How to limit number of calls in Kamailio proxy

2011-10-28 Thread Alex Balashov
Are you calling dlg_manage() when processing the initial INVITE request? -- This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness. Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel:

[SR-Users] How to limit number of calls in Kamailio proxy

2011-10-28 Thread Austin Einter
This is continuation with limiting number of calls per Kamailio proxy server. I modified kamailio.cfg as below. 1. loadmodule "dialog.so" 2. modparam("dialog", "enable_stats", 1) 3. modparam("dialog", "dlg_flag", 4) Next, as dialog module I can use either active_dialogs() or $DLG_count to find num