[Opalvoip-user] Invalid PChannel Timeout on OpalMediaTransport ThreadMain
Brought to you by:
csoutheren,
rjongbloed
|
From: Venot E. <e....@vo...> - 2016-05-26 09:52:13
|
Hello, I'm using Opal version 3.16.1. When my Softphone receive a call and the RTP port of the caller is open only after the ACK message, the call is ended by the Softphone without waiting for a timeout. I locate the problem in mediasession.cxx, method OpalMediaTransport::Transport::ThreadMain(). We are in the case of case PChannel::Unavailable, and m_owner->m_mediaTimer.IsRunning() == false. => it fall to the timeout case. In fact I see that the m_owner->m_mediaTimer is never started and it's why the IsRunning return false. For now, I do a quick/dirt change to avoid the case and instead of testing the IsRunning, I test the remaining time that I calcul myself : PInt64 remainingTime = m_owner->m_mediaTimeout.GetMilliSeconds() - m_owner->m_mediaTimer.GetElapsed().GetMilliSeconds(); But I think the problem is certainly due to my integration code part that should implement/don't something and cause the problem of timer not started. I didn't have the issue with Opal 3.14.3. Thanks for your help Etienne |