[SR-Users] how to debug kamailio c code

2017-09-28 Thread Sergey Safarov
I have issue with kazoo module
call sprintf

not work properly.
body variable contains values like
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c70726573656e636520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a706964662220786d6c6e733a646d3d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a646174612d6d6f64656c2220786d6c6e733a727069643d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a727069642220786d6c6e733a633d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a63697069642220656e746974793d2232343936223e203c7475706c6520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a70696466222069643d2274384e6f3168516e703635556a53316f71464d677862495250712d694650223e3c7374617475733e3c62617369633e6f70656e3c2f62617369633e3c2f7374617475733e3c2f7475706c653e3c6e6f746520786d6c6e733d2275726e3a696574663a706172616d733a786d6c3a6e733a70696466223e4f6e207468652050686f6e653c2f6e6f74653e3c646d3a706572736f6e20786d6c6e733a646d3d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a646174612d6d6f64656c2220786d6c6e733a727069643d2275726e3a696574663a706172616d733a786d6c3a6e733a706964663a72706964222069643d2231223e3c727069643a616374697669746965733e3c727069643a6f6e2d7468652d70686f6e652f3e3c2f727069643a616374697669746965733e3c646d3a6e6f74653e4f6e207468652050686f6e653c2f646d3a6e6f74653e3c2f646d3a706572736f6e3e3c2f70726573656e63653e

Must be XML string
 openOn the PhoneOn
the Phone

But i cannot find/understand where is must be executed conversion hex2string

I want use gdb inspect memory vars but i cannot.
Please advice how to do it.
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about Kamailio Performance

2017-09-28 Thread Robert Johnson
Alex Balashov wrote this article a little while back. I would recommend 
taking a look.


http://blog.csrpswitch.com/tuning-kamailio-for-high-throughput-and-performance/

On 09/28/2017 03:06 PM, Jiankai Zhu wrote:

Thank you guys for your quick response.

I am new to Kamailio so all your information are very helpful for me.

*My setting:*
children=8  in kaimailio.cfg . I did not change it and leave it by 
default on my 4 cores system.


*My thought:*
I think it may related to Mysql since cpu and iowait is low and the 
problem happens only when I add more subscribers to mysql database.


I will try according to :

1: Dmitri  combination of mysql and htable as mysql cache
2: Mathias tune MySQL server

3: I think ram database should help on this. But it seems these is 
little document on redis.
I am looking into SQLite3 memory mode but if there is any related 
reference / link will be appreciated.


Thanks with regards,
David




David

2017年9月28日 下午02:59,Daniel-Constantin Mierla  写道:


Hello,

it seems that interaction with mysql is a bottleneck. What is the 
value of children parameter in kamailio.cfg?


Cheers,
Daniel


On 28.09.17 04:00, Jiankai Zhu wrote:

*My goal:*

make sure when using kamailio as engine I can achieve:

  * on systems with 4GB memory, Kamailio can serve a population over
300 000 online subscribers
  * https://www.kamailio.org/w/features/ >


*Test bed:*
CPU: 4 cores , 4G RAM

Kamailio 5 with Mysql.

Test source:another server running SIPp

10k subscriber in Mysql .  6000 Register Per Second ,  reuse 10k user 
to register , it works fine.  If register 50 every second for per 
user it seem 300 k subscribers should work.
(about 300% cpu used of totally 400% cpu. All requests finished 
without retransmit and fail. )


add 90k subscriber into Mysql .
100k subscirbers in Mysql . 1000 Register Per Second , a lot of 
failure and can not work .


(cpu are not used much at that time. IO is not high.)

*My question : *
What is the root cause of bad performance when there is 100k 
subscribers' data in the Mysql database.


How can I deploy a kamailio with 300k  subscriber in database, and 
support 6000 register per second at the same time ?

Maybe use ram database instead of Mysql?

Thanks with regards,
David





___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla
www.twitter.com/miconda  --www.linkedin.com/in/miconda
Kamailio Advanced Training -www.asipto.com
Kamailio World Conference -www.kamailioworld.com



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about Kamailio Performance

2017-09-28 Thread Jiankai Zhu

Thank you guys for your quick response.

I am new to Kamailio so all your information are very helpful for me. 

My setting: 
children=8  in kaimailio.cfg . I did not change it and leave it by default on 
my 4 cores system. 

My thought:
I think it may related to Mysql since cpu and iowait is low and the problem 
happens only when I add more subscribers to mysql database.

I will try according to :

1: Dmitri  combination of mysql and htable as mysql cache
2: Mathias tune MySQL server

3: I think ram database should help on this. But it seems these is little 
document on redis.
I am looking into SQLite3 memory mode but if there is any related reference / 
link will be appreciated.

Thanks with regards,
David




David

2017年9月28日 下午02:59,Daniel-Constantin Mierla  写道:

Hello,
it seems that interaction with mysql is a bottleneck. What is the value of 
children parameter in kamailio.cfg?
Cheers,
Daniel

On 28.09.17 04:00, Jiankai Zhu wrote:
My goal:

make sure when using kamailio as engine I can achieve:
on systems with 4GB memory, Kamailio can serve a population over 300 000 online 
subscribers
https://www.kamailio.org/w/features/ >

Test bed:
CPU: 4 cores , 4G RAM

Kamailio 5 with Mysql. 

Test source:another server running SIPp

10k subscriber in Mysql .  6000 Register Per Second ,  reuse 10k user to 
register , it works fine.  If register 50 every second for per user it seem 300 
k subscribers should work. 
(about 300% cpu used of totally 400% cpu. All requests finished without 
retransmit and fail. )

add 90k subscriber into Mysql .
100k subscirbers in Mysql . 1000 Register Per Second , a lot of failure and can 
not work . 

(cpu are not used much at that time. IO is not high.)

My question : 
What is the root cause of bad performance when there is 100k subscribers' data 
in the Mysql database. 

How can I deploy a kamailio with 300k  subscriber in database, and support 6000 
register per second at the same time ?
Maybe use ram database instead of Mysql?   

Thanks with regards,
David





___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
Never mind, I'm certain by now:

http://sip-router.1086192.n5.nabble.com/DB-select-htable-mod-init-doesn-t-work-td127717.html
https://lists.kamailio.org/pipermail/sr-dev/2013-February/018484.html

On 28 September 2017 at 22:18, George Diamantopoulos 
wrote:

