[OpenSIPS-Devel] Plan for releasing OpenSIPS 2.1.1

2015-08-14 Thread Bogdan-Andrei Iancu

Hi all,

Following a large set of bug fixes, we will release the first minor 
version of branch 2.1 (the 2.1.1 version) on Wednesday 19th of August 2015.
If there are issues (other than the ones already reported on GITHUB 
tracker), please let us know.


Thanks and regards,

--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Application crashes after internal_search_ID_avp execution (#600)

2015-08-14 Thread Răzvan Crainea
Please run the ```where``` command in gdb to see where the program crashed.
Please post the output of the command ```opensips -V```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/600#issuecomment-131003500___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] error in infinite loop io_watch_del: BUG - trying to del fd 34 with flags 2 1 (#591)

2015-08-14 Thread Bogdan Andrei IANCU
@rgupta0110 thank you for your effort. In order to speed up the fixing, is it 
possible to get access to an opensips where this can be reproduced (once again, 
I couldn't reproduce it on my side) - so I can trigger the testing and have 
opensips im my hands to change and debug ? If you can manage to provide this, I 
guess I will manage to trace the problem and have it fixed in max 1 day. 

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/591#issuecomment-131117313___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [opensips] issue about usrloc expiring location record from different registrar after startup (#601)

2015-08-14 Thread hd16861686
Hello, how are you?
I got the followed mail from below link, 
http://article.gmane.org/gmane.comp.voip.opensips.user/8242/match=database+synchronization+delete+wrong+contact
But I don't understand why non db-only modes don't support location table 
sharing. 
I met the same scene issue as described in below mail but in Write-Back scheme 
of db-mode.
According to it is only written (cache flushed into DB) and never read (only 
at startup) , actually we can read location table through avp_db_query in 
script in non db-only modes, and the only issue is when opensips 1 restart and 
load all online user from location table and after a while opensips 1 find some 
users expired which is regisgtered in opensips 2, but then opensips 1 delete 
these users even these users is not belong to opensips 1, that's the issue. 
But I think this issue can be solved by modifying the code.
for example in opensips 2.1  in wb_timer function of usrloc module,  the 
deleting user from db logic below, besides the condition 
st_expired_ucontact(t) == 1, we can also add one more condition like t-sock 
!= 0, so that those expired users not belong to opensips node will not be 
deleted from db and the issue solved.  

Is this right ? or if i missing something?

 /* Should we remove the contact from the database ? */
if (st_expired_ucontact(t) == 1) {
if (db_delete_ucontact(t)  0) {
LM_ERR(failed to delete contact from 
the database\n);
/* do not delete from memory now - if 
we do, we'll get
 * a stuck record in DB. Future 
registrations will not be
 * able to get inserted due to index 
collision */
continue;
}
}



From: Bogdan-Andrei Iancu bogdan@...
Subject: Re: usrloc expiring location record from different registrar after 
startup
Newsgroups: gmane.comp.voip.opensips.user
Date: 2009-12-02 09:44:47 GMT (5 years, 36 weeks, 2 days, 15 hours and 6 
minutes ago)
Hi Henk,

In non db-only modes, the primary storage is the mem cache - the DB is 
used only as a secondary storage support (for persistence across 
reboots) and it is only written (cache flushed into DB) and never read 
(only at startup) - this is why you cannot share a location table via 2 
servers.

Let me know if you experience the same problem while using the db-only mode.

Regards,
Bogdan

Henk Hesselink wrote:
 Hi Bogdan,

 I think the problem comes from using write-through mode, I'll see if it
 goes away with db-only.  It wasn't clear to me from the documentation
 that only db-only mode is supported with a shared DB.

 Anyway, in case there is more going on, enclosed are the location table
 entries for the UAC (name testtcp30001, the 'tcp' means nothing - it
 uses UDP) and the relevant DB queries.  Registrar A is 79.171.196.85,
 registrar B is 79.171.192.85.  All servers are synchronized with NTP.

 - After T1 there is a single record
 - after T2 also
 - after T3 the record is gone

 The Tx.db files all have 2 lines: the location table before and after Tx.

 Regards,

 Henk


 Bogdan-Andrei Iancu wrote:
 Hi Henk,

 Reviewing your scenario (in db_only mode):

 T1 - registrar A restarts, finds UA registration inserted by registrar B
 with expiry time T3, prints non-local socket ... ignoring 
 message
 T2 - UA registers again with registrar B, sets expiry time to *after* T3
 T3 - registrar A deletes record for UA


 please check:
 - after T1, you have a single record for user in the location table
 (inserted by A)
 - after T2, do you have 2 records for the user (with different contacts)
 or the existing one is updated ?
 - after T3 - I understand all the records for the user are removed, 
 right ?

 can you make a capture of the sql queries on the mysql server (to see
 what queries - location related- are run by each server).

 I'm asking for all this because, following the code, I cannot see the
 behaviour you describe - maybe I miss something or maybe there is a bug
 somewhere.

 Regarding the other db modes, note they do not work (by design) with
 shared dbs.

 May be a useless note, but take care to have sync times on both servers
 (A and B) !

 Regards,
 Bogdan


 Henk Hesselink wrote:
 Hi Bogdan,

 Did you make the patch?

 Regards,

 Henk


 Bogdan-Andrei Iancu wrote:

 Hi Henk,

 Yes, I'm aware of this issue with the db_only mode - I will prepare a
 fixing patch for monday, so if you could test it, it will be great!

 Thanks and regards,
 Bogdan

 Henk Hesselink wrote:

 Hi all,

 We have several OpenSIPS registrars writing to one location table.
 When one of the registrars restarts it logs a lot of the following:

 WARNING:usrloc:dbrow2info: non-local socketudp::5060...ignoring

 which I believe we can ignore.  But it then 

Re: [OpenSIPS-Devel] [opensips] error in infinite loop io_watch_del: BUG - trying to del fd 34 with flags 2 1 (#591)

2015-08-14 Thread Bogdan Andrei IANCU
The last logs you provided actually indicate that the poll event was an 
EPOLLIN, while that fd is added only for EPOLLOUT :-/ .  This is way, even if 
your fix hides the effects,  it is not dealing with the actual problem.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/591#issuecomment-131118983___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Application crashes after internal_search_ID_avp execution (#600)

2015-08-14 Thread Francisco Godoy
Hi, follow:

# gdb where
 #0  internal_search_ID_avp (flags=value optimized out, id=55, 
 val=0x7fffc93e3ab0, start=0x0) at usr_avp.c:316
#1  search_first_avp (flags=value optimized out, id=55, val=0x7fffc93e3ab0, 
start=0x0) at usr_avp.c:354
#2  0x7ff1bda12ccf in avp2timer (timer=0x7fffc93e3b98) at t_funcs.c:334
#3  fr_inv_avp2timer (timer=0x7fffc93e3b98) at t_funcs.c:364
#4  0x7ff1bda35f30 in reply_received (p_msg=0x7ff1be4bd558) at 
t_reply.c:1574
#5  0x00429041 in forward_reply (msg=0x7ff1be4bd558) at forward.c:575
#6  0x00475396 in receive_msg (buf=value optimized out, len=411, 
rcv_info=0x7fffc93e3d50) at receive.c:209
#7  0x004cfce1 in udp_rcv_loop () at udp_server.c:424
#8  0x00431a60 in main_loop (argc=value optimized out, argv=value 
optimized out) at main.c:884
#9  main (argc=value optimized out, argv=value optimized out) at main.c:1557

# opensips -V

 version: opensips 1.8.4-notls (x86_64/linux)
flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, 
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:10429M
@(#) $Id: main.c 10273 2013-10-03 18:40:16Z opensipsrelease $
main.c compiled on 09:02:40 Dec 23 2014 with gcc 4.4.7

Best regards

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/600#issuecomment-131194670___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel