[reSIProcate] SipMessage::isExternal() == true on a locally generated failure

Francis Joanis francis.joanis at gmail.com
Tue Nov 16 10:03:37 CST 2010


Hi guys,

(resip 1.6)

In the following scenario:

- Send message (OPTIONS, ...) to a invalid UDP URI
- Timer F expires
- SIP stack sends 408 Request Timeout to DUM (Transaction User)

I'm seeing that the message that gets sent to the DUM has isExternal() ==
true, even though it was locally generated.

It gets set into Helper::makeResponse because the supplied request (the
outgoing OPTIONS) has isExternal() == false:

   if (request.isExternal())
   {
       response.setFromTU();
   }
   else
   {
       response.setFromExternal();
   }

In this case, I was expecting isExternal() == false since the response
didn't come from the wire.

The problem I'm trying to solve is discerning between true locally generated
message (failures + successes) and true remotely generated ones.

Does this make sense :) ?

Thanks,
Francis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20101116/3060771e/attachment.htm>


More information about the resiprocate-devel mailing list