[OpenSIPS-Devel] [opensips] usrloc module do not sync correctly DB with memory (#402)

2015-01-08 Thread ferrored
I'm using MySQL v.5.5, Ubuntu 14.04 and openSIPS 1.11.3-TLS (revision: eb9bad1) with the following settings for the module usrloc: modparam("usrloc", "db_mode", 2) modparam("usrloc", "timer_interval", 60) modparam("usrloc", "desc_time_order", 1) modparam("usrloc", "matching_mode", 0) The REGI

Re: [OpenSIPS-Devel] [opensips] usrloc module do not sync correctly DB with memory (#402)

2015-01-21 Thread ferrored
Note: 1.11.2-tls git revision: ed698c5 works with no problems --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/402#issuecomment-70827713___ Devel mailing list Devel@lists.opensips.org http://lists.op

Re: [OpenSIPS-Devel] [opensips] usrloc module do not sync correctly DB with memory (#402)

2015-01-22 Thread ferrored
I applied the patch on 1.11 and it works. Thanks Piero --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/402#issuecomment-71014910___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.o

[OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
I migrate from opensips 1115-tls to opensips 1116-tls, and I notice that the function "is_uri_user_e164" no longer work In version 1115-tls I used this code : if (is_uri_user_e164("$ru")) { # $rU begins with the character + if ( !enum_query("nrenumnet") && !enum_query("e164a

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
I don't see anything in the logs about is_uri_user_e164 function, also with debug=8. --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172548924___ Devel mailing list Devel@lists.opens

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
It seems that the function always fails --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172558593___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
for examples +390249459310 --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/762#issuecomment-172570270___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/dev

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
diff opensips-1.11.6-tls/modules/uri/checks.c opensips-1.11.5-tls/modules/uri/checks.c 356,c356 < if (c < '0' || c > '9') return -1; --- > if (c < '0' && c > '9') return -1; replacing (c < '0' || c > '9') with (c < '0' && c > '9') it seems to work --- Reply to this email di

Re: [OpenSIPS-Devel] [opensips] is_uri_user_e164 (#762)

2016-01-18 Thread ferrored
This is the output you ask: Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=3 Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=9 Jan 18 17:54:32 proxysiptest /sbin/opensips[24766]: DBG:uri:e164_check: c=0 Jan 18 17:54:32 proxysiptest /sbin/opensi

Re: [OpenSIPS-Devel] [opensips] usrloc with matching mode 'contact only' may leak in DB (#503)

2016-01-18 Thread ferrored
I would like to ask you if the "duplicate error" is related to issue #503: CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1062): Duplicate entry 'prove-si.unimib.it-sip:prove@IP-7c22475a-ac9cde33-4447' for key 'account_contact_idx' proxysiptest /sbin/opensips[23345]: ERROR:core

[OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-01-19 Thread ferrored
I'm using opensips 1115-tls on a ubuntu 1404-tls server The module usrloc if configure as: modparam("usrloc", "db_mode", 2) modparam("usrloc", "desc_time_order", 1) modparam("usrloc", "matching_mode", 0) #contact only Sometime I get the following error: CRITICAL:db_mysql:wrapper_single_mysql_

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-01-20 Thread ferrored
yes, it is --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/764#issuecomment-173187675___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-01-20 Thread ferrored
Not necessarily after a reboot. I noticed that sometimes it occurs when there is already a record in the table location, a phone is disconnected from the network (the un-register message is NOT sent), and when it is restarted the Aor is overwrote correctly in the memory, but when opensips try

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-01-22 Thread ferrored
On version 1.11.6-tls the errors are a bit differents: CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1062): Duplicate entry 'prove-domain-sip:prove@IP-c83b28bb-5cb83d00-d95e' for key 'account_contact_idx' Jan 22 10:44:21 proxysiptest /sbin/opensips[21541]: ERROR:core:db_do_upd

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-04 Thread ferrored
[polycom-con-registrazioni-multiple.txt](https://github.com/OpenSIPS/opensips/files/117112/polycom-con-registrazioni-multiple.txt) For some reasons that we don't understand, there are two records in the DB referred to the some Aor (see the attachment), and it seems that opensips isn't capable o

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-04 Thread ferrored
location table primary key: id, unique key "account_contact_idx": (username,domain,contact,callid) --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/764#issuecomment-179844994___ Devel mailing list Devel

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-04 Thread ferrored
opensipsctl ul show name.surname Contact:: ;q=0.9;expires=1367;flags=0x0;cflags=0x0;socket=;callid=;methods=0x1F7F;user_agent= there is only one Aor... Piero On Thu, 04 Feb 2016 07:13:38 -0800 Bogdan Andrei IANCU wrote: > If so, how comes the error, as the callid's are >different in th

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-09 Thread ferrored
Hi Bogdan, if I use the "f" parameter in the function "save()" , save("vf"), there are no more error messages in the log, but in table location there are still 2 records, one expired that should be erased by opensips, while in memory there is only the correct Aor memory: opensipsctl ul show nam

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-09 Thread ferrored
Hi Bogdan, if I restart the phone, associated to the identity name.surname, I found three records in the table location [duplicate-error.txt](https://github.com/OpenSIPS/opensips/files/122956/duplicate-error.txt) while in memory: opensipsctl ul show name.surname Contact:: ;q=0.9;expires=3414;fl

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-16 Thread ferrored
Hi Bogdan, I can reproduce the duplicate error. Set usrloc time_interval=15 and execute >sipp -sf duplicate-scenario.xml -inf register-scenario.csv 149.132.5.117 -m 100 [duplicate-scenario.xml.txt](https://github.com/OpenSIPS/opensips/files/132062/duplicate-scenario.xml.txt) [Uploading register-sc

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-16 Thread ferrored
To get get the duplicate error you should send other two register messages for the user --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/764#issuecomment-185054200___ Devel mailing list Devel@lists.opens

Re: [OpenSIPS-Devel] [opensips] duplicate entry (#764)

2016-02-18 Thread ferrored
I applied the patch in my dev environment and it works. Thank you very much Piero --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/764#issuecomment-185631099___ Devel mailing list Devel@lists.opensips.