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

[reSIProcate] Session destroyed while in OnTerminated(..)


All,
 
I'm sure this is not new information but I am wondering what, if anything could/will be done to the following problem regarding OnTerminated() callback.
 
When one sends an BYE with InviteSessionHandle->end() the following happens:
1. The BYE msg is built and put on the Fifo ready to be sent on the wire
2. the session is transitioned to IsTerminating()
3. The onTerminated() callback is fired.
 
If system load causes a slowdown, it quite easy to be manipulating the session in OnTerminated() and the AppDialog, AppdialogSet and InviteSession all get destroyed before exiting the callback. This happens when the BYE gets a 200 OK answer and the session is torn down.
 
It seems that there is a window of ~15ms before the BYE msg is sent out. What's controlling this time?
 
Any suggestions how to get around this issue or if the session will be kept around longer than the receipt of the 200 OK on the BYE. Any forseeable changes to DUM?
 
Bill Kovar
bkovar@xxxxxxxxx
Avaya, Inc.
(732) 852-2609