Fixed codec negotiation part 1.

git-svn-id: http://voip.null.ro/svn/yate@935 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-07-05 00:04:56 +00:00
parent bd9f91c7dc
commit 4976b89970
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ IAXEvent* IAXTransaction::processAuthReq(IAXEvent* event)
return event;
// Valid authmethod & challenge ?
u_int32_t authmethod;
bool bAuthMethod = event->getList().getNumeric(IAXInfoElement::AUTHMETHODS,authmethod) && authmethod == (u_int32_t)m_authmethod;
bool bAuthMethod = event->getList().getNumeric(IAXInfoElement::AUTHMETHODS,authmethod) && (authmethod & m_authmethod);
bool bChallenge = event->getList().getString(IAXInfoElement::CHALLENGE,m_challenge);
IAXEvent* retEv;
if (bAuthMethod && bChallenge) {