> Also, I' found this post by Daniel in 2014:
>
> https://lists.kamailio.org/pipermail/sr-users/2014-May/083155.html
>
> To quote:
> > Indeed, the db connection is not initialized at the time of executing
> > event_route[htable:mod-init]. This is executed after all modules are
> > initialized, but the sqlops connections are initialized in child init.
>
> So maybe this is the case for 5.0.3 as well? sqlops functions can't be
> used in event_route[htable:mod-init] yet?
>
>
> On 28 September 2017 at 20:18, George Diamantopoulos  > wrote:
>
>> Hello,
>>
>> I've tested again, this time including a single sql_pvquery function in
>> the event-route. Kamailio will also exit with "daemonize(): Main process
>> exited before writing to pipe" in this simpler case.
>>
>> In the documentation, it is stated that: The event route is executed only
>> once, after core and module initialization, but before Kamailio
>> forks any child processes.
>>
>> Does this mean that I don't have (perhaps) access to pseudovariables during 
>> execution of this route? Is this the reason why kamailio exits prematurely?
>>
>> Thanks,
>>
>> George
>>
>>
>> On 26 September 2017 at 15:37, George Diamantopoulos <
>> georged...@gmail.com> wrote:
>>
>>> I forgot to mention, I'm using Kamailio 5.0.3 on debian "stretch".
>>>
>>> On 26 September 2017 at 14:40, George Diamantopoulos <
>>> georged...@gmail.com> wrote:
>>>
 Hello all,

 I've been trying to utilise event_route[htable:mod-init] in order to
 load information from the database into an htable on startup. However,
 Kamailio exits with an error for no obvious (to me) reason. Here's the log
 output:

 DEBUG: htable [htable.c:226]: child_init(): rank is (-127)
 DEBUG: htable [htable.c:259]: child_init(): executing
 event_route[htable:mod-init] (2)
 DEBUG:  [core/parser/msg_parser.c:600]: parse_msg(): SIP Request:
 DEBUG:  [core/parser/msg_parser.c:602]: parse_msg():  method:
 
 DEBUG:  [core/parser/msg_parser.c:604]: parse_msg():  uri: <
 sip:y...@kamailio.org>
 DEBUG:  [core/parser/msg_parser.c:606]: parse_msg():  version:
 
 DEBUG:  [core/parser/parse_via.c:2639]: parse_via(): end of
 header reached, state=2
 DEBUG:  [core/parser/msg_parser.c:491]: parse_headers(): Via
 found, flags=2
 DEBUG:  [core/parser/msg_parser.c:493]: parse_headers(): this is
 the first via
 ERROR:  [core/daemonize.c:303]: daemonize(): Main process exited
 before writing to pipe

 And here's the routing block in kamailio.cfg. What I need to do is get
 the username for all non-expired contacts in the "location" table, perform
 a query on another database for each one of them and store the result in an
 htable:

 event_route[htable:mod-init] {

 sql_pvquery("ck", "select username from location where now() <=
 expires", "$avp(registered_ng)");

 $var(i) = 0;
 while ( $(avp(registered_ng)[$var(i)]) != $null ) {
 sql_pvquery("ca", "select property from tablename where
 username = $(avp(registered_ng)[$var(i)])", "$var(ng_property)");
 $sht(isnguser=>$var(ng_property)) = 1;
 $var(i) = $var(i) + 1;
 pv_unset("$var(ng_property)");
 }

 pv_unset("$var(i)");
 }

 Any hints as to what I might be doing wrong? Thanks!

 Best regards,
 George

>>>
>>>
>>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Brandon Armstead
Np!  Normal insomniac. Haha, glad to hear you got it working.

On Thu, Sep 28, 2017 at 8:57 AM Timothy oladapo olawuyi <
dolaw...@pethahiah.com> wrote:

> Hello Brandon,
>
>
>
> It works after copied mysql directory from
> /usr/local/src/kamailio/utils/kamctl/mysql to
> /usr/local/share/kamailio/mysql with  cp -fr
> /usr/local/src/kamailio/utils/kamctl/mysql /usr/local/share/kamailio/mysql
>
>
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |* *Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims |
> htttp://www.pethahiah.com
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf
> Of *Timothy oladapo olawuyi
> *Sent:* Thursday, September 28, 2017 2:58 PM
>
>
> *To:* 'Kamailio (SER) - Users Mailing List' 
> *Subject:* Re: [SR-Users] mysql installation error
>
>
>
> Hello Brandon,
>
>
>
> Sorry for disturbing your sleep
>
>
>
> I just copy mysql dir that contains standard-create.sql and other files to
> kamctl using *cp -fr /usr/local/src/kamailio/utils/kamctl/mysql
> /usr/local/lib64/kamailio//kamctl/mysql*
>
> I still got the same error
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: line 264:
> ./mysql/standard-create.sql: No such file or directory , ERROR: Creating
> core tables failed at standard!
>
>  after the copied the folder. It seems am missing something.
>
>
>
> Regards
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |* *Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims |
> htttp://www.pethahiah.com
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org
> ] *On Behalf Of *Brandon Armstead
> *Sent:* Thursday, September 28, 2017 2:08 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] mysql installation error
>
>
>
> I believe if you also run this kamdbctl relatively inside the current
> contextual path it may also give you a pass - don’t quote me on this,
> writing from los angelos at 6am in bed :/ tossing and turning haha.
>
>
>
> But a let’s say you git checkout to /use/local/src/kamailio
>
>
>
> cp -fr {path to src kamctl dir under used local src}
> /usr/local/lib64/kamailio/kamctl essentially iirc.
>
>
>
> On Thu, Sep 28, 2017 at 6:00 AM Brandon Armstead  wrote:
>
> I would copy all of the kamctl files over not sure why entirely but I
> think there is s bug in the build process or maybe user error but I’ve ran
> into this issue before too and just cp -fr the kamctl dir over of course
> after backing up original.
>
>
>
> On Thu, Sep 28, 2017 at 5:42 AM Timothy oladapo olawuyi <
> dolaw...@pethahiah.com> wrote:
>
> Hello Brandon,
>
>
>
> Thank for you the quick response I found the file and copy to the
> appropriate directory.
>
> However, when  *kamdbctl *create again I got the error below.
>
>
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |* *Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims | htttp://
> www.pethahiah.com
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf
> Of *Brandon Armstead
> *Sent:* Thursday, September 28, 2017 12:07 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] mysql installation error
>
>
>
> src/utils/kamctl
>
>
>
> On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead  wrote:
>
> Make sure the kamctl files exist there as in the path in can’t locate if
> not copy them from I believe src/Uriel/kamctl to the desired path it is
> looking for and or symlink.
>
> On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi <
> dolaw...@pethahiah.com> wrote:
>
> Dear All,
>
>
>
> Please help me with error messages.
>
>
>
> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
> */usr/local/sbin/kamdbctl
> create* and got the Error messages below.
>
>
>
> *ERROR: could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>
> *ERROR: database engine not loaded - tried 'MYSQL'*
>
>
>
> Here this the version of kamailio I installed.
>
>
>
> ./kamailio -I.
>
> Print out of kamailio internals
>
>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>
>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>
>   Default paths to modules: /usr/local/lib64/kamailio/modules
>
>   Compile flags: STATS: Off, USE_TCP, 

Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
Also, I' found this post by Daniel in 2014:

