Re: [SR-Users] Trouble getting start time / call duration from dialog module

2015-01-14 Thread Will Ferrer
An update on this. I tried setting my dialog module to the use the db. No db entry is ever made. My config looks like this now: loadmodule dialog.so ... modparam(dialog, db_url, DBURL) modparam(dialog, db_mode, 1) modparam(dialog, dlg_flag, 4) modparam(dialog, dlg_match_mode, 1) ...

[SR-Users] Trouble getting start time / call duration from dialog module

2015-01-14 Thread Will Ferrer
Hi All I am in need of being able to see what the duration of the call was at the time of hang out. I tried turning on the dialog module, but the result is that the values I need are either null or always show as zero. I tried to follow the suggestions in the thread about this here:

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Kristian F . Høgh
Hi Daniel, I will see if I can grow my balls big enough to upgrade :-) Thanks for your help and time. Regards, Kristian. On Wednesday 14 January 2015 14:58:22 Daniel-Constantin Mierla wrote: Hello, ok, so it is from the pid. At this moment I don't see any reason in that part of code to

[SR-Users] Fosdem 2015

2015-01-14 Thread Alexandr Dubovikov
Hello everybody, what is about Fosdem this year ? Who is going there ? Wbr, Alexandr ___ 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

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Daniel-Constantin Mierla
Hello, the operation done by that code is practically a sql query, fetching the result and packing it for nathelper usage. It is no race between it and handling any sip packet, no shared memory accessed. Do you get only one corefile? From the backtrace it looks like row pointer is not ok, can

Re: [SR-Users] event on table location Duplicate entry for key 'ruid_idx'

2015-01-14 Thread Daniel-Constantin Mierla
Would be interesting to discover the issue that got here. server_id can help in the future, but the chance of getting overlapping unique ids is very low even with it. That's why I asked for 'kamctl ps' to see if there are PIDs overlapping on the two systems. Then it is also the start time that

Re: [SR-Users] Dispatcher Failover algorithm

2015-01-14 Thread Daniel-Constantin Mierla
Can you check the state of the gateway via kamctl dispatcher list? Cheers, Daniel On 13/01/15 11:51, Yuriy Gorlichenko wrote: Daniel. I added 8 algorithm to our server and it works with 2 servers now but it works strange because: While works server with priority 1 - all ok. When this server

Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-14 Thread Daniel-Constantin Mierla
On 06/01/15 10:21, Daniel Tryba wrote: On Monday 05 January 2015 18:57:00 Victor Seva wrote: Check http://www.kamailio.org/docs/modules/4.1.x/modules/siputils.html#siputils.f .is_e164 Thanks for the pointer but the value doesn't necesarrily contain e164 numbers, for example the value

Re: [SR-Users] Dispatcher 8 algorithm based on priority strange works

2015-01-14 Thread Daniel-Constantin Mierla
On 13/01/15 16:52, Yuriy Gorlichenko wrote: Daniel. I added 8 algorithm to our server and it works with 2 asterisk now but it works strange because: While works server with priority 1 - all ok. When this server goes down dispatcher choose next server with lowes priority. But when server

Re: [SR-Users] Dispatcher 8 algorithm based on priority strange works

2015-01-14 Thread Yuriy Gorlichenko
About servers - I see at asterisk successfull option requests from kamailio and 200 reply o this requests. This meants as I understand, that servers know about each other. Now about behaivor: Todays morning I try to down server with highest priority. Kam successfully takes server with low

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Daniel-Constantin Mierla
Hello, the string_val field look ok. But p variable which is assigned that value a line before the reported crash is not, as reported by bt full: p = 0xcfcdffaf Address 0xcfcdffaf out of bounds Do you have enabled core files per process/pid? I still wonder if it is a overwritten core.

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Kristian F . Høgh
Hi Daniel, # kamailio -V version: kamailio 3.1.1 (x86_64/linux) c274ce flags: STATS: Off, USE_IPV6, 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, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Daniel-Constantin Mierla
Hello, ok, so it is from the pid. At this moment I don't see any reason in that part of code to crash, unless hardware problems. Maybe you can at least upgrade to latest version in 3.1.x series, to rule out the side effects of the bugs found in 3.1 branch at that time. It should be same config

Re: [SR-Users] Dispatcher 8 algorithm based on priority strange works

2015-01-14 Thread Daniel-Constantin Mierla
Give the output of 'kamailio -v', because you are running master. There were some commits to the part about activating dispatcher gateways, with several commits. Might be some intermediate state. Cheers, Daniel On 14/01/15 10:43, Yuriy Gorlichenko wrote: About servers - I see at asterisk

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Kristian F . Høgh
Hi Daniel, (gdb) p *row $1 = {values = 0x9bd2b8, n = 13} Regards, Kristian. On Wednesday 14 January 2015 10:01:41 Daniel-Constantin Mierla wrote: Hello, the operation done by that code is practically a sql query, fetching the result and packing it for nathelper usage. It is no race

Re: [SR-Users] Fwd: Need a support for Siremis and kamailio server

2015-01-14 Thread ram
Hi Rai Post your logs and configuration to suggest best. Ram On Wed, Mar 5, 2014 at 12:51 PM, Gaurav Rai gauravra...@gmail.com wrote: Hi I am using a siremis and *kamailio * hosted server with lylix.net and they give a link for getting a support about Siremis. I need a support to how to

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Kristian F . Høgh
Hi Daniel, Sorry. Forgot to answer your question. I am quite sure, I only got one core file. Regards, Kristian Høgh Uni-tel On Wednesday 14 January 2015 10:01:41 Daniel-Constantin Mierla wrote: Hello, the operation done by that code is practically a sql query, fetching the result and

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Daniel-Constantin Mierla
Hello, get also: p *row-values p i Cheers, Daniel On 14/01/15 10:50, Kristian F. Høgh wrote: Hi Daniel, (gdb) p *row $1 = {values = 0x9bd2b8, n = 13} Regards, Kristian. On Wednesday 14 January 2015 10:01:41 Daniel-Constantin Mierla wrote: Hello, the operation done by that code is

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Kristian F . Høgh
Hi Daniel, (gdb) p *row-values $1 = {type = DB1_STRING, nul = 0, free = 0, val = {int_val = 58055112, ll_val = 58055112, double_val = 2.8683036404665902e-316, time_val = 58055112, string_val = 0x375d9c8 sip:44221xxx@192.168.1.157:37612;rinstance=8c613319a30caff6;transport=TCP, str_val = {

Re: [SR-Users] Crash in usrloc, get_all_db_ucontacts

2015-01-14 Thread Daniel-Constantin Mierla
On 14/01/15 14:21, Kristian F. Høgh wrote: Hi Daniel, # kamailio -V version: kamailio 3.1.1 (x86_64/linux) c274ce flags: STATS: Off, USE_IPV6, 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] Making rtp streams appear unidirectional

2015-01-14 Thread aft
On Mon, Jan 12, 2015 at 5:52 PM, Daniel-Constantin Mierla mico...@gmail.com wrote: On 12/01/15 11:14, aft wrote: On Fri, Jan 9, 2015 at 12:37 AM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, On 01/01/15 08:29, aft wrote: Hi, Is it possible to make the rtp stream

Re: [SR-Users] Wrong dialog selected in on_reply/failure route in case of spirals.

2015-01-14 Thread Daniel-Constantin Mierla
Hello Julia, ok, I will look over the logs very soon. As a short note for the future, make the archives zip or tgz, being more common formats that can be unarchived everywhere without installing additional app, being handy to open even on small devices. Now it is ok with rar, being at the desk.