Hi I am running kamailio proxy (1.5) as an intermediate proxy, where all my SIP signalling packets are passing through. I want to limit maximum number of calls kamailio proxy server can handle at a time. How can I do this, please give me some pointer in this regard.
Regards Austin
One correction. I am using Kamailio 3.1.5.
On Fri, Oct 28, 2011 at 8:31 AM, Austin Einter austin.einter@gmail.comwrote:
Hi I am running kamailio proxy (1.5) as an intermediate proxy, where all my SIP signalling packets are passing through. I want to limit maximum number of calls kamailio proxy server can handle at a time. How can I do this, please give me some pointer in this regard.
Regards Austin
Investigate the "dialog" module.
-- 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: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
On Oct 27, 2011, at 9:01 PM, Austin Einter austin.einter@gmail.com wrote:
Hi I am running kamailio proxy (1.5) as an intermediate proxy, where all my SIP signalling packets are passing through. I want to limit maximum number of calls kamailio proxy server can handle at a time. How can I do this, please give me some pointer in this regard.
Regards Austin _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Alex Do you mean that I need to modify kamailio.cfg to have max calls limitation?
Regards Kamal
On Fri, Oct 28, 2011 at 8:47 AM, Alex Balashov abalashov@evaristesys.comwrote:
Investigate the "dialog" module.
-- 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: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
On Oct 27, 2011, at 9:01 PM, Austin Einter austin.einter@gmail.com wrote:
Hi I am running kamailio proxy (1.5) as an intermediate proxy, where all my
SIP signalling packets are passing through.
I want to limit maximum number of calls kamailio proxy server can handle
at a time.
How can I do this, please give me some pointer in this regard.
Regards Austin _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On 10/27/2011 11:26 PM, Austin Einter wrote:
Do you mean that I need to modify kamailio.cfg to have max calls limitation?
Quitely so.
Hi I did change kamailio.cfg as below and getting some error.
*//Loaded dialog module* *loadmodule "dialog.so"*
My route block looks as below.
*# Main SIP request routing logic # - processing of any incoming SIP request starts with this route route {* * # per request initial checks route(REQINIT); setflag(FLT_NATS); # NAT detection route(NAT);*
* # handle requests within SIP dialogs route(WITHINDLG);*
* if (is_method("INVITE")) { if($DLG_count > 1) { sl_send_reply("503","RESOURCE UNAVAILABLE"); exit; } } * I added the if block shown in red color.
When I start the kamailio proxy I get below error.
[root@www1 kamailio]# [root@www1 kamailio]# kamailio -T -E -n 1 -l 174.37.8.178 -l 127.0.0.1 -W epoll_et -l udp:174.37.8.178:26588 loading modules under /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/ Listening on udp: 174.37.8.178:26588 udp: 127.0.0.1:26588 Aliases: udp: localhost:26588 udp: localhost.localdomain:26588 udp: 174.37.8.178-static.reverse.softlayer.com:26588 0(26959) INFO: usrloc [hslot.c:53]: locks array size 512 0(26959) ERROR: dialog [dialog.c:435]: no dlg flag set!! 0(26959) ERROR: <core> [sr_module.c:875]: init_mod(): Error while initializing module dialog (/usr/local/lib/kamailio/modules_k/dialog.so) ERROR: error while initializing modules [root@www1 kamailio]# [root@www1 kamailio]#
It looks , dialog module facing problem during initialization.
I am bit new to this, not getting any clue . Kindly let me know whats going wrong.
Thanks Austin
On Fri, Oct 28, 2011 at 9:53 AM, Alex Balashov abalashov@evaristesys.comwrote:
On 10/27/2011 11:26 PM, Austin Einter wrote:
Do you mean that I need to modify kamailio.cfg to have max calls
limitation?
Quitely so.
-- 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 Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hey,
Am 28.10.2011 um 07:29 schrieb Austin Einter:
I did change kamailio.cfg as below and getting some error.
[snip]
When I start the kamailio proxy I get below error.
[root@www1 kamailio]# [root@www1 kamailio]# kamailio -T -E -n 1 -l 174.37.8.178 -l 127.0.0.1 -W epoll_et -l udp:174.37.8.178:26588 loading modules under /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/ Listening on udp: 174.37.8.178:26588 udp: 127.0.0.1:26588 Aliases: udp: localhost:26588 udp: localhost.localdomain:26588 udp: 174.37.8.178-static.reverse.softlayer.com:26588 0(26959) INFO: usrloc [hslot.c:53]: locks array size 512 0(26959) ERROR: dialog [dialog.c:435]: no dlg flag set!! 0(26959) ERROR: <core> [sr_module.c:875]: init_mod(): Error while initializing module dialog (/usr/local/lib/kamailio/modules_k/dialog.so) ERROR: error while initializing modules [root@www1 kamailio]# [root@www1 kamailio]#
It looks , dialog module facing problem during initialization.
I am bit new to this, not getting any clue . Kindly let me know whats going wrong.
"no dlg flag set"
Using the dialog module requires either one of the following for each dialog you wish to track:
- Set a certain flag. This tells the dialog module to start tracking. It only works for INVITE requests though and requires specifying the desired dialog flag as a modparam. - Call dlg_manage(). This also tells the dialog module to start tracking but may be called from non-INVITE requests too (at least theoretically; I never tried).
Unfortunately, the wiki docs regarding the dialog module seem to be broken right now, so I cannot point you at the specific syntax.
HTH,
--Timo
Hey,
U can use these docs in the meantime - http://kamailio.org/docs/modules/stable/modules_k/dialog.html
Cheers Jason
On Fri, Oct 28, 2011 at 11:36 AM, Timo Reimann sr@foo-lounge.de wrote:
Hey,
Am 28.10.2011 um 07:29 schrieb Austin Einter:
I did change kamailio.cfg as below and getting some error.
[snip]
When I start the kamailio proxy I get below error.
[root@www1 kamailio]# [root@www1 kamailio]# kamailio -T -E -n 1 -l 174.37.8.178 -l 127.0.0.1
-W epoll_et -l udp:174.37.8.178:26588
loading modules under
/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/
Listening on udp: 174.37.8.178:26588 udp: 127.0.0.1:26588 Aliases: udp: localhost:26588 udp: localhost.localdomain:26588 udp: 174.37.8.178-static.reverse.softlayer.com:26588 0(26959) INFO: usrloc [hslot.c:53]: locks array size 512 0(26959) ERROR: dialog [dialog.c:435]: no dlg flag set!! 0(26959) ERROR: <core> [sr_module.c:875]: init_mod(): Error while
initializing module dialog (/usr/local/lib/kamailio/modules_k/dialog.so)
ERROR: error while initializing modules [root@www1 kamailio]# [root@www1 kamailio]#
It looks , dialog module facing problem during initialization.
I am bit new to this, not getting any clue . Kindly let me know whats
going wrong.
"no dlg flag set"
Using the dialog module requires either one of the following for each dialog you wish to track:
- Set a certain flag. This tells the dialog module to start tracking. It
only works for INVITE requests though and requires specifying the desired dialog flag as a modparam.
- Call dlg_manage(). This also tells the dialog module to start tracking
but may be called from non-INVITE requests too (at least theoretically; I never tried).
Unfortunately, the wiki docs regarding the dialog module seem to be broken right now, so I cannot point you at the specific syntax.
HTH,
--Timo _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users