https://lists.kamailio.org/pipermail/sr-users/2014-May/083155.html

To quote:
> Indeed, the db connection is not initialized at the time of executing
> event_route[htable:mod-init]. This is executed after all modules are
> initialized, but the sqlops connections are initialized in child init.

So maybe this is the case for 5.0.3 as well? sqlops functions can't be used
in event_route[htable:mod-init] yet?

On 28 September 2017 at 20:18, George Diamantopoulos 
wrote:

> Hello,
>
> I've tested again, this time including a single sql_pvquery function in
> the event-route. Kamailio will also exit with "daemonize(): Main process
> exited before writing to pipe" in this simpler case.
>
> In the documentation, it is stated that: The event route is executed only
> once, after core and module initialization, but before Kamailio
> forks any child processes.
>
> Does this mean that I don't have (perhaps) access to pseudovariables during 
> execution of this route? Is this the reason why kamailio exits prematurely?
>
> Thanks,
>
> George
>
>
> On 26 September 2017 at 15:37, George Diamantopoulos  > wrote:
>
>> I forgot to mention, I'm using Kamailio 5.0.3 on debian "stretch".
>>
>> On 26 September 2017 at 14:40, George Diamantopoulos <
>> georged...@gmail.com> wrote:
>>
>>> Hello all,
>>>
>>> I've been trying to utilise event_route[htable:mod-init] in order to
>>> load information from the database into an htable on startup. However,
>>> Kamailio exits with an error for no obvious (to me) reason. Here's the log
>>> output:
>>>
>>> DEBUG: htable [htable.c:226]: child_init(): rank is (-127)
>>> DEBUG: htable [htable.c:259]: child_init(): executing
>>> event_route[htable:mod-init] (2)
>>> DEBUG:  [core/parser/msg_parser.c:600]: parse_msg(): SIP Request:
>>> DEBUG:  [core/parser/msg_parser.c:602]: parse_msg():  method:
>>> 
>>> DEBUG:  [core/parser/msg_parser.c:604]: parse_msg():  uri: <
>>> sip:y...@kamailio.org>
>>> DEBUG:  [core/parser/msg_parser.c:606]: parse_msg():  version:
>>> 
>>> DEBUG:  [core/parser/parse_via.c:2639]: parse_via(): end of
>>> header reached, state=2
>>> DEBUG:  [core/parser/msg_parser.c:491]: parse_headers(): Via
>>> found, flags=2
>>> DEBUG:  [core/parser/msg_parser.c:493]: parse_headers(): this is
>>> the first via
>>> ERROR:  [core/daemonize.c:303]: daemonize(): Main process exited
>>> before writing to pipe
>>>
>>> And here's the routing block in kamailio.cfg. What I need to do is get
>>> the username for all non-expired contacts in the "location" table, perform
>>> a query on another database for each one of them and store the result in an
>>> htable:
>>>
>>> event_route[htable:mod-init] {
>>>
>>> sql_pvquery("ck", "select username from location where now() <=
>>> expires", "$avp(registered_ng)");
>>>
>>> $var(i) = 0;
>>> while ( $(avp(registered_ng)[$var(i)]) != $null ) {
>>> sql_pvquery("ca", "select property from tablename where username
>>> = $(avp(registered_ng)[$var(i)])", "$var(ng_property)");
>>> $sht(isnguser=>$var(ng_property)) = 1;
>>> $var(i) = $var(i) + 1;
>>> pv_unset("$var(ng_property)");
>>> }
>>>
>>> pv_unset("$var(i)");
>>> }
>>>
>>> Any hints as to what I might be doing wrong? Thanks!
>>>
>>> Best regards,
>>> George
>>>
>>
>>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio htable mod-init route: Main process exited before writing to pipe

2017-09-28 Thread George Diamantopoulos
Hello,

I've tested again, this time including a single sql_pvquery function in the
event-route. Kamailio will also exit with "daemonize(): Main process exited
before writing to pipe" in this simpler case.

In the documentation, it is stated that: The event route is executed only
once, after core and module initialization, but before Kamailio
forks any child processes.

Does this mean that I don't have (perhaps) access to pseudovariables
during execution of this route? Is this the reason why kamailio exits
prematurely?

Thanks,

George


On 26 September 2017 at 15:37, George Diamantopoulos 
wrote:

> I forgot to mention, I'm using Kamailio 5.0.3 on debian "stretch".
>
> On 26 September 2017 at 14:40, George Diamantopoulos  > wrote:
>
>> Hello all,
>>
>> I've been trying to utilise event_route[htable:mod-init] in order to load
>> information from the database into an htable on startup. However, Kamailio
>> exits with an error for no obvious (to me) reason. Here's the log output:
>>
>> DEBUG: htable [htable.c:226]: child_init(): rank is (-127)
>> DEBUG: htable [htable.c:259]: child_init(): executing
>> event_route[htable:mod-init] (2)
>> DEBUG:  [core/parser/msg_parser.c:600]: parse_msg(): SIP Request:
>> DEBUG:  [core/parser/msg_parser.c:602]: parse_msg():  method:
>> 
>> DEBUG:  [core/parser/msg_parser.c:604]: parse_msg():  uri: <
>> sip:y...@kamailio.org>
>> DEBUG:  [core/parser/msg_parser.c:606]: parse_msg():  version:
>> 
>> DEBUG:  [core/parser/parse_via.c:2639]: parse_via(): end of header
>> reached, state=2
>> DEBUG:  [core/parser/msg_parser.c:491]: parse_headers(): Via
>> found, flags=2
>> DEBUG:  [core/parser/msg_parser.c:493]: parse_headers(): this is
>> the first via
>> ERROR:  [core/daemonize.c:303]: daemonize(): Main process exited
>> before writing to pipe
>>
>> And here's the routing block in kamailio.cfg. What I need to do is get
>> the username for all non-expired contacts in the "location" table, perform
>> a query on another database for each one of them and store the result in an
>> htable:
>>
>> event_route[htable:mod-init] {
>>
>> sql_pvquery("ck", "select username from location where now() <=
>> expires", "$avp(registered_ng)");
>>
>> $var(i) = 0;
>> while ( $(avp(registered_ng)[$var(i)]) != $null ) {
>> sql_pvquery("ca", "select property from tablename where username
>> = $(avp(registered_ng)[$var(i)])", "$var(ng_property)");
>> $sht(isnguser=>$var(ng_property)) = 1;
>> $var(i) = $var(i) + 1;
>> pv_unset("$var(ng_property)");
>> }
>>
>> pv_unset("$var(i)");
>> }
>>
>> Any hints as to what I might be doing wrong? Thanks!
>>
>> Best regards,
>> George
>>
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Timothy oladapo olawuyi
Hello Brandon,

 

Sorry for disturbing your sleep

 

I just copy mysql dir that contains standard-create.sql and other files to 
kamctl using cp -fr /usr/local/src/kamailio/utils/kamctl/mysql 
/usr/local/lib64/kamailio//kamctl/mysql

I still got the same error /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: 
line 264: ./mysql/standard-create.sql: No such file or directory , ERROR: 
Creating core tables failed at standard!

 after the copied the folder. It seems am missing something.

 

Regards

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept |Pethahiah 
Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza , Lateef 
Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile: +2348052612001,+2348098797928 
|Skype: daptims | htttp://www.pethahiah.com  

 

From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of 
Brandon Armstead
Sent: Thursday, September 28, 2017 2:08 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] mysql installation error

 

I believe if you also run this kamdbctl relatively inside the current 
contextual path it may also give you a pass - don’t quote me on this, writing 
from los angelos at 6am in bed :/ tossing and turning haha.

 

But a let’s say you git checkout to /use/local/src/kamailio

 

cp -fr {path to src kamctl dir under used local src} 
/usr/local/lib64/kamailio/kamctl essentially iirc.

 

On Thu, Sep 28, 2017 at 6:00 AM Brandon Armstead  > wrote:

I would copy all of the kamctl files over not sure why entirely but I think 
there is s bug in the build process or maybe user error but I’ve ran into this 
issue before too and just cp -fr the kamctl dir over of course after backing up 
original.

 

On Thu, Sep 28, 2017 at 5:42 AM Timothy oladapo olawuyi  > wrote:

Hello Brandon,

 

Thank for you the quick response I found the file and copy to the appropriate 
directory.

However, when  kamdbctl create again I got the error below.

 

 

Regards

 

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept |Pethahiah 
Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza , Lateef 
Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile: +2348052612001,+2348098797928 
|Skype: daptims | htttp://www.pethahiah.com

 

From: sr-users [mailto:sr-users-boun...@lists.kamailio.org 
 ] On Behalf Of Brandon Armstead
Sent: Thursday, September 28, 2017 12:07 PM
To: Kamailio (SER) - Users Mailing List  >
Subject: Re: [SR-Users] mysql installation error

 

src/utils/kamctl

 

On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead  > wrote:

Make sure the kamctl files exist there as in the path in can’t locate if not 
copy them from I believe src/Uriel/kamctl to the desired path it is looking for 
and or symlink.

On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi  > wrote:

Dear All,

 

Please help me with error messages.

 

Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial available 
in the SIP ROUTING WITH KAMAILIO book, when I executed the 
/usr/local/sbin/kamdbctl create and got the Error messages below.

 

ERROR: could not load the script in 
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

ERROR: database engine not loaded - tried 'MYSQL'

 

Here this the version of kamailio I installed.

 

./kamailio -I.

Print out of kamailio internals

  Version: kamailio 4.4.6 (x86_64/linux) 75f13d

  Default config: /usr/local/etc/kamailio/kamailio.cfg

  Default paths to modules: /usr/local/lib64/kamailio/modules

  Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, 
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES

  MAX_RECV_BUFFER_SIZE=262144

  MAX_LISTEN=16

  MAX_URI_SIZE=1024

  BUF_SIZE=65535

  DEFAULT PKG_SIZE=8MB

  DEFAULT SHM_SIZE=64MB

  ADAPTIVE_WAIT_LOOPS=1024

  TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select

  Source code revision ID: 75f13d

  Compiled with: gcc 4.9.2

  Compiled on: 10:56:51 Sep 28 2017

Thank you for flying kamailio!

 

 

Regards

 

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept |Pethahiah 
Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza , Lateef 
Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile: +2348052612001,+2348098797928 
|Skype: daptims | htttp://www.pethahiah.com  

 

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org  

Re: [SR-Users] CentOS 7 TLS Unable to set the memory allocation functions

2017-09-28 Thread Ryan Wagoner
On Thu, Sep 28, 2017 at 2:37 AM, Daniel-Constantin Mierla  wrote:

> Hello,
>
> have you tried to compile and run that small test program listed in
> https://lists.kamailio.org/pipermail/sr-users/2013-August/079381.html and
> see if you get the issue? If yes, then you need to use another libssl
> version.
>
> Cheers,
> Daniel
>
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - www.kamailioworld.com
>
>
Yes the test program gives me the same "Unable to set the memory allocation
functions" on both CentOS 7.3 and 7.4. Is there no way to workaround this
issue in Kamailio code? How do other TLS programs work apache, haproxy,
etc? What do I need to do to compile against a different libssl version?
I'm assuming it would need to be statically linked. Right now I'm running
the below to compile the test program.

gcc -o testssl testssl.c -lssl -lcrypto

Thanks,
Ryan
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Brandon Armstead
I believe if you also run this kamdbctl relatively inside the current
contextual path it may also give you a pass - don’t quote me on this,
writing from los angelos at 6am in bed :/ tossing and turning haha.

But a let’s say you git checkout to /use/local/src/kamailio

cp -fr {path to src kamctl dir under used local src}
/usr/local/lib64/kamailio/kamctl essentially iirc.

On Thu, Sep 28, 2017 at 6:00 AM Brandon Armstead  wrote:

> I would copy all of the kamctl files over not sure why entirely but I
> think there is s bug in the build process or maybe user error but I’ve ran
> into this issue before too and just cp -fr the kamctl dir over of course
> after backing up original.
>
> On Thu, Sep 28, 2017 at 5:42 AM Timothy oladapo olawuyi <
> dolaw...@pethahiah.com> wrote:
>
>> Hello Brandon,
>>
>>
>>
>> Thank for you the quick response I found the file and copy to the
>> appropriate directory.
>>
>> However, when  *kamdbctl *create again I got the error below.
>>
>>
>>
>> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: line 264:
>> ./mysql/standard-create.sql: No such file or directory
>>
>> ERROR: Creating core tables failed at standard!
>>
>>
>>
>> Regards
>>
>>
>>
>> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |* *Information System
>> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
>> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
>> +2348052612001,+2348098797928 *|*Skype*: daptims |
>> htttp://www.pethahiah.com
>>
>>
>>
>> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf
>> Of *Brandon Armstead
>> *Sent:* Thursday, September 28, 2017 12:07 PM
>> *To:* Kamailio (SER) - Users Mailing List 
>> *Subject:* Re: [SR-Users] mysql installation error
>>
>>
>>
>> src/utils/kamctl
>>
>>
>>
>> On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead 
>> wrote:
>>
>> Make sure the kamctl files exist there as in the path in can’t locate if
>> not copy them from I believe src/Uriel/kamctl to the desired path it is
>> looking for and or symlink.
>>
>> On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi <
>> dolaw...@pethahiah.com> wrote:
>>
>> Dear All,
>>
>>
>>
>> Please help me with error messages.
>>
>>
>>
>> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
>> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
>> */usr/local/sbin/kamdbctl
>> create* and got the Error messages below.
>>
>>
>>
>> *ERROR: could not load the script in
>> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>>
>> *ERROR: database engine not loaded - tried 'MYSQL'*
>>
>>
>>
>> Here this the version of kamailio I installed.
>>
>>
>>
>> ./kamailio -I.
>>
>> Print out of kamailio internals
>>
>>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>>
>>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>>
>>   Default paths to modules: /usr/local/lib64/kamailio/modules
>>
>>   Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>>
>>   MAX_RECV_BUFFER_SIZE=262144
>>
>>   MAX_LISTEN=16
>>
>>   MAX_URI_SIZE=1024
>>
>>   BUF_SIZE=65535
>>
>>   DEFAULT PKG_SIZE=8MB
>>
>>   DEFAULT SHM_SIZE=64MB
>>
>>   ADAPTIVE_WAIT_LOOPS=1024
>>
>>   TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
>>
>>   Source code revision ID: 75f13d
>>
>>   Compiled with: gcc 4.9.2
>>
>>   Compiled on: 10:56:51 Sep 28 2017
>>
>> Thank you for flying kamailio!
>>
>>
>>
>>
>>
>> Regards
>>
>>
>>
>> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |** Information System
>> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
>> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
>> +2348052612001,+2348098797928 *|*Skype*: daptims | htttp://
>> www.pethahiah.com
>>
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>>
>> Sent from Gmail Mobile
>>
>> --
>>
>> Sent from Gmail Mobile
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Sent from Gmail Mobile
>
-- 
Sent from Gmail Mobile
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Brandon Armstead
I would copy all of the kamctl files over not sure why entirely but I think
there is s bug in the build process or maybe user error but I’ve ran into
this issue before too and just cp -fr the kamctl dir over of course after
backing up original.

On Thu, Sep 28, 2017 at 5:42 AM Timothy oladapo olawuyi <
dolaw...@pethahiah.com> wrote:

> Hello Brandon,
>
>
>
> Thank for you the quick response I found the file and copy to the
> appropriate directory.
>
> However, when  *kamdbctl *create again I got the error below.
>
>
>
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: line 264:
> ./mysql/standard-create.sql: No such file or directory
>
> ERROR: Creating core tables failed at standard!
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |* *Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims |
> htttp://www.pethahiah.com
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf
> Of *Brandon Armstead
> *Sent:* Thursday, September 28, 2017 12:07 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] mysql installation error
>
>
>
> src/utils/kamctl
>
>
>
> On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead  wrote:
>
> Make sure the kamctl files exist there as in the path in can’t locate if
> not copy them from I believe src/Uriel/kamctl to the desired path it is
> looking for and or symlink.
>
> On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi <
> dolaw...@pethahiah.com> wrote:
>
> Dear All,
>
>
>
> Please help me with error messages.
>
>
>
> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
> */usr/local/sbin/kamdbctl
> create* and got the Error messages below.
>
>
>
> *ERROR: could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>
> *ERROR: database engine not loaded - tried 'MYSQL'*
>
>
>
> Here this the version of kamailio I installed.
>
>
>
> ./kamailio -I.
>
> Print out of kamailio internals
>
>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>
>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>
>   Default paths to modules: /usr/local/lib64/kamailio/modules
>
>   Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>
>   MAX_RECV_BUFFER_SIZE=262144
>
>   MAX_LISTEN=16
>
>   MAX_URI_SIZE=1024
>
>   BUF_SIZE=65535
>
>   DEFAULT PKG_SIZE=8MB
>
>   DEFAULT SHM_SIZE=64MB
>
>   ADAPTIVE_WAIT_LOOPS=1024
>
>   TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
>
>   Source code revision ID: 75f13d
>
>   Compiled with: gcc 4.9.2
>
>   Compiled on: 10:56:51 Sep 28 2017
>
> Thank you for flying kamailio!
>
>
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |** Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims | htttp://
> www.pethahiah.com
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
>
> Sent from Gmail Mobile
>
> --
>
> Sent from Gmail Mobile
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Sent from Gmail Mobile
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Timothy oladapo olawuyi
Hello Brandon,

 

Thank for you the quick response I found the file and copy to the appropriate 
directory.

However, when  kamdbctl create again I got the error below.

 

/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql: line 264: 
./mysql/standard-create.sql: No such file or directory

ERROR: Creating core tables failed at standard!

 

Regards

 

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept |Pethahiah 
Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza , Lateef 
Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile: +2348052612001,+2348098797928 
|Skype: daptims | htttp://www.pethahiah.com  

 

From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of 
Brandon Armstead
Sent: Thursday, September 28, 2017 12:07 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] mysql installation error

 

src/utils/kamctl

 

On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead  > wrote:

Make sure the kamctl files exist there as in the path in can’t locate if not 
copy them from I believe src/Uriel/kamctl to the desired path it is looking for 
and or symlink.

 

On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi  > wrote:



Dear All,

 

Please help me with error messages.

 

Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial available 
in the SIP ROUTING WITH KAMAILIO book, when I executed the 
/usr/local/sbin/kamdbctl create and got the Error messages below.

 

ERROR: could not load the script in 
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

ERROR: database engine not loaded - tried 'MYSQL'

 

Here this the version of kamailio I installed.

 

./kamailio -I.

Print out of kamailio internals

  Version: kamailio 4.4.6 (x86_64/linux) 75f13d

  Default config: /usr/local/etc/kamailio/kamailio.cfg

  Default paths to modules: /usr/local/lib64/kamailio/modules

  Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, 
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES

  MAX_RECV_BUFFER_SIZE=262144

  MAX_LISTEN=16

  MAX_URI_SIZE=1024

  BUF_SIZE=65535

  DEFAULT PKG_SIZE=8MB

  DEFAULT SHM_SIZE=64MB

  ADAPTIVE_WAIT_LOOPS=1024

  TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select

  Source code revision ID: 75f13d

  Compiled with: gcc 4.9.2

  Compiled on: 10:56:51 Sep 28 2017

Thank you for flying kamailio!

 

 

Regards

 

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept |Pethahiah 
Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza , Lateef 
Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile: +2348052612001,+2348098797928 
|Skype: daptims | htttp://www.pethahiah.com

 

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org  
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 

Sent from Gmail Mobile

-- 

Sent from Gmail Mobile

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Debian Stretch

2017-09-28 Thread Jurijs Ivolga
Hi,

Ok, I'll confess, I'm running Kamailio in docker and with root user, so
limits should be fine...

With kind regards,

Jurijs

On Thu, Sep 28, 2017 at 2:54 PM, Ludovic Gasc  wrote:

> Hi Jurijs,
>
> You have also DefaultLimitNOFILE in systemd that could be different of
> the values you see in console: https://www.freedesktop.org/software/
> systemd/man/systemd-system.conf.html
>
> You should test to put LimitNOFILE in systemd unit file, just to be sure.
>
> BTW, we had also some strange behaviors with TCP, Kamailio 5.0 and Debian
> Stretch.
> But with the Kamailio 4.4 integrated in Debian repository, it seems OK for
> now.
>
> Regards.
>
> --
> Ludovic Gasc (GMLudo)
> Lead Developer Architect at ALLOcloud
> https://be.linkedin.com/in/ludovicgasc
>
> 2017-09-28 10:51 GMT+02:00 Jurijs Ivolga :
>
>> Hi,
>>
>> There no limits set...
>>
>> core file size  (blocks, -c) unlimited
>> data seg size   (kbytes, -d) unlimited
>> scheduling priority (-e) 0
>> file size   (blocks, -f) unlimited
>> pending signals (-i) 514946
>> max locked memory   (kbytes, -l) 64
>> max memory size (kbytes, -m) unlimited
>> open files  (-n) 1048576
>> pipe size(512 bytes, -p) 8
>> POSIX message queues (bytes, -q) 819200
>> real-time priority  (-r) 0
>> stack size  (kbytes, -s) 8192
>> cpu time   (seconds, -t) unlimited
>> max user processes  (-u) unlimited
>> virtual memory  (kbytes, -v) unlimited
>> file locks  (-x) unlimited
>>
>> With kind regards,
>>
>> Jurijs
>>
>> On Thu, Sep 28, 2017 at 11:40 AM, Sergey Safarov 
>> wrote:
>>
>>> Try adjust LimitNOFILE on systemd
>>> 
>>> unit
>>> If this will help then create ticker and i will create PR
>>> Example
>>> 
>>>
>>> чт, 28 сент. 2017 г. в 8:51, Jurijs Ivolga :
>>>
 Hi Guys,

 I recently tried to use Debian Stretch in production and it didn't went
 well. On load(500k-700k SIP messages per day) I get a problem that at some
 point there was a pike of CLOSE_WAIT connections(up to 2k of CLOSE_WAIT
 connections) and no new connections was possible, I tried to figure out
 where problem is, but I didn't found anything in system or Kamailio logs,
 Kamailio just stopped to receive traffic via TCP, but UDP continued to
 work. Test environment where was no load I didn't faced such issue.

 Just curious is there anybody who are using Debian Stretch in
 production without issues?

 Jurijs
 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Debian Stretch

2017-09-28 Thread Ludovic Gasc
Hi Jurijs,

You have also DefaultLimitNOFILE in systemd that could be different of the
values you see in console:
https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html

You should test to put LimitNOFILE in systemd unit file, just to be sure.

BTW, we had also some strange behaviors with TCP, Kamailio 5.0 and Debian
Stretch.
But with the Kamailio 4.4 integrated in Debian repository, it seems OK for
now.

Regards.

--
Ludovic Gasc (GMLudo)
Lead Developer Architect at ALLOcloud
https://be.linkedin.com/in/ludovicgasc

2017-09-28 10:51 GMT+02:00 Jurijs Ivolga :

> Hi,
>
> There no limits set...
>
> core file size  (blocks, -c) unlimited
> data seg size   (kbytes, -d) unlimited
> scheduling priority (-e) 0
> file size   (blocks, -f) unlimited
> pending signals (-i) 514946
> max locked memory   (kbytes, -l) 64
> max memory size (kbytes, -m) unlimited
> open files  (-n) 1048576
> pipe size(512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> real-time priority  (-r) 0
> stack size  (kbytes, -s) 8192
> cpu time   (seconds, -t) unlimited
> max user processes  (-u) unlimited
> virtual memory  (kbytes, -v) unlimited
> file locks  (-x) unlimited
>
> With kind regards,
>
> Jurijs
>
> On Thu, Sep 28, 2017 at 11:40 AM, Sergey Safarov 
> wrote:
>
>> Try adjust LimitNOFILE on systemd
>>  unit
>> If this will help then create ticker and i will create PR
>> Example
>> 
>>
>> чт, 28 сент. 2017 г. в 8:51, Jurijs Ivolga :
>>
>>> Hi Guys,
>>>
>>> I recently tried to use Debian Stretch in production and it didn't went
>>> well. On load(500k-700k SIP messages per day) I get a problem that at some
>>> point there was a pike of CLOSE_WAIT connections(up to 2k of CLOSE_WAIT
>>> connections) and no new connections was possible, I tried to figure out
>>> where problem is, but I didn't found anything in system or Kamailio logs,
>>> Kamailio just stopped to receive traffic via TCP, but UDP continued to
>>> work. Test environment where was no load I didn't faced such issue.
>>>
>>> Just curious is there anybody who are using Debian Stretch in production
>>> without issues?
>>>
>>> Jurijs
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Brandon Armstead
src/utils/kamctl

On Thu, Sep 28, 2017 at 4:06 AM Brandon Armstead  wrote:

> Make sure the kamctl files exist there as in the path in can’t locate if
> not copy them from I believe src/Uriel/kamctl to the desired path it is
> looking for and or symlink.
>
> On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi <
> dolaw...@pethahiah.com> wrote:
>
>> Dear All,
>>
>>
>>
>> Please help me with error messages.
>>
>>
>>
>> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
>> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
>> */usr/local/sbin/kamdbctl
>> create* and got the Error messages below.
>>
>>
>>
>> *ERROR: could not load the script in
>> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>>
>> *ERROR: database engine not loaded - tried 'MYSQL'*
>>
>>
>>
>> Here this the version of kamailio I installed.
>>
>>
>>
>> ./kamailio -I.
>>
>> Print out of kamailio internals
>>
>>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>>
>>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>>
>>   Default paths to modules: /usr/local/lib64/kamailio/modules
>>
>>   Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>>
>>   MAX_RECV_BUFFER_SIZE=262144
>>
>>   MAX_LISTEN=16
>>
>>   MAX_URI_SIZE=1024
>>
>>   BUF_SIZE=65535
>>
>>   DEFAULT PKG_SIZE=8MB
>>
>>   DEFAULT SHM_SIZE=64MB
>>
>>   ADAPTIVE_WAIT_LOOPS=1024
>>
>>   TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
>>
>>   Source code revision ID: 75f13d
>>
>>   Compiled with: gcc 4.9.2
>>
>>   Compiled on: 10:56:51 Sep 28 2017
>>
>> Thank you for flying kamailio!
>>
>>
>>
>>
>>
>> Regards
>>
>>
>>
>> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |** Information System
>> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
>> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
>> +2348052612001,+2348098797928 *|*Skype*: daptims |
>> htttp://www.pethahiah.com
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> --
> Sent from Gmail Mobile
>
-- 
Sent from Gmail Mobile
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Brandon Armstead
Make sure the kamctl files exist there as in the path in can’t locate if
not copy them from I believe src/Uriel/kamctl to the desired path it is
looking for and or symlink.

On Thu, Sep 28, 2017 at 3:27 AM Timothy oladapo olawuyi <
dolaw...@pethahiah.com> wrote:

> Dear All,
>
>
>
> Please help me with error messages.
>
>
>
> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
> */usr/local/sbin/kamdbctl
> create* and got the Error messages below.
>
>
>
> *ERROR: could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>
> *ERROR: database engine not loaded - tried 'MYSQL'*
>
>
>
> Here this the version of kamailio I installed.
>
>
>
> ./kamailio -I.
>
> Print out of kamailio internals
>
>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>
>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>
>   Default paths to modules: /usr/local/lib64/kamailio/modules
>
>   Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>
>   MAX_RECV_BUFFER_SIZE=262144
>
>   MAX_LISTEN=16
>
>   MAX_URI_SIZE=1024
>
>   BUF_SIZE=65535
>
>   DEFAULT PKG_SIZE=8MB
>
>   DEFAULT SHM_SIZE=64MB
>
>   ADAPTIVE_WAIT_LOOPS=1024
>
>   TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
>
>   Source code revision ID: 75f13d
>
>   Compiled with: gcc 4.9.2
>
>   Compiled on: 10:56:51 Sep 28 2017
>
> Thank you for flying kamailio!
>
>
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |** Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims |
> htttp://www.pethahiah.com
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Sent from Gmail Mobile
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mysql installation error

2017-09-28 Thread Logeshwaran G
Use The below steps to install mysql and create database:

1) yum install mariadb-server mariadb
2) systemctl start mariadb.service
3) systemctl enable mariadb.service
4) mysql

