The following is the Grandstream Configuration Tool API

It is compiled in .net framework 1.1


*******************************************************************************************

namespace com.grandstream;

public class TextEncoder
{
	/** encode an input file and output to an outputfile
	  * InputFile and outputFile parameter is the path of the input/output file.
	  * Mac is the MAC address of the device.
	  * Encryption is a flag to trigger AES128 encryption.
	  */
	public static void Encode(String inputFile, String outputFile, String MAC, boolean encryption) throws Exception;
	
	/** encode an input Stream and return the encoded bytes
	  * The input stream should have the same format as the configuration template i.e. each line for each configuration.
	  * Mac is the MAC address of the device.
	  * Encryption is a flag to trigger AES128 encryption.
	  */	

        public static byte[] Encode(String inputStream, String MAC, bool encryption)
	
	/** encode an input file and return the encoded bytes
	  * customConfig string is an additional configuration that will be appended to the input file content.
	  * Mac is the MAC address of the device.
	  * Encryption is a flag to trigger AES128 encryption.
	  */	

        public static byte[] Encode(String inputFile, String MAC, bool encryption, String customConfig)

	/** encode an input file and output to an outputfile
	  * customConfig string is an additional configuration that will be appended to the input file content.
	  * Mac is the MAC address of the device.
	  * Encryption is a flag to trigger AES128 encryption.
	  */	

        public static void Encode(String inputFile, String outputFile, String MAC, bool encryption, String customConfig)


}

*******************************************************************************************





