[svn-commits] mjordan: trunk r395410 - in /trunk: include/asterisk/features.h main/features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 25 10:29:57 CDT 2013


Author: mjordan
Date: Thu Jul 25 10:29:55 2013
New Revision: 395410

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395410
Log:
Remove some dead parking call

Since nothing is using these global parking functions, remove them!

The first of many.

Modified:
    trunk/include/asterisk/features.h
    trunk/main/features.c

Modified: trunk/include/asterisk/features.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/features.h?view=diff&rev=395410&r1=395409&r2=395410
==============================================================================
--- trunk/include/asterisk/features.h (original)
+++ trunk/include/asterisk/features.h Thu Jul 25 10:29:55 2013
@@ -62,52 +62,6 @@
 	AST_FEATURE_FLAG_BYCALLER =  (1 << 4),
 	AST_FEATURE_FLAG_BYBOTH	 =   (3 << 3),
 };
-
-/*!
- * \brief Park a call and read back parked location
- *
- * \param park_me Channel to be parked.
- * \param parker Channel parking the call.
- * \param timeout is a timeout in milliseconds
- * \param park_exten Parking lot access extension (Not used)
- * \param extout is a parameter to an int that will hold the parked location, or NULL if you want.
- *
- * \details
- * Park the park_me channel, and read back the parked location
- * to the parker channel.  If the call is not picked up within a
- * specified period of time, then the call will return to the
- * last step that it was in (in terms of exten, priority and
- * context).
- *
- * \note Use ast_park_call_exten() instead.
- *
- * \retval 0 on success.
- * \retval -1 on failure.
- */
-int ast_park_call(struct ast_channel *park_me, struct ast_channel *parker, int timeout, const char *park_exten, int *extout);
-
-/*!
- * \brief Park a call and read back parked location
- * \since 1.8.9
- *
- * \param park_me Channel to be parked.
- * \param parker Channel parking the call.
- * \param park_exten Parking lot access extension
- * \param park_context Parking lot context
- * \param timeout is a timeout in milliseconds
- * \param extout is a parameter to an int that will hold the parked location, or NULL if you want.
- *
- * \details
- * Park the park_me channel, and read back the parked location
- * to the parker channel.  If the call is not picked up within a
- * specified period of time, then the call will return to the
- * last step that it was in (in terms of exten, priority and
- * context).
- *
- * \retval 0 on success.
- * \retval -1 on failure.
- */
-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);
 
 /*!
  * \brief Park a call via a masqueraded channel

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=395410&r1=395409&r2=395410
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Thu Jul 25 10:29:55 2013
@@ -1394,67 +1394,6 @@
 	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.
  *




More information about the svn-commits mailing list