Renamed configuration parameter "default" to "cluster" to better describe its intended use. Made it by default false as is needed in all current scenarios.
git-svn-id: http://voip.null.ro/svn/yate@3306 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
8906b3b6db
commit
780dcb94ba
|
@ -127,10 +127,10 @@
|
|||
; or TGCP protocols too.
|
||||
;version=
|
||||
|
||||
; default: bool: This is the default gateway to send commands to
|
||||
; The first gateway which is not explicitely disabled or the last that is
|
||||
; explicitely enabled will become default
|
||||
;default=no
|
||||
; cluster: bool: This is the gateway to send remote RTP commands to
|
||||
; Do not activate this functionality unless you know very well what it does
|
||||
; as it disrupts other based RTP protocols
|
||||
;cluster=no
|
||||
|
||||
; voicechans: string: The range of channels used for voice (data) transfer
|
||||
; Channel intervals may be specified by separating the margins using the '-' character
|
||||
|
|
|
@ -1734,15 +1734,16 @@ bool RtpHandler::received(Message& msg)
|
|||
if (w)
|
||||
Debug(&splugin,DebugAll,"Wrapper %p found by ID",w);
|
||||
}
|
||||
const char* epId = msg.getValue("mgcp_endpoint",s_defaultEp);
|
||||
if (!(ch || w)) {
|
||||
Debug(&splugin,DebugWarn,"Neither call channel nor MGCP wrapper found!");
|
||||
if (epId)
|
||||
Debug(&splugin,DebugWarn,"Neither call channel nor MGCP wrapper found!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (w)
|
||||
return w->rtpMessage(msg);
|
||||
|
||||
const char* epId = msg.getValue("mgcp_endpoint",s_defaultEp);
|
||||
if (!epId)
|
||||
return false;
|
||||
|
||||
|
@ -1857,7 +1858,7 @@ void MGCPPlugin::initialize()
|
|||
);
|
||||
if (ep) {
|
||||
ep->alias = sect->getValue("name",name);
|
||||
if (sect->getBoolValue("default",s_defaultEp.null()))
|
||||
if (sect->getBoolValue("cluster",false))
|
||||
s_defaultEp = ep->toString();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue