[SR-Users] Dialog module is crashing after setting track_cseq_updates to 1

2015-01-29 Thread Fernando Aquilino
Hi, after setting track_cseq_updates to 1 in module dialog (and calling dlg_manage() from request_route) I'm getting reproducible crashes in both stable (4.2.2) and dev (4.3.0-dev3, 2015-01-28) releases. I made the change to cope with CSeq not being incremented when sending another INVITE with au

Re: [SR-Users] Dispatcher weight dont work

2015-01-29 Thread Yuriy Gorlichenko
Will, thanks for your answer. I already implemented my own lgorithm without using dispatcher module. It works better for me. Now I try to implement it with REDIS for faster results. 2015-01-29 1:35 GMT+03:00 Will Ferrer : > Hi Yuri > > I shared your issue with my business partner who works on the

Re: [SR-Users] Dialog module is crashing after setting track_cseq_updates to 1

2015-01-29 Thread Daniel-Constantin Mierla
Hello, I pushed a patch in master branch, can you try with latest git? The issue happened when cseq was before the via. If reported to work ok, I will backport. Cheers, Daniel On 28/01/15 21:14, Fernando Aquilino wrote: > Hi, > > after setting track_cseq_updates to 1 in module dialog (and calli

Re: [SR-Users] kamailio 4.2.1 core in timer.c:877

2015-01-29 Thread Daniel-Constantin Mierla
Hello, the tl content looks good, let's see the prev and next items: p *tl->prev p *tl->next Cheers, Daniel On 29/01/15 08:49, 张顺通 wrote: > hi daniel, look at the following info,thks. > > (gdb) bt full > #0 0x005fda98 in timer_list_expire (t=1263625687, > h=0x7fa5e01c19b0, slow_l=0x7f

Re: [SR-Users] kamailio 4.2.1 core in timer.c:877

2015-01-29 Thread 张顺通
(gdb) p *tl->prev $1 = {next = 0x0, prev = 0x7fa5e0403d50, expire = 3233857728, initial_timeout = 0, data = 0xabcdefed, f = 0, flags = 0, slow_idx = 0} (gdb) p *tl->next Cannot access memory at address 0x0 2015-01-29 18:09 GMT+08:00 Daniel-Constantin Mierla : > Hello, > > the tl content looks

Re: [SR-Users] Core dump while saving user location in mongo

2015-01-29 Thread Daniel-Constantin Mierla
Hello, can you give the parameters for usrloc module? Are you using DB_ONLY mode? Cheers, Daniel On 29/01/15 08:55, Mickael Marrache wrote: > > Hi, > > > > When my proxy receives a REGISTER request, it crashes while saving the > user location in MongoDB. > > > > This is the backtrace from th

Re: [SR-Users] Core dump while saving user location in mongo

2015-01-29 Thread Mickael Marrache
The parameters: modparam("usrloc", "db_url", "mongodb://DB_MONGO_HOST:DB_MONGO_PORT/DB_MONGO_DBNAME") modparam("usrloc", "db_mode", 3) modparam("usrloc", "use_domain", 0) modparam("usrloc", "timer_interval", 60) Yes, I use DB_ONLY (3) mode. Mickael From: sr-users [mailto:sr-users

Re: [SR-Users] Core dump while saving user location in mongo

2015-01-29 Thread Daniel-Constantin Mierla
Also, give the error messages from syslog file. Cheers, Daniel On 29/01/15 11:23, Daniel-Constantin Mierla wrote: > Hello, > > can you give the parameters for usrloc module? Are you using DB_ONLY mode? > > Cheers, > Daniel > > On 29/01/15 08:55, Mickael Marrache wrote: >> >> Hi, >> >> >> >> Whe

Re: [SR-Users] Core dump while saving user location in mongo

2015-01-29 Thread Mickael Marrache
Now, it didn't crash during the REGISTER but during the INVITE: kamailio[32599]: DEBUG: db_mongodb [mongodb_dbase.c:705]: db_mongodb_query(): query to collection [location] kamailio[32599]: DEBUG: db_mongodb [mongodb_dbase.c:726]: db_mongodb_query(): query filter: { "username" : "m1" } kamail

[SR-Users] Setting dialog variable when BYE is received before accounting

2015-01-29 Thread Mickael Marrache
Hi, Is there a way to set a dialog variable when a BYE is received so that it can be written in a CDR? I tried as follows but it didn't work: if (loose_route()) { .. if(is_method("BYE")) { if(is_direction("downstream")) {

Re: [SR-Users] Async module taking down our server

2015-01-29 Thread Brandon Armstead
Why not just kill the call and have billing fix up for minimum duration occur during CDR creation? Does not make sense to delay Hangup just to meet minimum duration. Sent from my iPhone > On Jan 28, 2015, at 5:37 PM, Will Ferrer wrote: > > Hi Daniel > > Yeah I am happy to be able to report

[SR-Users] NDB_REDIS password to REDIS remote DB

2015-01-29 Thread Yuriy Gorlichenko
Hello. I try to use NDB_REDIS with remote REDIS DB and can not to connect because remote DB use password, but Kamailio module have no any variable or attr of modparam that implenets password for DB. How I can connect to my REDIS? ___ SIP Express Router (

Re: [SR-Users] NDB_REDIS password to REDIS remote DB

2015-01-29 Thread Marc Soda
The only way it will work right now is to not use a password: modparam("ndb_redis", "server", "name=localredis;addr=localhost;port=6379") I've been wanting to look at contributing support at that, but no time... On Thu, Jan 29, 2015 at 10:16 AM, Yuriy Gorlichenko wrote: > Hello. I try to use ND

Re: [SR-Users] NDB_REDIS password to REDIS remote DB

2015-01-29 Thread Daniel-Constantin Mierla
Hello, it appears that hiredis library does the authentication after connecting and can be done from config -- that's on a very quick search, not sure if something has changed with the hiredis api meanwhile: - https://github.com/redis/hiredis/issues/56 Cheers, Daniel On 29/01/15 17:20, Marc So

Re: [SR-Users] NDB_REDIS password to REDIS remote DB

2015-01-29 Thread Marc Soda
Ah, so you should be able to do something like: redis_cmd("localredis", "AUTH $var(redis_password)"); Nice. I will try that and post my results. On Thu, Jan 29, 2015 at 1:28 PM, Daniel-Constantin Mierla wrote: > Hello, > > it appears that hiredis library does the authentication after connect

Re: [SR-Users] gruu within dialog

2015-01-29 Thread Seudin Kasumovic
Hi, If there is Path in the AOR then lookup("domain") adds Route header(s), the additional route(s) breaks routing. The work arround is to use reg_fetch_contacts(domain, uri, profile) and match gr parameter from $ru with $ulc(profile=>instance) to find $ulc(profile=>addr). How about change behav

[SR-Users] Video Key-Frame Request using RTCP FIR or SIP INFO message

2015-01-29 Thread Muhammad Shahzad
Hi, This may be a bit out of focus topic for this forum but i am posting it here anyway with hope that some guru would shed some light on it and point me to right direction. The problem is that i want to establish video call between a webrtc and a sip client using kamailio (for signalling) and RT

Re: [SR-Users] Possible memory leak dealing with presence in kamailio

2015-01-29 Thread Nuno Reis
Hi Juha and all. I understand that and that is what the RFC says. It seems pua module does that right. Although something is clearly not right in my production environment because kamailio memory consumption still grows pretty fast. Kamailio memory usage starts in ~500MB and after ~24H kamailio is

Re: [SR-Users] Core dump while saving user location in mongo

2015-01-29 Thread Daniel-Constantin Mierla
Hello, I pushed a patch that takes care of initializing the columns array of the result - it is in the master branch for now. However, the log messages don't seem to be complete, were you sending all. The backtrace shows a line which is executed only if an error message is printed, it is not in t

Re: [SR-Users] Possible memory leak dealing with presence in kamailio

2015-01-29 Thread Daniel-Constantin Mierla
Hello, which memory is increasing? shared or private memory? or is system memory? Cheers, Daniel On Fri, Jan 30, 2015 at 4:24 AM, Nuno Reis wrote: > Hi Juha and all. > > I understand that and that is what the RFC says. It seems pua module does > that right. Although something is clearly not ri

Re: [SR-Users] Does forking impact max_inv_lifetime?

2015-01-29 Thread Daniel-Constantin Mierla
Hello, I will have to look at the code in tm module to be able to comment more. Based on your findings, it seems that it is reset, and shouldn't. Cheers, Daniel On Wed, Jan 28, 2015 at 11:40 PM, Alex Balashov wrote: > Hi, > > To return to this topic, it definitely does not appear that > max_in

Re: [SR-Users] why do not support tcp:eth1:5062,only support eht1:5062

2015-01-29 Thread Daniel-Constantin Mierla
Hello, can you give the log messages with debug=3 in your config file? Cheers, Daniel On Thu, Jan 29, 2015 at 8:54 AM, 张顺通 wrote: > especially i want to use tls:eth1:5063 > > 2015-01-29 15:52 GMT+08:00 张顺通 : > >> what can i do to user tcp:eth1:5062 >> >> 2014-11-12 10:53 GMT+08:00 张顺通 : >> >>>

[SR-Users] Can kamailio generate a PRACK

2015-01-29 Thread Rahul MathuR
Hello, I was wondering whether Kamailio (as proxy) can generate a PRACK on its own ( since one of the custom written dialer is not sending PRACK) ? Is there any way I can achieve this ? -- Warm Regds. MathuRahul ___ SIP Express Router (SER) and Kamai