[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:41:25 CEST 2015
With the proposed patch:
```
2015/08/06 20:33:18.668584 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-29228-1-0
From: <sip:3000 at 127.0.0.1>;tag=1
To: <sip:3000 at 127.0.0.1>
Call-ID: 1-29228 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-29228-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.77bd
Call-ID: 1-29228 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:33:19.081447 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-29232-1-0
From: <sip:3000 at 127.1.0.1>;tag=1
To: <sip:3000 at 127.1.0.1>
Call-ID: 1-29232 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 200 OK
Via: SIP/2.0/UDP 172.17.0.4:5061;branch=z9hG4bK-29232-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.4f39
Call-ID: 1-29232 at 172.17.0.4
CSeq: 1 REGISTER
Contact: <sip:3000 at 127.1.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
```
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/278#issuecomment-128470440
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150806/0ed11362/attachment-0001.html>
More information about the sr-dev
mailing list