5) nano -w /usr/local/etc/kamailio/kamctlrc
6) DBENGINE=MYSQL
7) /usr/local/sbin/kamdbctl create





Thanks & Kind Regards,
*Logeshwaran G*

*"Be Hungry, Stay Foolish"*

On Thu, Sep 28, 2017 at 3:56 PM, Timothy oladapo olawuyi <
dolaw...@pethahiah.com> wrote:

> Dear All,
>
>
>
> Please help me with error messages.
>
>
>
> Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
> available in the SIP ROUTING WITH KAMAILIO book, when I executed the 
> */usr/local/sbin/kamdbctl
> create* and got the Error messages below.
>
>
>
> *ERROR: could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL*
>
> *ERROR: database engine not loaded - tried 'MYSQL'*
>
>
>
> Here this the version of kamailio I installed.
>
>
>
> ./kamailio -I.
>
> Print out of kamailio internals
>
>   Version: kamailio 4.4.6 (x86_64/linux) 75f13d
>
>   Default config: /usr/local/etc/kamailio/kamailio.cfg
>
>   Default paths to modules: /usr/local/lib64/kamailio/modules
>
>   Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>
>   MAX_RECV_BUFFER_SIZE=262144
>
>   MAX_LISTEN=16
>
>   MAX_URI_SIZE=1024
>
>   BUF_SIZE=65535
>
>   DEFAULT PKG_SIZE=8MB
>
>   DEFAULT SHM_SIZE=64MB
>
>   ADAPTIVE_WAIT_LOOPS=1024
>
>   TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select
>
>   Source code revision ID: 75f13d
>
>   Compiled with: gcc 4.9.2
>
>   Compiled on: 10:56:51 Sep 28 2017
>
> Thank you for flying kamailio!
>
>
>
>
>
> Regards
>
>
>
> *Olawuyi Timothy Oladapo **|* *IT/VAS Operation** |** Information System
> Dept **|**Pethahiah Rehoboth INTL. Limited* | *2nd Floor Rubby Block All
> seasons Plaza , Lateef Jakande Rd, Agidingbi, Ikeja, Lagos.* | *Mobile:**
> +2348052612001,+2348098797928 *|*Skype*: daptims |
> htttp://www.pethahiah.com
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] mysql installation error

