The jabber client engine default value for 'printxml' is now 'verbose'.

git-svn-id: http://voip.null.ro/svn/yate@4013 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-12-22 16:01:38 +00:00
parent f8431f884c
commit 3769d428df
2 changed files with 5 additions and 2 deletions

View File

@ -50,5 +50,5 @@
; Allowed values are boolean values or 'verbose' string
; If verbose is specified, XML elements' children, attributes or text will be
; shown on separate lines
; Defaults to no
;printxml=no
; Defaults to verbose
;printxml=verbose

View File

@ -748,7 +748,10 @@ void JBEngine::initialize(const NamedList& params)
int lvl = params.getIntValue("debug_level",-1);
if (lvl != -1)
debugLevel(lvl);
JBClientEngine* client = YOBJECT(JBClientEngine,this);
String tmp = params.getValue("printxml");
if (!tmp && client)
tmp = "verbose";
m_printXml = tmp.toBoolean() ? -1: ((tmp == "verbose") ? 1 : 0);
m_streamReadBuffer = fixValue(params,"stream_readbuffer",