package com.sipstacks.script;
import java.util.List;

public abstract class ExternalFunction implements Statement {
	
	abstract public String run(List<String> args);

	public OutputStream exec() throws ScriptParseException {
		OutputStream os = new OutputStream();
		os.appendText(run(null));
		return os;
	}
	public OutputStream exec(List<String> args) throws ScriptParseException {
		OutputStream os = new OutputStream();
		os.appendText(run(args));
		return os;
	}

	public void reset() {}

	public String dump() {
		return "**Can't dump external functions!**\n";
	}
}

@@ -562,11 +562,81 @@
 *%5Cn%22;%0A%09%7D
+%0A%0A%09@Override%0A%09public void getFunctions(List%3CFunction%3E functions) %7B%0A%0A%09%7D
 %0A%7D%0A

fix missing function