Removed superfluous warning when the RTP module receives an unmatched termination message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2840 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
d2418f656d
commit
b59a769cc3
|
@ -935,8 +935,9 @@ bool RtpHandler::received(Message &msg)
|
|||
if (trans && !trans.startsWith("RTP/"))
|
||||
return false;
|
||||
Debug(&splugin,DebugAll,"%s message received",(trans ? trans.c_str() : "No-transport"));
|
||||
bool terminate = msg.getBoolValue("terminate",false);
|
||||
String dir(msg.getValue("direction"));
|
||||
RTPSession::Direction direction = RTPSession::SendRecv;
|
||||
RTPSession::Direction direction = terminate ? RTPSession::FullStop : RTPSession::SendRecv;
|
||||
bool d_recv = false;
|
||||
bool d_send = false;
|
||||
if (dir == "bidir") {
|
||||
|
@ -965,7 +966,8 @@ bool RtpHandler::received(Message &msg)
|
|||
Debug(&splugin,DebugAll,"Wrapper %p found by ID '%s'",w,rid);
|
||||
}
|
||||
if (!(ch || de || w)) {
|
||||
Debug(&splugin,DebugWarn,"Neither call channel nor RTP wrapper found!");
|
||||
if (!terminate)
|
||||
Debug(&splugin,DebugWarn,"Neither call channel nor RTP wrapper found!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue