Remove all capabilities first
authorJeremy McNamara <jj@nufone.net>
Fri, 16 Apr 2004 05:57:30 +0000 (05:57 +0000)
committerJeremy McNamara <jj@nufone.net>
Fri, 16 Apr 2004 05:57:30 +0000 (05:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2700 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/ast_h323.cpp

index c399912..e912302 100755 (executable)
@@ -850,6 +850,7 @@ void h323_callback_register(setup_incoming_cb       ifunc,
  */
 int h323_set_capability(int cap, int dtmfMode)
 {
  */
 int h323_set_capability(int cap, int dtmfMode)
 {
+       H323Capabilities oldcaps;
        int g711Frames = 30;
        int gsmFrames  = 4;
 
        int g711Frames = 30;
        int gsmFrames  = 4;
 
@@ -859,7 +860,8 @@ int h323_set_capability(int cap, int dtmfMode)
        }
 
        /* clean up old capabilities list before changing */
        }
 
        /* clean up old capabilities list before changing */
-       endPoint->RemoveCapabilities(PStringArray("All"));
+       oldcaps = endPoint->GetCapabilities();
+       oldcaps.RemoveAll();
 
        mode = dtmfMode;
        if (dtmfMode == H323_DTMF_INBAND) {
 
        mode = dtmfMode;
        if (dtmfMode == H323_DTMF_INBAND) {