< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] ServerInviteSession::accept() vs re-INVITE


Hello all.

There is the following comment inside ServerInviteSession class:

/** accept a re-invite, etc.  Always 200? this is only applicable to the UAS */
virtual void accept(int statusCode=200);

But it seems accept() must not be called for re-invites. (At least 
after provideAnswer()). Otherwise DUM (debug) will assert inside 
the function due to unhandled mState == Connected. It seems 
provideAnswer() alone is enough.

If my understanding is correct, could somebody update the misleading 
comment? TIA

-- 
...Bye..Dmitry.