Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
I have two computer, one is ok ,the other can not startup. 2014-10-20 14:52 GMT+08:00 shuntongzhang : > mysql operation is all ok. > > no private memory left. > pkg_malloc is failed. > > > 发自我的小米手机 > 在 2014年10月20日 下午1:51,Gonzalo Gasca 写道: > > Hi, > > Based on: > > Oct 20 08:14:45 ka[15500]: ERROR

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
when open MEMDBG ?= 1, I get this [mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm. tail overwritten(0, 0)[0x7f64241cdfc0:0x7f64241cdff0]! 2014-10-20 16:20 GMT+08:00 张顺通 : > I have two computer, one is ok ,the other can not startup. > > 2014-10-20 14:52 GMT+08:00 shuntongzhang : >

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
Are both computers using same database or each of them has a database server locally? Do you use same configuration file and command line parameters on both systems? Can you start with higher pkg memory on the computer where you have troubles? Like: kamailio -M 12 ... Cheers, Daniel On 20/10/14

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
Can you set in kamailio.cfg: debug=3 memdbg=2 memlog=2 and send the syslog messages printed by kamailio from the moment of starting it to me? They can be a lot, would be good if you can make an archive (tgz) and put it somewhere for download. Cheers, Daniel On 20/10/14 11:00, 张顺通 wrote: > when

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
-M 12 can not help. all config is same. see ka.log in attachment, kamailio version is 4.1.6 version: kamailio 4.1.6 (x86_64/linux) 010d57 flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX,

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
Are you using 4.1 or 4.2? Because the subject mentioned 4.2 but the version of kamailio is 4.1 Daniel On 20/10/14 11:39, 张顺通 wrote: > -M 12 can not help. all config is same. > > see ka.log in attachment, kamailio version is 4.1.6 > > version: kamailio 4.1.6 (x86_64/linux) 010d57 > > flags: STATS

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
ka.log is genrate by kamailio 4.1.6. 2014-10-20 17:44 GMT+08:00 Daniel-Constantin Mierla : > Are you using 4.1 or 4.2? > > Because the subject mentioned 4.2 but the version of kamailio is 4.1 > > Daniel > > On 20/10/14 11:39, 张顺通 wrote: > > -M 12 can not help. all config is same. > > > > see ka.l

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
4.2 have the same problem. at begin i use 4.1, i think this is a bug in 4.1; then i use 4.2 to check to see if the problem is solved. problems still in. see ka_4_2_0.log ​ ka_4_2_0.log ​ 2014-10-20 17:48 GMT+08:00

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
What are the differences between the server that works and the one that doesn't? I mean hardware and operating system details? Checking quickly the source code and comparing with logs, it doesn't reveal any problem -- it is about allocation of the next fragment, which was not used at all before, a

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
4.2.0 have a core #0 0x77488265 in raise () from /lib64/libc.so.6 No symbol table info available. #1 0x77489d10 in abort () from /lib64/libc.so.6 No symbol table info available. #2 0x00615b74 in qm_debug_frag (qm=0x76c55010, f=0x76cdcf08) at mem/q_malloc.c:161

Re: [SR-Users] parallel forking

2014-10-20 Thread Yuriy Gorlichenko
I found INFO about "b" flag for rtpproxy-ng module. It may solve my porblem, but as I understand, rtpengine not support this flag. I thought about adiing rtpproxy handling after append_branch (something like branch_route) but con not find any info how to use it after branching... Does anybody help

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
os is rhel. rhel6 is ok, rhel5 can not start. 2014-10-20 18:11 GMT+08:00 Daniel-Constantin Mierla : > What are the differences between the server that works and the one that > doesn't? I mean hardware and operating system details? > > Checking quickly the source code and comparing with logs, it

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
I tracked down the path, which is confirmed by this trace. From the logs can be seen that it is just next chunk in memory. Can you send the output from gdb of: frame 2 p *f Daniel On 20/10/14 12:16, 张顺通 wrote: > 4.2.0 have a core > > #0 0x77488265 in raise () from /lib64/libc.so.6 > N

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Daniel-Constantin Mierla
physical machine is the same? Is it standard OS installation, or some customizations (e.g. custom kernel modules, etc.)? Embedded device? What CPU? Daniel On 20/10/14 12:24, 张顺通 wrote: > os is rhel. > rhel6 is ok, rhel5 can not start. > > 2014-10-20 18:11 GMT+08:00 Daniel-Constantin Mierla

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
rhel5 $cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 24 Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz rhel6 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 16 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz not Embedded device, normal server. gdb (gdb) f 2 #2 0x006

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_free return 0, can not find mem when i close memdbg. 2014-10-20 18:57 GMT+08:00 张顺通 : > rhel5 > $cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c > 24 Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz > rhel6 > cat /proc/cpuinfo |

Re: [SR-Users] send remote command to kamailio

2014-10-20 Thread Vik Killa
If any one is interested, I found I had to compile kamailio in order to use the module "mi_xmlrpc" A follow-up question, why doesn't the htable use separate chaining to avoid collisions? Thanks. /V On Fri, Oct 17, 2014 at 11:18 AM, Vik Killa wrote: > Hello, > I've installed kamailio from debian

Re: [SR-Users] send remote command to kamailio

2014-10-20 Thread Daniel-Constantin Mierla
Hello, xmlrpc modules are packaged separately -- you have to install the package kamailio-xml-modules. No need to re-install from sources. Cheers, Daniel On 20/10/14 15:47, Vik Killa wrote: > If any one is interested, I found I had to compile kamailio in order > to use the module "mi_xmlrpc" > A

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
I install a rehl 5.7 by myself, kamailio 4.1.6 can run correctly. but it can not run on out company's server which is also rehl 5.7. How to find the problem.I have no idea. anyone can help? thks 2014-10-20 19:39 GMT+08:00 张顺通 : > db_new_result->pkg_malloc(qm_malloc)->qm_find_free, func qm_find_fr

Re: [SR-Users] send remote command to kamailio

2014-10-20 Thread Vik Killa
"xmlrpc modules are packaged separately -- you have to install the package kamailio-xml-modules. No need to re-install from sources." I tried this with apt-get, but mi_xmlrpc could not load, also doing a locate mi_xmlrpc.so failed Apparently, there is a difference between xmlrpc.so and mi_xmlrpc.s

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Why isn't htable designed to use separate chains to avoid collisions altogether? On Mon, Aug 19, 2013 at 11:18 AM, Olle E. Johansson wrote: > > 19 aug 2013 kl. 17:02 skrev Elena-Ramona Modroiu : > > On 8/19/13 4:05 PM, Alex Balashov wrote: > > According the docs, the hash table is restricted to

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Alex Balashov
On 10/20/2014 11:17 AM, Vik Killa wrote: Why isn't htable designed to use separate chains to avoid collisions altogether? Chains do not avoid collisions; they're attached to buckets, and simply represent a particular data structure for handling allocations into the same bucket. -- Alex Bal

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Alex, It is a collision resolution, yes collisions will still happen but it essentially fixes the problem. /V On Mon, Oct 20, 2014 at 12:13 PM, Alex Balashov wrote: > On 10/20/2014 11:17 AM, Vik Killa wrote: > > Why isn't htable designed to use separate chains to avoid collisions >> altogether?

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Alex Balashov
Fixes the problem, as opposed to what? What about the htable implementation does not satisfy you now? There are only a few ways of dealing with collisions: put them in a flat list attached to the bucket, devise some algorithm for moving the data to neighbouring buckets, etc. The list approach

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Alex, Separate chains (IMO) is the best way to deal with collisions. If this is built in, the does not have to deal with collisions (or even know what they are)...it provides scalability without the user having to do anything. /V On Mon, Oct 20, 2014 at 12:44 PM, Alex Balashov wrote: > Fixes the

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
correction: "If this is built in, the user does not have to deal with collisions (or even know what they are)...it provides scalability without the user having to do anything." On Mon, Oct 20, 2014 at 12:55 PM, Vik Killa wrote: > Alex, > Separate chains (IMO) is the best way to deal with collis

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Alex Balashov
Vik, What exactly do you mean by "separate chains"? I had assumes you were referring to lists attached to hash buckets. -- Alex Balashov - Principal Evariste Systems LLC Tel: +1-678-954-0670 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ Please be kind to the English language:

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Alex, Yes, linked-lists attached to a hash bucket. http://en.wikipedia.org/wiki/Hash_table#Collision_resolution On Mon, Oct 20, 2014 at 2:37 PM, Alex Balashov wrote: > Vik, > > What exactly do you mean by "separate chains"? I had assumes you were > referring to lists attached to hash buckets. >

[SR-Users] Dispatcher: Cache last selected destination

2014-10-20 Thread Kamrul Khan
Hi, Is there a way to know or cache the last destination selected from dispatcher list? Thanks in advanced! Date: Mon, 20 Oct 2014 14:52:38 -0400 From: vipki...@gmail.com To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Hash Table capacity Alex,Yes, linked-lists attached to a hash buck

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Gonzalo Gasca
Hi Shuntongzhang, As Daniel mentioned we can see the error during* pkg_malloc* db_res.c: db_new_result(112) (db_res.c#L112) https://github.com/kamailio/kamailio/blob/fcdf5f9cfff634ebfa736d7084d5e5483a36355b/lib/srdb1/db_res.c#L112 As I mentioned before can you provide the results of the query fo

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread 张顺通
mysql> desc version; +---+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+-+---+ | table_name| varchar(32) | NO | PRI | NULL| | | tabl

Re: [SR-Users] Configuring TLS and WSS with Kamailio

2014-10-20 Thread Kamrul Khan
I added tls listening port in my config. Now it is working fine. Date: Fri, 17 Oct 2014 18:33:17 -0700 From: gascagonz...@gmail.com To: sr-users@lists.sip-router.org CC: b...@langfeld.me Subject: Re: [SR-Users] Configuring TLS and WSS with Kamailio Hi Ben, In regards your certificates, please dou

[SR-Users] Susceptibility to POODLE Vulnerability?

2014-10-20 Thread Rainer Piper
Hi all, is it possible to add in http://kamailio.org/docs/modules/4.2.x/modules/tls.html under the line > 9.1. |tls_method| (string) ... ... If rfc3261 conformance is desired, TLSv1 must be used. For compatibility with older clients SSLv23 is a good option. *Example 1.3. Set |tls_meth

Re: [SR-Users] kamailio 4.2 ,have some problems when use mysql db

2014-10-20 Thread Gonzalo Gasca
Interestingly you only have 1 record in your dispatcher table. My guess was a huge number of dispatcher records. What do you have in that rule? Maybe some special characters? Can you send: mysql> select * from dispatcher; mysql> desc dispatcher; +-+--+--+-+-

Re: [SR-Users] Susceptibility to POODLE Vulnerability?

2014-10-20 Thread Rainer Piper
Am 21.10.2014 um 08:01 schrieb Rainer Piper: Hi all, is it possible to add in http://kamailio.org/docs/modules/4.2.x/modules/tls.html under the line > 9.1. |tls_method| (string) ... ... If rfc3261 conformance is desired, TLSv1 must be used. For compatibility with older clients SSLv23

Re: [SR-Users] Susceptibility to POODLE Vulnerability?

2014-10-20 Thread Olle E Johansson
!!! *a warning **that the use of SSLv3 **susceptibility to POODLE Vulnerability* !!! Well, since Poodle requires a web browser and java script we're not in danger from a Poodle attack. Even so, we are not enabling SSL by default, only enabling TLS. All versions of SSL are too old to be secu

Re: [SR-Users] Susceptibility to POODLE Vulnerability?

2014-10-20 Thread Rainer Piper
Am 21.10.2014 um 08:20 schrieb Olle E Johansson: !!! *a warning **that the use of SSLv3 **susceptibility to POODLE Vulnerability* !!! Well, since Poodle requires a web browser and java script we're not in danger from a Poodle attack. Even so, we are not enabling SSL by default, only enablin

Re: [SR-Users] Susceptibility to POODLE Vulnerability?

2014-10-20 Thread Olle E Johansson
Rainer Piper skrev 2014-10-21 08:30: Am 21.10.2014 um 08:20 schrieb Olle E Johansson: !!! *a warning **that the use of SSLv3 **susceptibility to POODLE Vulnerability* !!! Well, since Poodle requires a web browser and java script we're not in danger from a Poodle attack. Even so, we are no