[SIPForum-discussion] Duplication of SIP Header
Keerthi Srinivasan
keerthivarmansrinivasan at gmail.com
Wed Nov 30 13:48:09 UTC 2011
Hi All,
If the SIP stack receives the duplication Mandatory SIP Header then the SIP
will send failure response or successful response.
Ex:
Scenario 1:
Registrar receives the REGISTER request with *duplication of multiple From
Header like*
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
From: Bob <sip:bob at biloxi.com>;tag=456248
From: Bob <sip:bob at biloxi.com>;tag=456248
From: Bob <sip:bob at biloxi.com>;tag=456248
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 2:
Registrar receives the REGISTER request with *duplication of multiple To
Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
To: Bob <sip:bob at biloxi.com>
To: Bob <sip:bob at biloxi.com>
To: Bob <sip:bob at biloxi.com>
To: Bob <sip:bob at biloxi.com>
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 3:
Registrar receives the REGISTER request with *duplication of multiple Via
Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 4:
Registrar receives the REGISTER request with* duplication of multiple
Call-ID Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
Call-ID: 843817637684230 at 998sdasdh09
Call-ID: 843817637684230 at 998sdasdh09
Call-ID: 843817637684230 at 998sdasdh09
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 5:
Registrar receives the REGISTER request with *duplication of multiple Cseq
Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
CSeq: 1826 REGISTER
CSeq: 1826 REGISTER
CSeq: 1826 REGISTER
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 6:
Registrar receives the REGISTER request with *duplication of multiple
Max-Forwards Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
Max-Forwards: 70
Max-Forwards: 70
Max-Forwards: 70
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Scenario 6:
Registrar receives the REGISTER request with *duplication of multiple
Expires: Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Expires: 7200
Expires: 7200
Expires: 7200
Expires: 7200
Content-Length: 0
Scenario 7:
Registrar receives the REGISTER request with *duplication of multiple
Content-Length Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Content-Length: 0
Scenario 8:
Registrar receives the REGISTER request with *duplication of multiple
request-line Header *
REGISTER sip:registrar.biloxi.com SIP/2.0
REGISTER sip:registrar.biloxi.com SIP/2.0
REGISTER sip:registrar.biloxi.com SIP/2.0
REGISTER sip:registrar.biloxi.com SIP/2.0
REGISTER sip:registrar.biloxi.com SIP/2.0
REGISTER sip:registrar.biloxi.com SIP/2.0
Via: SIP/2.0/UDP bobspc.biloxi.com:5060;branch=z9hG4bKnashds7
Max-Forwards: 70
To: Bob <sip:bob at biloxi.com>
From: Bob <sip:bob at biloxi.com>;tag=456248
Call-ID: 843817637684230 at 998sdasdh09
CSeq: 1826 REGISTER
Contact: <sip:bob at 192.0.2.4>
Expires: 7200
Content-Length: 0
Please anyone can say, how registrar will respond for the above message.
Thanks in advance.
--
Regards,
Keerthi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20111130/72390507/attachment-0002.html>
More information about the discussion
mailing list