Re: [sipX-dev] Record Route Processing in Requests
On Mon, 2008-08-18 at 18:12 -0400, Arjun Nair wrote:
> 1. In the SipDialog constructor, check for dialog initiating Requests,
> that are initiated from the remote side. If found, set the Route sets
> from this Request.
>
> 2. Add an extra function argument - "UtlBoolean responseIsDialogForming"
> to SipMessage::setResponseData(), with a default value of "FALSE". If
> this argment is set to "TRUE" then any Record-Routes present in the
> Request is added to the Response.
I think the name might better be "responseMayBeDialogForming" -- the
problem is that the sender doesn't always know whether the response will
be dialog-forming or not, and we can only omit Record-Route processing
if we *know* that the response is not dialog-forming. This also bears
on whether the default value should be FALSE. At least in principle,
the default should be to handle Record-Route.
(How is this done for INVITEs?)
> In SipSubscriptionMgr::updateDialogInfo(), where the "202 Accepted"
> dialog-forming Response is build, call the SipMessage::setResponseData()
> with "UtlBoolean responseIsDialogForming" set to "TRUE".
Dale