diff --git a/apps/app_test.c b/apps/app_test.c index e873777e41..205571ffee 100644 --- a/apps/app_test.c +++ b/apps/app_test.c @@ -41,18 +41,41 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/pbx.h" #include "asterisk/utils.h" -static char *tests_descrip = - " TestServer(): Perform test server function and write call report.\n" - "Results stored in /var/log/asterisk/testreports/-server.txt"; +/*** DOCUMENTATION + + + Execute Interface Test Server. + + + + Perform test server function and write call report. Results stored in + /var/log/asterisk/testreports/<testid>-server.txt + + + TestClient + + + + + Execute Interface Test Client. + + + + An ID to identify this test. + + + + Executes test client with given testid. Results stored in + /var/log/asterisk/testreports/<testid>-client.txt + + + TestServer + + + ***/ + static char *tests_app = "TestServer"; -static char *tests_synopsis = "Execute Interface Test Server"; - -static char *testc_descrip = - " TestClient(testid): Executes test client with given testid.\n" - "Results stored in /var/log/asterisk/testreports/-client.txt"; - static char *testc_app = "TestClient"; -static char *testc_synopsis = "Execute Interface Test Client"; static int measurenoise(struct ast_channel *chan, int ms, char *who) { @@ -458,8 +481,8 @@ static int load_module(void) { int res; - res = ast_register_application(testc_app, testclient_exec, testc_synopsis, testc_descrip); - res |= ast_register_application(tests_app, testserver_exec, tests_synopsis, tests_descrip); + res = ast_register_application_xml(testc_app, testclient_exec); + res |= ast_register_application_xml(tests_app, testserver_exec); return res; }