[Asterisk-cvs] asterisk/channels/h323 ast_h323.cpp,1.49,1.50

jeremy at lists.digium.com jeremy at lists.digium.com
Wed May 26 15:00:23 CDT 2004


Update of /usr/cvsroot/asterisk/channels/h323
In directory mongoose.digium.com:/tmp/cvs-serv28782

Modified Files:
	ast_h323.cpp 
Log Message:
properly clean capabilites from the endpoint

Index: ast_h323.cpp
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- ast_h323.cpp	25 May 2004 02:27:59 -0000	1.49
+++ ast_h323.cpp	26 May 2004 19:14:51 -0000	1.50
@@ -853,6 +853,7 @@
 int h323_set_capability(int cap, int dtmfMode)
 {
 	H323Capabilities oldcaps;
+	PStringArray codecs;
 	int g711Frames = 30;
 	int gsmFrames  = 4;
 
@@ -863,7 +864,10 @@
 
 	/* clean up old capabilities list before changing */
 	oldcaps = endPoint->GetCapabilities();
-	oldcaps.RemoveAll();
+	for (PINDEX i=0; i< oldcaps.GetSize(); i++) {
+                 codecs.AppendString(oldcaps[i].GetFormatName());
+         }
+         endPoint->RemoveCapabilities(codecs);
 
 	mode = dtmfMode;
 	if (dtmfMode == H323_DTMF_INBAND) {




More information about the svn-commits mailing list