2017-09-28 Thread Timothy oladapo olawuyi


Dear All,

 

Please help me with error messages.

 

Am trying to configure kamailio MYSQL as DBEGINE base on the tutorial
available in the SIP ROUTING WITH KAMAILIO book, when I executed the
/usr/local/sbin/kamdbctl create and got the Error messages below.

 

ERROR: could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

ERROR: database engine not loaded - tried 'MYSQL'

 

Here this the version of kamailio I installed.

 

./kamailio -I.

Print out of kamailio internals

  Version: kamailio 4.4.6 (x86_64/linux) 75f13d

  Default config: /usr/local/etc/kamailio/kamailio.cfg

  Default paths to modules: /usr/local/lib64/kamailio/modules

  Compile flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLACKLIST, HAVE_RESOLV_RES

  MAX_RECV_BUFFER_SIZE=262144

  MAX_LISTEN=16

  MAX_URI_SIZE=1024

  BUF_SIZE=65535

  DEFAULT PKG_SIZE=8MB

  DEFAULT SHM_SIZE=64MB

  ADAPTIVE_WAIT_LOOPS=1024

  TCP poll methods: poll, epoll_lt, epoll_et, sigio_rt, select

  Source code revision ID: 75f13d

  Compiled with: gcc 4.9.2

  Compiled on: 10:56:51 Sep 28 2017

