Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Version-1.5.0 Release-Type-FINAL Roadmap-Fix Component-Sip-Servlets

New issue 2066 by jackiemar.rgc: Miss Record-Route in Response
http://code.google.com/p/mobicents/issues/detail?id=2066

3261 12.1.1 When a UAS responds to a request with a response that establishes a dialog (such as a 2xx to INVITE), the UAS MUST copy all Record-Route header field values from the request into the response (including the URIs, URI parameters, and any Record-Route header field parameters, whether they are known or unknown to the UAS) and MUST maintain the order of those values.

We use B2BUA helper to create the response for re-INVITE.

---
// Other responses then to initial request
SipServletRequest otherReq = b2b.getLinkedSipServletRequest(response.getRequest()); responseToCaller = otherReq.createResponse(status, response.getReasonPhrase());
---

Get re-INVITE of B2BUA
------------------------
<message
from="10.63.30.140"
to="10.63.20.64:5060"
time="1288306769946"
isSender="false"
transactionId="z9hg4bk76ae899182fd2006246711874"
callId="[email protected]"
firstLine="INVITE sip:10.63.20.64:5060 SIP/2.0"

<![CDATA[INVITE sip:10.63.20.64:5060 SIP/2.0^M
From: <sip:[email protected]:5060;recording=false;speech=false>;tag=ds-4ae1-4d16^M To: <sip:[email protected]>;tag=12752443_ce4e0fc4_5568871c-f117-4749-bccd-65f9b97e19f2^M
Contact: <sip:[email protected]:5060>;transport=udp^M
Call-ID: [email protected]^m
CSeq: 1 INVITE^M
Content-Type: application/sdp^M
Via: SIP/2.0/UDP 10.63.30.140;branch=z9hG4bK76ae899182fd2006246711874^M
Via: SIP/2.0/UDP 10.63.30.159:5060^M
Max-Forwards: 70^M
Record-Route: <sip:10.63.30.140;lr>^M
Content-Length: 191^M
^M
v=0^M
o=- 1288306769 1288306769 IN IP4 10.63.30.159^M
s=SIP Call^M
c=IN IP4 0.0.0.0^M
t=0 0^M
m=audio 1274 RTP/AVP 0 101^M
a=rtpmap:0 pcmu/8000^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
]]>
</message>

SEND response from B2BUA
------------------------
<message
from="10.63.20.64:5060"
to="10.63.30.140:5060"
time="1288306770001"
isSender="true"
transactionId="z9hg4bk76ae899182fd2006246711874"
callId="[email protected]"
firstLine="SIP/2.0 200 OK"

<![CDATA[SIP/2.0 200 OK^M
To: <sip:[email protected]>;tag=12752443_ce4e0fc4_5568871c-f117-4749-bccd-65f9b97e19f2^M
Via: SIP/2.0/UDP 10.63.30.140;branch=z9hG4bK76ae899182fd2006246711874^M
Via: SIP/2.0/UDP 10.63.30.159:5060^M
CSeq: 1 INVITE^M
Call-ID: [email protected]^m
From: <sip:[email protected]:5060;recording=false;speech=false>;tag=ds-4ae1-4d16^M
Contact: <sip:10.63.20.64:5060>^M
Content-Type: application/sdp^M
Content-Length: 219^M
^M
v=0^M
o=nextone-msw 22689 16290 IN IP4 10.63.30.110^M
s=sip call^M
c=IN IP4 0.0.0.0^M
t=0 0^M
m=audio 27202 RTP/AVP 0 101^M
a=inactive^M
a=rtpmap:0 PCMU/8000^M
a=rtpmap:101 telephone-event/8000^M
a=fmtp:101 0-15^M
a=maxptime:20^M
]]>
</message>



Reply via email to