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.
|
; or TGCP protocols too.
|
||||||
;version=
|
;version=
|
||||||
|
|
||||||
; default: bool: This is the default gateway to send commands to
|
; cluster: bool: This is the gateway to send remote RTP commands to
|
||||||
; The first gateway which is not explicitely disabled or the last that is
|
; Do not activate this functionality unless you know very well what it does
|
||||||
; explicitely enabled will become default
|
; as it disrupts other based RTP protocols
|
||||||
;default=no
|
;cluster=no
|
||||||
|
|
||||||
; voicechans: string: The range of channels used for voice (data) transfer
|
; voicechans: string: The range of channels used for voice (data) transfer
|
||||||
; Channel intervals may be specified by separating the margins using the '-' character
|
; Channel intervals may be specified by separating the margins using the '-' character
|
||||||
|
|
|
@ -1734,15 +1734,16 @@ bool RtpHandler::received(Message& msg)
|
||||||
if (w)
|
if (w)
|
||||||
Debug(&splugin,DebugAll,"Wrapper %p found by ID",w);
|
Debug(&splugin,DebugAll,"Wrapper %p found by ID",w);
|
||||||
}
|
}
|
||||||
|
const char* epId = msg.getValue("mgcp_endpoint",s_defaultEp);
|
||||||
if (!(ch || w)) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w)
|
if (w)
|
||||||
return w->rtpMessage(msg);
|
return w->rtpMessage(msg);
|
||||||
|
|
||||||
const char* epId = msg.getValue("mgcp_endpoint",s_defaultEp);
|
|
||||||
if (!epId)
|
if (!epId)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -1857,7 +1858,7 @@ void MGCPPlugin::initialize()
|
||||||
);
|
);
|
||||||
if (ep) {
|
if (ep) {
|
||||||
ep->alias = sect->getValue("name",name);
|
ep->alias = sect->getValue("name",name);
|
||||||
if (sect->getBoolValue("default",s_defaultEp.null()))
|
if (sect->getBoolValue("cluster",false))
|
||||||
s_defaultEp = ep->toString();
|
s_defaultEp = ep->toString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue