Re: [OpenSIPS-Users] registration problem
Hello, Could you please also attach the part of the script where you're handling registrations ? Best Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 17.09.2013 14:23, Miha wrote: Hi, I am experiencing wird thing. Sometime UAC register ok, but sometimes not, it is just randomly . Could someone help me out with what is going on and what I did wrong in cfg file:) Here is full debug log: http://pastebin.com/a00tvEAe tnx! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] registration problem
Hi, I am experiencing wird thing. Sometime UAC register ok, but sometimes not, it is just randomly . Could someone help me out with what is going on and what I did wrong in cfg file:) Here is full debug log: http://pastebin.com/a00tvEAe tnx! ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Registration problem?
Hello all, I'm having a random registration problem I haven't had a chance to fight yet. Right now, 100% of my users have their SIP gateways on static, public IP addresses. We use static entries in the location table to route calls to these locations presently. We're wanting to deploy Linksys ATAs to smaller locations, these units would be behind NAT with dynamic addresses. I have MediaProxy all setup and happy. Outbound calls work great. However, I'm a little confused about how dynamic registrations work in OpenSIPS. My Linksys devices re-register every 5 minutes or so. When this happens, I end up with multiple entries in the subscriber table. I'd really only like to keep the most up-to-date registration. Any thoughts? My second and much larger problem is that I'm using multiple servers, with db_mode set to 3 on the usrloc module (performance is not a concern at the moment), and my servers randomly can't seem to locate the most up-to-date registration. It feels almost as if the server that received the registration knows about it (it's in the DB table immediately, as well) but the other boxes don't pick up on this registration for a while. Shouldn't a value of 3 mean always check the database? It doesn't seem to work as expected. Of note, stopping/starting opensips makes the new registration available immediately. Any advice that would put me in the right direction would be appreciated. Thanks, Jeff ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Registration problem?
My Linksys devices re-register every 5 minutes or so. When this happens, I end up with multiple entries in the subscriber table. I'd really only like to keep the most up-to-date registration. Any thoughts? Subscriber? Do you mean the location table? You should only have one location if you sent a re-REGISTER,, right after the original register expired... so do you have any SIP trace on that? Regards, -- /Saúl http://www.saghul.net | http://www.sipdoc.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Registration problem?
Yes, location table, sorry. I appear to have solved my problem, albeit entirely from guessing. I had usrloc's matching_mode set to 1. I'm not 100% confident I understand the difference between using the call ID to match on registration, but I do know I went from perhaps a 50% chance to receive a call every few minutes to not having a single failure the rest of the day. I'd love to know what I fixed. Advice? Jeff -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Saúl Ibarra Sent: Thursday, October 15, 2009 6:37 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Registration problem? My Linksys devices re-register every 5 minutes or so. When this happens, I end up with multiple entries in the subscriber table. I'd really only like to keep the most up-to-date registration. Any thoughts? Subscriber? Do you mean the location table? You should only have one location if you sent a re-REGISTER,, right after the original register expired... so do you have any SIP trace on that? Regards, -- /Saúl http://www.saghul.net | http://www.sipdoc.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Registration problem?
It sems like re-REGISTERS where seen as new ones. Have a look at the contact matching doc: http://www.opensips.org/html/docs/modules/devel/usrloc.html#contact-matching-algs It would also be nice to see the first REGISTER and compare it to the re-REGISTER so we could undertand why this happened. -- /Saúl http://www.saghul.net | http://www.sipdoc.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] REGISTRATION PROBLEM
hi, I have installed opensips-1.4.4 on a debian machine. I have changed the configuration file from openser-1.3.4 to opensips 1.4.4 and i have done the corresponding changes. opensips starts but when i try to register a user i can see only 401 UNAUTHORIZED though the user is added in the subscriber table and the domain is also added in domain table. I am adding the chunk of code that is responsible for registeration . Please let me know if any thing is wrong in the code. ## Register request handler^M if (is_uri_host_local()) {^M if (!www_authorize(, subscriber)) {^M log(1,\n***AUTHENTICATING\n); - Am able to traverse till here. www_challenge(, 1);^M log(1,\n ** Challenging failed\n); exit;^M };^M if (!check_to()) {^M log(1,\n* failed check_to\n); sl_send_reply(403, Forbidden);^M exit;^M };^M if(!search(^Contact:[ ]*\*) nat_uac_test(19)) {^M log(1,---NAT Checking\n);^M setbflag(6);^M fix_nated_register();^M force_rport();^M };^M save(location);^M exit;^M } else if {^M log(1,\n**I AM NOT ALLOWED\n); sl_send_reply(403, Forbidden);^M };^M -- Thanking You, Ashwini BR Naidu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users