Re: [reSIProcate] replacing assertions
I believe there are two main types of assertions in resip:
1. Assertions that really signify a bug in the resip stack. These are mainly in the stack and rutil projects.
2. Assertions caused by miss-use of the public API's. Most of these are in the DUM API's. ie: attempting things in an Invite session when in the wrong state.
I think the main issue is with the assertions that fall into #2. I would like to see a sweep of the DUM code to convert the ones that make sense from assertions to throws. I've already done some this for the provideOffer and provideAnswer API's.
Note: In most cases the assertions that fall into #1 will not benefit from a conversion to throw. These are typically triggered in internal bug conditions only where throwing or continuing through the assertion would not fix the damage. It's also quite likely that many code locations that do #1 assertions would not catch exceptions anyway.
Scott