Thank you for flying kamailio!

 

 

Regards

 

Olawuyi Timothy Oladapo | IT/VAS Operation | Information System Dept
|Pethahiah Rehoboth INTL. Limited | 2nd Floor Rubby Block All seasons Plaza
, Lateef Jakande Rd, Agidingbi, Ikeja, Lagos. | Mobile:
+2348052612001,+2348098797928 |Skype: daptims |
 htttp://www.pethahiah.com

 

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about Kamailio Performance

2017-09-28 Thread Dmitri Savolainen
Hi.
In my tests the best perfomance was achieved with combination of mysql and
htable  as mysql cache (
http://www.kamailio.org/docs/modules/devel/modules/htable.html).
With SIPP testing it is important to switch off kamailio  logging (set
critical level for example) and check network perfomance (sipp and kamailio
should be within LAN)


2017-09-28 5:00 GMT+03:00 Jiankai Zhu :

> *My goal:*
>
> make sure when using kamailio as engine I can achieve:
>
>- on systems with 4GB memory, Kamailio can serve a population over 300
>000 online subscribers
>- https://www.kamailio.org/w/features/ >
>
>
> *Test bed:*
> CPU: 4 cores , 4G RAM
>
> Kamailio 5 with Mysql.
>
> Test source:another server running SIPp
>
> 10k subscriber in Mysql .  6000 Register Per Second ,  reuse 10k user to
> register , it works fine.  If register 50 every second for per user it seem
> 300 k subscribers should work.
> (about 300% cpu used of totally 400% cpu. All requests finished without
> retransmit and fail. )
>
> add 90k subscriber into Mysql .
> 100k subscirbers in Mysql . 1000 Register Per Second , a lot of failure
> and can not work .
>
> (cpu are not used much at that time. IO is not high.)
>
> *My question : *
> What is the root cause of bad performance when there is 100k subscribers'
> data in the Mysql database.
>
> How can I deploy a kamailio with 300k  subscriber in database, and support
> 6000 register per second at the same time ?
> Maybe use ram database instead of Mysql?
>
> Thanks with regards,
> David
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Savolainen Dmitri
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Debian Stretch

2017-09-28 Thread Jurijs Ivolga
Hi,

It was just SSL connections.
I needed to restart kamailio, otherwise it just stopped to work.

kamailio 4.4.6 (x86_64/linux) 75f13d, I built from git.

TCP connection lifetime was 124 seconds.

tcp_max_connections=24000

I switched to debian 8 and now it works.

With kind regards,

Jurijs

On Thu, Sep 28, 2017 at 9:57 AM, Daniel-Constantin Mierla  wrote:

> Hello,
>
> what is the kamailio version?
>
> Were these bare tcp or also tls connections? Stretch comes with libssl 1.1
> which is a major refactoring and wondering if that can be an effect.
>
> Did you have to restart or the connections were ended after a while? Being
> just a temporary pike ...
>
> What is the tcp connection lifetime value you use?
>
> Might help a bit, you can increase the number of max tcp connections in
> kamailio (default is 2024).
>   - https://www.kamailio.org/wiki/cookbooks/5.0.x/core#tcp_max_connections
>
> Cheers,
> Daniel
>
>
> On 28.09.17 07:51, Jurijs Ivolga wrote:
>
> Hi Guys,
>
> I recently tried to use Debian Stretch in production and it didn't went
> well. On load(500k-700k SIP messages per day) I get a problem that at some
> point there was a pike of CLOSE_WAIT connections(up to 2k of CLOSE_WAIT
> connections) and no new connections was possible, I tried to figure out
> where problem is, but I didn't found anything in system or Kamailio logs,
> Kamailio just stopped to receive traffic via TCP, but UDP continued to
> work. Test environment where was no load I didn't faced such issue.
>
> Just curious is there anybody who are using Debian Stretch in production
> without issues?
>
> Jurijs
>
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - www.asipto.com
> Kamailio World Conference - www.kamailioworld.com
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about Kamailio Performance

2017-09-28 Thread Daniel-Constantin Mierla
Hello,

it seems that interaction with mysql is a bottleneck. What is the value
of children parameter in kamailio.cfg?

Cheers,
Daniel


On 28.09.17 04:00, Jiankai Zhu wrote:
> *My goal:*
>
> make sure when using kamailio as engine I can achieve:
>
>   * on systems with 4GB memory, Kamailio can serve a population over
> 300 000 online subscribers
>   * https://www.kamailio.org/w/features/ >
>
>
> *Test bed:*
> CPU: 4 cores , 4G RAM
>
> Kamailio 5 with Mysql. 
>
> Test source:another server running SIPp
>
> 10k subscriber in Mysql .  6000 Register Per Second ,  reuse 10k user
> to register , it works fine.  If register 50 every second for per user
> it seem 300 k subscribers should work. 
> (about 300% cpu used of totally 400% cpu. All requests finished
> without retransmit and fail. )
>
> add 90k subscriber into Mysql .
> 100k subscirbers in Mysql . 1000 Register Per Second , a lot of
> failure and can not work . 
>
> (cpu are not used much at that time. IO is not high.)
>
> *My question : *
> What is the root cause of bad performance when there is 100k
> subscribers' data in the Mysql database. 
>
> How can I deploy a kamailio with 300k  subscriber in database, and
> support 6000 register per second at the same time ?
> Maybe use ram database instead of Mysql?   
>
> Thanks with regards,
> David
>
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Debian Stretch

2017-09-28 Thread Daniel-Constantin Mierla
Hello,

what is the kamailio version?

Were these bare tcp or also tls connections? Stretch comes with libssl
1.1 which is a major refactoring and wondering if that can be an effect.

Did you have to restart or the connections were ended after a while?
Being just a temporary pike ...

What is the tcp connection lifetime value you use?

Might help a bit, you can increase the number of max tcp connections in
kamailio (default is 2024).

  - https://www.kamailio.org/wiki/cookbooks/5.0.x/core#tcp_max_connections

Cheers,
Daniel

On 28.09.17 07:51, Jurijs Ivolga wrote:
> Hi Guys,
>
> I recently tried to use Debian Stretch in production and it didn't
> went well. On load(500k-700k SIP messages per day) I get a problem
> that at some point there was a pike of CLOSE_WAIT connections(up to 2k
> of CLOSE_WAIT connections) and no new connections was possible, I
> tried to figure out where problem is, but I didn't found anything in
> system or Kamailio logs, Kamailio just stopped to receive traffic via
> TCP, but UDP continued to work. Test environment where was no load I
> didn't faced such issue.
>
> Just curious is there anybody who are using Debian Stretch in
> production without issues?
>
> Jurijs
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Subscribe Reinvites totag

2017-09-28 Thread Soltanici Ilie

Hi All,

I have system setup where there are few Asterisk servers behind Kamailio. 
Everything is working properly, the issue only is with the Incoming Subscribe's 
with to-tag from endpoints.
Below you can see the invite:
--
2017/09/27 19:40:29.995598 192.168.2.33:5060 -> 10.25.23.1:5060
SUBSCRIBE sip:1211@10.25.23.1 SIP/2.0 
Via: SIP/2.0/UDP 192.168.2.33:5060;branch=z9hG4bK-fc65f67d
From: "Cisco" ;tag=258a856c69c288
To: ; tag=02cca2b6-1d9b-4edc-b1de-fdd78f8f9ab0
Call-ID: 4ce04a70-6128897b@192.168.2.33
CSeq: 1003 SUBSCRIBE
Max-Forwards: 70
Route: , 
 
Proxy-Authorization: Digest 
username="211",realm="10.25.23.1",nonce="Wcvq0VnL6aUbQ3c+nZa5xbh8KMVoOwAq",uri="sip:1211@10.25.23.1",algorithm=MD5,response="155f68d66b3c6ad035f7db1ec5732020"
Contact: "Cisco" 
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Cisco/SPA504G-7.6.2
Content-Length: 0
--

Receiving such Invite Kamailio are routing to RELAY route (from WITHINDLG) and 
showing such error:
ERROR: rr [loose.c:107]: find_first_route(): failed to parse Route HF

It seems that Kamailio cannot find such Dialog, but why is happening? where is 
it destroyed?
How can i solve this?

Route (WITHINDLG) is as default, below you can see it as well. 
---
route[WITHINDLG] {
if (!has_totag()) return;

if (loose_route()) {
if ( is_method("ACK") ) {
route(NATMANAGE);
}
route(RELAY);
} else {
if (is_method("SUBSCRIBE") && uri == myself) {
route(PRESENCE);
exit;
}
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
t_relay();
exit;
} else {
exit;
}
}
sl_send_reply("404","Not here");
}
exit;
}
---

Thank You.___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users