----- Forwarded Message -----
Send resiprocate-devel mailing list submissions to
resiprocate-devel@xxxxxxxxxxxxxxxTo subscribe or unsubscribe via the World Wide Web, visit
https://list.resiprocate.org/mailman/listinfo/resiprocate-develor, via email, send a message with subject or body 'help' to
resiprocate-devel-request@xxxxxxxxxxxxxxxYou can reach the person managing the list at
resiprocate-devel-owner@xxxxxxxxxxxxxxxWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of resiprocate-devel digest..."
Today's Topics:
1. DUM reject() should have minExpires, warning, where
appropriate (John Gregg)
2. DUM: enablePrack methods? (John Gregg)
3. Re: DUM: enablePrack methods? (Scott
Godin)
4. Re: retransmit patch (Scott Godin)
We have found it useful to make the reject() method take optional
parameters for a warning header and a minExpires header where appropriate.
In an hxx file:
void reject(int statusCode, int minExpiry = -1, const WarningCategory *
warning = NULL);
Then in the cxx file:
ServerRegistration::reject(int statusCode, int minExpiry, const
WarningCategory * warning)
{
InfoLog( << "rejected a registration " << mAor << " with
statusCode=" << statusCode );
@@ -167,6 +167,16 @@
SharedPtr<SipMessage> failure(new SipMessage);
mDum.makeResponse(*failure, mRequest, statusCode);
failure->remove(h_Contacts);
+ if (minExpiry != -1)
+ {
+ failure->header(h_MinExpires).value() = minExpiry;
+
}
+
+ if (warning)
+ {
+ failure->header(h_Warnings).push_back(*warning);
+ }
+
mDum.send(failure);
delete(this);
}
Of course, not all reject() methods want both new arguments. Diff files
from 1.9.6 attached.
regards,
-John Gregg
I am updating some old app code that used an older resiprocate version.
It did this:
mDum->getMasterProfile()->addSupportedOptionTag(Token(Symbols::C100rel));
which of course hits this assert in 1.9.6:
void
MasterProfile::addSupportedOptionTag(const Token& tag)
{
if (tag == Token(Symbols::C100rel))
{
//use enablePrackUas and enablePrackUac
assert(0);
}
mSupportedOptionTags.push_back(tag);
}
Am I correct in thinking that
my app should just not do that anymore? A
quick grep reveals no such routines as enablePrackUas and
enablePrackUac, so at the very least, the comment should be changed.
regards,
-John Gregg
Hi John,
When you enable PRACK via the setUasReliableProvisionalMode and setUacReliableProvisionalMode profile API's DUM will automatically add the 100rel to the Support headers for you.
I will update the comments with the correct API names.
Scott
Done - with some minor mods.
Thanks,
Scott
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxhttps://list.resiprocate.org/mailman/listinfo/resiprocate-devel