Send ringing if ring with content flag is set and call is progressing with ealy media
git-svn-id: http://yate.null.ro/svn/yate/trunk@5038 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
8cd7d633de
commit
f6e6e325d3
|
@ -1182,8 +1182,14 @@ void YJGConnection::disconnected(bool final, const char* reason)
|
|||
bool YJGConnection::msgProgress(Message& msg)
|
||||
{
|
||||
DDebug(this,DebugInfo,"msgProgress [%p]",this);
|
||||
if (m_ftStatus == FTNone)
|
||||
setEarlyMediaOut(msg);
|
||||
if (m_ftStatus != FTNone)
|
||||
return true;
|
||||
if (ringFlag(RingWithContent) && msg.getBoolValue("earlymedia",true) &&
|
||||
getPeer() && getPeer()->getSource()) {
|
||||
m_ringFlags |= RingRinging;
|
||||
sendRinging(&msg);
|
||||
}
|
||||
setEarlyMediaOut(msg);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue