[OpenSIPS-Users] Multiple re-registrations in location table

Nikitah Bobhate nikitah.bobhate at nashua-communications.com
Fri Mar 1 14:22:58 CET 2013


Hello,

I am in the process of upgrading our version of OpenSIPS from version 1.6.2
to version 1.8.2 and am facing a bit of a problem. I have noticed that
re-registrations sent from a UA are saved as NEW entries in the location table.
Previously in OpenSIPS 1.6.2, it would overwrite the previous location entry for
the same agent. As an example, the following user's initial registration is saved
to the location table (first entry in the example below). The user is registering
over TCP. After about 2 minutes the UA (Linphone in this example) sends a
re-register (second entry in the example below). Only the cseq and expires fields
are different between the entries. This continues for however long the UA is on
(if I exit Linphone, a deregister is sent). Note the table example only shows a few fields.

+---------------+-------------------------------------------------------------------------------------------+---------------------------------------------------+---------------------------+---------------+------+
|  username   |  contact                                                                                                     |  received                                                  |  expires                      |  callid         | cseq |
+---------------+-------------------------------------------------------------------------------------------+---------------------------------------------------+---------------------------+---------------+------+
| bar-dub-001 | sip:bar-dub-001 at 192.168.0.104;transport=tcp;line=87e866fdd0c119f<mailto:sip:bar-dub-001 at 192.168.0.104;transport=tcp;line=87e866fdd0c119f> | sip:192.168.0.104:44222;transport=TCP | 2013-03-01 15:02:27 | 311789608 |    2   |
+---------------+-------------------------------------------------------------------------------------------+---------------------------------------------------+---------------------------+---------------+------+
| bar-dub-001 | sip:bar-dub-001 at 192.168.0.104;transport=tcp;line=87e866fdd0c119f<mailto:sip:bar-dub-001 at 192.168.0.104;transport=tcp;line=87e866fdd0c119f> | sip:192.168.0.104:44222;transport=TCP | 2013-03-01 15:06:29 | 311789608 |    4   |
+---------------+-------------------------------------------------------------------------------------------+---------------------------------------------------+---------------------------+---------------+------+

Is this behavior correct? Should OpenSIPS be adding re-registers as new
entries into the location table? Is there a way I can get the newer re-registers
to replace the older entries?

I have the following in my OpenSIPS config file:

modparam("registrar", "max_contacts", 1)
...
...
if (is_method("REGISTER")) {
...
    if (!save("location","f"))
        sl_reply_error();
...
}


Thanks,
--

Nikitah Bobhate
Junior Developer

[logo]

Nashua Communications (Pty) Ltd.
Unit 12 Growthpoint Business Park
No 2 Tonnetti Street, Midrand, 1685
nikitah.bobhate at nashua-communications.com<mailto:firstname.surname at nashua-communications.com>
www.nashua-communications.com<http://www.nashua-communications.com/>


Disclaimer and Confidentiality Note

This e-mail communication, its attachments, if any, and any rights attaching to it are, unless the context clearly indicates otherwise, the property of Nashua Communications. It is confidential, private and intended for the addressee only. If you are not the intended recipient and receive this communication in error, you are hereby notified that any review, copying, use, discloser or distribution in any manner whatsoever is strictly prohibited. Please notify the sender immediately that you have received this e-mail in error and delete the e-mail and any copies of it. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of Nashua Communications. Nashua Communications accepts no liability for any loss or damage whatsoever, and howsoever incurred or suffered resulting or arising from the use of this e-mail communication and/or its attachments.

Nashua Communications does not warrant the integrity of this e-mail communication nor that it is free of errors, viruses, interception or interference. Nashua Communications, its divisions and subsidiary companies expressly excludes sections 11, 12, and 13 of the Electronic Communications and Transactions Act, 25 of 2002 ("the ECT") in respect of e-contracting. No data message or electronic communication will be recognised as having a legal contractual status under the ECT Act. All agreements concluded by Nashua Communications will only be legally binding when reduced to physical writing and physically signed by a duly authorised representative of Nashua Communications. For more information about Nashua Communications, visit our website at www.nashuacommunications.co.za<http://www.nashuacommunications.co.za>

Nikitah Bobhate
Technical

Nashua Communications (Pty) Ltd.
Unit 10 Growthpoint Business Park
No 2 Tonnetti Street, Midrand, 1685
P: +27 87 944 8900
F: +27 87 940 0001
M: +27 72 398 7076
nikitah.bobhate at nashua-communications.com
www.nashua-communications.com<http://www.nashua-communications.com>

[Description: logo]


Nashua ECN and Nashua Communications have merged.

This email is sent subject to the terms and conditions detailed in the Nashua Communications Email Disclaimer
<http://www.nashuacommunications.com/disclaimer-and-confidentiality-note>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130301/44f42347/attachment-0001.htm>


More information about the Users mailing list