Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6509 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
49e4ee3ead
commit
62217132de
|
@ -152,8 +152,12 @@ bool SDPSession::dispatchRtp(SDPMedia* media, const char* addr, bool start,
|
||||||
if (!param)
|
if (!param)
|
||||||
continue;
|
continue;
|
||||||
String tmp = param->name();
|
String tmp = param->name();
|
||||||
if (tmp.startSkip(sdpPrefix,false) && tmp)
|
if (tmp.startSkip(sdpPrefix,false) && tmp) {
|
||||||
|
DDebug(m_enabler,DebugInfo,
|
||||||
|
"Updating (from RTP message) %s parameter '%s' to '%s' [%p]",
|
||||||
|
media->c_str(),tmp.c_str(),param->c_str(),this);
|
||||||
media->parameter(tmp,*param,false);
|
media->parameter(tmp,*param,false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_secure) {
|
if (m_secure) {
|
||||||
|
@ -278,8 +282,11 @@ bool SDPSession::updateSDP(const NamedList& params, bool defaults)
|
||||||
if (!param)
|
if (!param)
|
||||||
continue;
|
continue;
|
||||||
tmp = param->name();
|
tmp = param->name();
|
||||||
if (tmp.startSkip(prefix,false) && (tmp.find('_') < 0))
|
if (tmp.startSkip(prefix,false) && (tmp.find('_') < 0)) {
|
||||||
|
DDebug(m_enabler,DebugInfo,"%s (SDP update) %s parameter '%s' to '%s' [%p]",
|
||||||
|
append ? "Adding" : "Updating",rtp->c_str(),tmp.c_str(),param->c_str(),this);
|
||||||
rtp->parameter(tmp,*param,append);
|
rtp->parameter(tmp,*param,append);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!lst)
|
if (!lst)
|
||||||
|
@ -756,8 +763,8 @@ void SDPSession::updateFormats(const NamedList& msg, bool changeMedia)
|
||||||
continue;
|
continue;
|
||||||
SDPMedia* rtp = static_cast<SDPMedia*>(m_rtpMedia->operator[](media));
|
SDPMedia* rtp = static_cast<SDPMedia*>(m_rtpMedia->operator[](media));
|
||||||
if (rtp) {
|
if (rtp) {
|
||||||
DDebug(m_enabler,DebugInfo,"Updating %s parameter '%s' to '%s'",
|
DDebug(m_enabler,DebugInfo,"Updating (formats update) %s parameter '%s' to '%s' [%p]",
|
||||||
media.c_str(),tmp.c_str(),param->c_str());
|
media.c_str(),tmp.c_str(),param->c_str(),this);
|
||||||
rtp->parameter(tmp,*param,false);
|
rtp->parameter(tmp,*param,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue