[sr-dev] [kamailio] registrar: max_contacts logic fails when REGISTER contact has sip.instance (#278)

Victor Seva notifications at github.com
Thu Aug 6 20:29:33 CEST 2015


```
modparam("registrar", "max_contacts", 1)
```
Two REGISTERS with the same sip.instace+reg_id should produce an update, but:
```
2015/08/06 20:26:33.903451 127.0.0.1:5061 -> 127.0.0.1:5060
REGISTER sip:127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 172.17.0.4:5061;branch=z9hG4bK-28433-1-0
From: <sip:3000 at 127.0.0.1>;tag=1
To: <sip:3000 at 127.0.0.1>
Call-ID: 1-28433 at 172.17.0.4
CSeq: 1 REGISTER
Contact: <sip:3000 at 127.0.0.1:5061>; reg-id=1;+sip.instance="<urn:uuid:C3DD6013-3000-40E3-8EA2-5849B02ED0C4>"
Max-Forwards: 10
Expires: 120
User-Agent: SIPp/Win32
Content-Length: 0


(null) (null) 127.0.0.1:5060 -> 127.0.0.1:5061
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.17.0.4:5061;branch=z9hG4bK-28433-1-0;received=127.0.0.1
From: <sip:3000 at 127.0.0.1>;tag=1
To: <sip:3000 at 127.0.0.1>;tag=b27e1a1d33761e85846fc98f5f3a7e58.2c14
Call-ID: 1-28433 at 172.17.0.4
CSeq: 1 REGISTER
Contact: <sip:3000 at 127.0.0.1:5061>;expires=30;+sip.instance="<urn:uuid:C3DD6013-3000-40E3-8EA2-5849B02ED0C4>";reg-id=1
Server: kamailio (4.3.0 (x86_64/linux))
Content-Length: 0


2015/08/06 20:26:34.315096 127.0.0.1:5061 -> 127.0.0.1:5060
REGISTER sip:127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 172.17.0.4:5061;branch=z9hG4bK-28437-1-0
From: <sip:3000 at 127.1.0.1>;tag=1
To: <sip:3000 at 127.1.0.1>
Call-ID: 1-28437 at 172.17.0.4
CSeq: 1 REGISTER
Contact: <sip:3000 at 127.1.0.1:5061>; reg-id=1;+sip.instance="<urn:uuid:C3DD6013-3000-40E3-8EA2-5849B02ED0C4>"
Max-Forwards: 10
Expires: 120
User-Agent: SIPp/Win32
Content-Length: 0


(null) (null) 127.0.0.1:5060 -> 127.0.0.1:5061
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 172.17.0.4:5061;branch=z9hG4bK-28437-1-0;received=127.0.0.1
From: <sip:3000 at 127.1.0.1>;tag=1
To: <sip:3000 at 127.1.0.1>;tag=b27e1a1d33761e85846fc98f5f3a7e58.2dc6
Call-ID: 1-28437 at 172.17.0.4
CSeq: 1 REGISTER
Contact: <sip:3000 at 127.0.0.1:5061>;expires=29;+sip.instance="<urn:uuid:C3DD6013-3000-40E3-8EA2-5849B02ED0C4>";reg-id=1
P-Registrar-Error: Too many registered contacts
Server: kamailio (4.3.0 (x86_64/linux))
Content-Length: 0
```



---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/278
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150806/73321f1b/attachment.html>


More information about the sr-dev mailing list