The recommendation of RFC-3261 dialog layer w.r.t to localTargetURI at
UAS holds true here for response generation when a dialog is formed or
when requests are sent on an established dialogs. Once a response is
sent with a to-tag ( first provisonal 1xx response other than 100 trying
or first 2xx if no prov response is sent ) a dialog is created at the
UAS and at that point of time "localTargetUri" portion of dialog is
populated with information received in the incoming To header and
"localTag" is populated based on the generated tag at UAS.
Now on this dialog when a response is sent by the UAS it should copy
back the remoteTargetUri into To header and also append the localTag in
the to header. For subsequent requests in this dialog will copy the
remoteTargetUri into from header. Below are references from RFC-3261..
Please note that some requets can be non-dialog forming. In those cases
resposne will still be generated as per recommendation of Section
8.2.6.2.
Hopefully this helps answer your query.
Regards,
Indresh K Singh
8.2.6.2 Headers and Tags
..........
If a request contained a To tag in the request, the To header field
in the response MUST equal that of the request. However, if the To
header field in the request did not contain a tag, the URI in the To
header field in the response MUST equal the URI in the To header
field; additionally, the UAS MUST add a tag to the To header field in
the response (with the exception of the 100 (Trying) response, in
which a tag MAY be present). This serves to identify the UAS that is
responding, possibly resulting in a component of a dialog ID. The
same tag MUST be used for all responses to that request, both final
and provisional (again excepting the 100 (Trying)). Procedures for
the generation of tags are defined in Section 19.3.
12 Dialogs
.........
As one would expect for a UAS, the Call-ID value of the
dialog ID is set to the Call-ID of the message, the remote tag is set
to the tag in the From field of the message, and the local tag is set
to the tag in the To field of the message.
13.3.1.1 Progress
..........
These provisional responses establish early dialogs and therefore
follow the procedures
of Section 12.1.1 in addition to those of Section 8.2.6.
12.1.1 UAS behavior
.......
The remote URI MUST be set to the URI in the From field, and the
local URI MUST be set to the URI in the To field.
12.2 Requests within a Dialog
........
Once a dialog has been established between two UAs, either of them
MAY initiate new transactions as needed within the dialog. The UA
sending the request will take the UAC role for the transaction. The
UA receiving the request will take the UAS role.
12.2.1 UAC Behavior
12.2.1.1 Generating the Request
A request within a dialog is constructed by using many of the
components of the state stored as part of the dialog.
The URI in the To field of the request MUST be set to the remote URI
from the dialog state. The tag in the To header field of the request
MUST be set to the remote tag of the dialog ID. The From URI of the
request MUST be set to the local URI from the dialog state. The tag
in the From header field of the request MUST be set to the local tag
of the dialog ID.
........
-----Original Message-----
From: sip-implementors-bounces at lists.cs.columbia.edu
[mailto:sip-implementors-bounces at lists.cs.columbia.edu] On
Behalf Of ext Biju Kayakal
Sent: Tuesday, July 31, 2007 6:09 PM
To: sip-implementors at lists.cs.columbia.edu
Subject: [Sip-implementors] URI parameter in To and From headers
Hi All,
A SIP endpoint receives a request containing the transport
param as URI parameter in the To header ?
E.g.
To: <sip:97775551000 at 45.60.51.41;transport=tcp>
Should it copy this URI parameter in the To header when it forms the
response ?
Also should it also copy this URI param into the From header
when it has
to send subsequent requests within this dialog ?
RFC 3261 stats that when forming responses,
"If the To header field in the request did not contain a tag,
the URI in
the To header field in the response MUST equal the URI in the
To header
field"
"The From URI of the request MUST be set to the local URI from the
dialog state"
How should the URI parameters be handled in this regard ?
Any inputs would be appreciated.
Thanks
-Biju
_______________________________________________
Sip-implementors mailing list
Sip-implementors at lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors