summaryrefslogtreecommitdiff
path: root/main/features.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-07-25 15:29:55 +0000
committerMatthew Jordan <mjordan@digium.com>2013-07-25 15:29:55 +0000
commit93a70d83e3803be1da1f917c9f201a3a9e3568d0 (patch)
treec3d17b9efbb8f0385196481731f4bd5fe175f7cd /main/features.c
parentfbcc3addf87ebaa64d66482faa98903112804842 (diff)
Remove some dead parking call
Since nothing is using these global parking functions, remove them! The first of many. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/main/features.c b/main/features.c
index 49f771838..417f18c66 100644
--- a/main/features.c
+++ b/main/features.c
@@ -1394,67 +1394,6 @@ static int park_call_full(struct ast_channel *chan, struct ast_channel *peer, st
return 0;
}
-int ast_park_call_exten(struct ast_channel *park_me, struct ast_channel *parker, const char *park_exten, const char *park_context, int timeout, int *extout)
-{
- int res;
- char *parse;
- const char *app_data;
- struct ast_exten *exten;
- struct park_app_args app_args;
- struct ast_park_call_args args = {
- .timeout = timeout,
- .extout = extout,
- };
-
- if (!park_exten || !park_context) {
- return park_call_full(park_me, parker, &args);
- }
-
- /*
- * Determiine if the specified park extension has an exclusive
- * parking lot to use.
- */
- if (parker && parker != park_me) {
- ast_autoservice_start(park_me);
- }
- exten = get_parking_exten(park_exten, parker, park_context);
- if (exten) {
- app_data = ast_get_extension_app_data(exten);
- if (!app_data) {
- app_data = "";
- }
- parse = ast_strdupa(app_data);
- AST_STANDARD_APP_ARGS(app_args, parse);
-
- if (!ast_strlen_zero(app_args.pl_name)) {
- /* Find the specified exclusive parking lot */
- args.parkinglot = find_parkinglot(app_args.pl_name);
- if (!args.parkinglot && parkeddynamic) {
- args.parkinglot = create_dynamic_parkinglot(app_args.pl_name, park_me);
- }
- }
- }
- if (parker && parker != park_me) {
- ast_autoservice_stop(park_me);
- }
-
- res = park_call_full(park_me, parker, &args);
- if (args.parkinglot) {
- parkinglot_unref(args.parkinglot);
- }
- return res;
-}
-
-int ast_park_call(struct ast_channel *park_me, struct ast_channel *parker, int timeout, const char *park_exten, int *extout)
-{
- struct ast_park_call_args args = {
- .timeout = timeout,
- .extout = extout,
- };
-
- return park_call_full(park_me, parker, &args);
-}
-
/*!
* \brief Park call via masqueraded channel and announce parking spot on peer channel.
*