2010-03-16 23:49:35 +00:00
|
|
|
/*
|
|
|
|
* Asterisk -- An open source telephony toolkit.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010, Digium, Inc.
|
|
|
|
*
|
|
|
|
* Tilghman Lesher <tlesher AT digium DOT com>
|
|
|
|
*
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
|
|
|
*
|
|
|
|
* This program is free software, distributed under the terms of
|
|
|
|
* the GNU General Public License Version 2. See the LICENSE file
|
|
|
|
* at the top of the source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \file
|
|
|
|
* \brief Gosub tests
|
|
|
|
*
|
2012-09-22 20:43:30 +00:00
|
|
|
* \author Tilghman Lesher \verbatim <tlesher AT digium DOT com> \endverbatim
|
2010-03-16 23:49:35 +00:00
|
|
|
*
|
|
|
|
* \ingroup tests
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*** MODULEINFO
|
|
|
|
<depend>TEST_FRAMEWORK</depend>
|
2011-08-16 20:15:23 +00:00
|
|
|
<support_level>core</support_level>
|
2010-03-16 23:49:35 +00:00
|
|
|
***/
|
|
|
|
|
|
|
|
#include "asterisk.h"
|
|
|
|
|
git migration: Refactor the ASTERISK_FILE_VERSION macro
Git does not support the ability to replace a token with a version
string during check-in. While it does have support for replacing a
token on clone, this is somewhat sub-optimal: the token is replaced
with the object hash, which is not particularly easy for human
consumption. What's more, in practice, the source file version was often
not terribly useful. Generally, when triaging bugs, the overall version
of Asterisk is far more useful than an individual SVN version of a file. As a
result, this patch removes Asterisk's support for showing source file
versions.
Specifically, it does the following:
* Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
remove passing the version in with the macro. Other facilities
than 'core show file version' make use of the file names, such as
setting a debug level only on a specific file. As such, the act of
registering source files with the Asterisk core still has use. The
macro rename now reflects the new macro purpose.
* main/asterisk:
- Refactor the file_version structure to reflect that it no longer
tracks a version field.
- Remove the "core show file version" CLI command. Without the file
version, it is no longer useful.
- Remove the ast_file_version_find function. The file version is no
longer tracked.
- Rename ast_register_file_version/ast_unregister_file_version to
ast_register_file/ast_unregister_file, respectively.
* main/manager: Remove value from the Version key of the ModuleCheck
Action. The actual key itself has not been removed, as doing so would
absolutely constitute a backwards incompatible change. However, since
the file version is no longer tracked, there is no need to attempt to
include it in the Version key.
* UPGRADE: Add notes for:
- Modification to the ModuleCheck AMI Action
- Removal of the "core show file version" CLI command
Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
2015-04-11 21:38:22 -05:00
|
|
|
ASTERISK_REGISTER_FILE()
|
2010-03-16 23:49:35 +00:00
|
|
|
|
|
|
|
#include "asterisk/utils.h"
|
|
|
|
#include "asterisk/module.h"
|
|
|
|
#include "asterisk/test.h"
|
|
|
|
#include "asterisk/pbx.h"
|
2010-04-09 15:56:55 +00:00
|
|
|
#include "asterisk/channel.h"
|
2010-03-16 23:49:35 +00:00
|
|
|
|
|
|
|
AST_TEST_DEFINE(test_gosub)
|
|
|
|
{
|
2015-06-08 11:09:57 -04:00
|
|
|
#define CONTEXT_NAME "tests_test_gosub_virtual_context"
|
2010-03-16 23:49:35 +00:00
|
|
|
int res = AST_TEST_PASS, i;
|
|
|
|
struct ast_channel *chan;
|
|
|
|
struct ast_str *str;
|
|
|
|
struct testplan {
|
|
|
|
const char *app;
|
|
|
|
const char *args;
|
|
|
|
const char *expected_value;
|
|
|
|
} testplan[] = {
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${STACK_PEEK(1,e,1)}", "" }, /* Stack is empty */
|
2010-03-16 23:49:35 +00:00
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1" },
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${PRIORITY}", "1" },
|
2010-03-16 23:49:35 +00:00
|
|
|
{ NULL, "${EXTEN}", "s" },
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${STACK_PEEK(1,e,1)}", "" }, /* No extension originally */
|
2010-03-16 23:49:35 +00:00
|
|
|
{ "Gosub", "test,dne,1", (const char *) -1 }, /* This is the only invocation that should fail. */
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${PRIORITY}", "1" },
|
2010-03-16 23:49:35 +00:00
|
|
|
{ NULL, "${EXTEN}", "s" },
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(5,5,5,5,5)" },
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${PRIORITY}", "1" },
|
2010-03-16 23:49:35 +00:00
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG5}]", "10" },
|
Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
This change restores functionality that was present in 1.4, when AEL macros
were implemented with the Macro dialplan application. Macros are fraught with
functionality issues, because they consume a large portion of the underlying
application stack. This limits the ability of AEL users to call many layers
of subroutines, an issue which Gosub does not have (originally tested to
100,000 levels deep). Therefore, starting in 1.6.0, AEL macros were
implemented with Gosub.
However, there were some implicit behaviors of Macro, which were not replicated
at the same time as with the transition to Gosub, one of which is documented in
the related issue. In particular, the "h" extension is designed to execute not
in the Macro context, but in the topmost calling context. Due to legacy issues
with a misapplied bugfix many years ago, when a macro exited in 1.4, it looks
in all calling contexts, bubbling up from the deepest level until it finds an
"h" extension.
Since AEL hides the complexity of the underlying dialplan logic from the AEL
programmer, it's reasonable to assume that this behavior should not change in
the transition from Asterisk 1.4 LTS to Asterisk 1.8 LTS, lest we break
working AEL configurations in the transition to Asterisk 1.8 LTS. This fix
is the result, which implements a search for the "h" extension in all calling
Gosub contexts.
Fixes ASTERISK-19336
Patch: 20120308__ael_bugfix_for_trunk__2.diff (License #5003) by Tilghman Lesher
(with slight modifications for 1.8)
Tested by: Johan Wilfer
Review: https://reviewboard.asterisk.org/r/1776/
........
Merged revisions 358810 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 358811 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358812 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-03-13 08:06:20 +00:00
|
|
|
{ NULL, "${STACK_PEEK(1,e)}", "s" },
|
|
|
|
{ NULL, "${STACK_PEEK(1,c)}", "tests_test_gosub_virtual_context" },
|
|
|
|
{ NULL, "${STACK_PEEK(1,p)}", "1" },
|
|
|
|
{ NULL, "${STACK_PEEK(1,l)}", "tests_test_gosub_virtual_context,s,1" },
|
|
|
|
{ "StackPop", "" },
|
|
|
|
{ NULL, "${STACK_PEEK(1,e,1)}", "" }, /* Only 1 frame deep, my caller is top-level */
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(5,5,5,5,5)" },
|
2010-03-16 23:49:35 +00:00
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(4,4,4,4)" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG5}]", "4" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG4}]", "8" },
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(3,3,3)" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG4}]", "3" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG3}]", "6" },
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(2,2)" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG3}]", "2" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG2}]", "4" },
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1(1)" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG2}]", "1" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG1}]", "2" },
|
|
|
|
{ "Gosub", "tests_test_gosub_virtual_context,s,1" },
|
|
|
|
{ NULL, "$[0${ARG1} + 0${ARG1}]", "0" }, /* All arguments are correctly masked */
|
|
|
|
{ "Set", "LOCAL(foo)=5" },
|
|
|
|
{ NULL, "${foo}", "5" }, /* LOCAL() set a variable correctly */
|
|
|
|
{ NULL, "${LOCAL_PEEK(0,ARG1)}", "" }, /* LOCAL_PEEK() arguments work correctly */
|
|
|
|
{ NULL, "${LOCAL_PEEK(4,ARG1)}", "4" }, /* LOCAL_PEEK() arguments work correctly */
|
|
|
|
{ NULL, "$[0${LOCAL_PEEK(3,ARG1)} + 0${LOCAL_PEEK(5,ARG1)}]", "8" },
|
|
|
|
{ "StackPop", "" },
|
|
|
|
{ NULL, "${foo}", "" }, /* StackPop removed the variable set with LOCAL() */
|
|
|
|
{ "Return", "7" },
|
|
|
|
{ NULL, "${GOSUB_RETVAL}", "7" }, /* Return sets a return value correctly */
|
|
|
|
{ NULL, "$[0${GOSUB_RETVAL} + 0${ARG1}]", "9" }, /* Two frames less means ARG1 should have 2 */
|
|
|
|
};
|
|
|
|
|
|
|
|
switch (cmd) {
|
|
|
|
case TEST_INIT:
|
|
|
|
info->name = "gosub application";
|
2010-07-09 17:00:22 +00:00
|
|
|
info->category = "/apps/app_gosub/";
|
2010-03-16 23:49:35 +00:00
|
|
|
info->summary = "Verify functionality of gosub application";
|
|
|
|
info->description =
|
|
|
|
"Verify functionality of gosub application";
|
|
|
|
return AST_TEST_NOT_RUN;
|
|
|
|
case TEST_EXECUTE:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(chan = ast_dummy_channel_alloc())) {
|
|
|
|
ast_test_status_update(test, "Unable to allocate dummy channel\n");
|
|
|
|
return AST_TEST_FAIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(str = ast_str_create(16))) {
|
|
|
|
ast_test_status_update(test, "Unable to allocate dynamic string buffer\n");
|
2011-09-26 19:40:12 +00:00
|
|
|
ast_channel_unref(chan);
|
2010-03-16 23:49:35 +00:00
|
|
|
return AST_TEST_FAIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Create our test dialplan */
|
2015-06-08 11:09:57 -04:00
|
|
|
if (!ast_context_find_or_create(NULL, NULL, CONTEXT_NAME, "test_gosub")) {
|
2010-03-16 23:49:35 +00:00
|
|
|
ast_test_status_update(test, "Unable to create test dialplan context");
|
|
|
|
ast_free(str);
|
2011-09-26 19:40:12 +00:00
|
|
|
ast_channel_unref(chan);
|
2010-03-16 23:49:35 +00:00
|
|
|
return AST_TEST_FAIL;
|
|
|
|
}
|
|
|
|
|
2015-06-08 11:09:57 -04:00
|
|
|
ast_add_extension(CONTEXT_NAME, 1, "s", 1, NULL, NULL, "NoOp", ast_strdup(""), ast_free_ptr, "test_gosub");
|
2010-03-16 23:49:35 +00:00
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_LEN(testplan); i++) {
|
|
|
|
if (testplan[i].app == NULL) {
|
|
|
|
/* Evaluation */
|
|
|
|
ast_str_substitute_variables(&str, 0, chan, testplan[i].args);
|
|
|
|
if (strcmp(ast_str_buffer(str), testplan[i].expected_value)) {
|
|
|
|
ast_test_status_update(test, "Evaluation of '%s' returned '%s' instead of the expected value '%s'\n",
|
|
|
|
testplan[i].args, ast_str_buffer(str), testplan[i].expected_value);
|
|
|
|
res = AST_TEST_FAIL;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
/* Run application */
|
2010-03-17 14:16:54 +00:00
|
|
|
intptr_t exec_res;
|
2010-03-16 23:49:35 +00:00
|
|
|
struct ast_app *app = pbx_findapp(testplan[i].app);
|
|
|
|
if (!app) {
|
|
|
|
ast_test_status_update(test, "Could not find '%s' in application listing!\n", testplan[i].app);
|
|
|
|
res = AST_TEST_FAIL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((exec_res = pbx_exec(chan, app, testplan[i].args)) && ((const char *) exec_res != testplan[i].expected_value)) {
|
2010-03-17 00:23:12 +00:00
|
|
|
ast_test_status_update(test, "Application '%s' exited abnormally (with code %d)\n", testplan[i].app, (int) exec_res);
|
2010-03-16 23:49:35 +00:00
|
|
|
res = AST_TEST_FAIL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ast_free(str);
|
2011-09-26 19:40:12 +00:00
|
|
|
ast_channel_unref(chan);
|
2015-06-08 11:09:57 -04:00
|
|
|
ast_context_remove_extension(CONTEXT_NAME, "s", 1, NULL);
|
|
|
|
ast_context_destroy(NULL, "test_gosub");
|
2010-03-16 23:49:35 +00:00
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int unload_module(void)
|
|
|
|
{
|
|
|
|
AST_TEST_UNREGISTER(test_gosub);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int load_module(void)
|
|
|
|
{
|
|
|
|
AST_TEST_REGISTER(test_gosub);
|
|
|
|
return AST_MODULE_LOAD_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Gosub Tests");
|