[reSIProcate] Another minor issue: wrong reason text sent byrejectNIT
Scott Godin
slgodin at icescape.com
Thu Sep 15 08:00:54 CDT 2005
Good find. I just committed a fix for this.
Thanks,
Scott
________________________________
From: resiprocate-devel-bounces at list.sipfoundry.org
[mailto:resiprocate-devel-bounces at list.sipfoundry.org] On Behalf Of Alan
Stokes
Sent: Thursday, September 15, 2005 7:41 AM
To: resiprocate-devel at list.sipfoundry.org
Subject: [reSIProcate] Another minor issue: wrong reason text sent
byrejectNIT
If I call InviteSession::rejectNIT after (for example) receiving an INFO
message, it sends a response beginning:
SIP/2.0 488 OK
rather than the expected
SIP/2.0 488 Not Acceptable Here
The reason is that the response message is pre-built (with 200 OK) when
the INFO is received, and rejectNIT changes the status code but doesn't
change the reason text.
It might be useful to factor out the code that computes the text from
the status code from Helper::makeResponse into a separate helper
function, so rejectNIT can make use of it.
I suspect the same problem affects acceptNIT, if anyone were ever to
pass a status code other than the default 200 to it.
- Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050915/3c9ce6ec/attachment.htm>
More information about the resiprocate-devel
mailing list