Fixed bug: the 'mode' attribute of ilbc payload overrides the 'ptime' SDP line.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5576 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
9208f469b1
commit
c52c646fd4
|
@ -247,9 +247,13 @@ ObjList* SDPParser::parse(const MimeSdpBody& sdp, String& addr, ObjList* oldMedi
|
|||
const char* forced = m_hacks.getValue("ilbc_forced");
|
||||
if (forced)
|
||||
payload = forced;
|
||||
else if ((mode == 20) || (ptime == 20))
|
||||
else if (mode == 20)
|
||||
payload = "ilbc20";
|
||||
else if ((mode == 30) || (ptime == 30))
|
||||
else if (mode == 30)
|
||||
payload = "ilbc30";
|
||||
else if ((ptime % 30) && !(ptime % 20))
|
||||
payload = "ilbc20";
|
||||
else if ((ptime % 20) && !(ptime % 30))
|
||||
payload = "ilbc30";
|
||||
else
|
||||
payload = m_hacks.getValue(YSTRING("ilbc_default"),"ilbc30");
|
||||
|
|
Loading…
Reference in New Issue