make sure capability set is clean before setting new value(s)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara 2004-04-13 18:26:27 +00:00
parent 7ed519ba84
commit d3f45d14b3
1 changed files with 2 additions and 0 deletions

View File

@ -858,6 +858,8 @@ int h323_set_capability(int cap, int dtmfMode)
return 1;
}
endPoint->SetCapability(0, 0, 0);
mode = dtmfMode;
if (dtmfMode == H323_DTMF_INBAND) {
endPoint->SetSendUserInputMode(H323Connection::SendUserInputAsTone);