Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

parking.h

Go to the documentation of this file.
00001 /* 00002 * Asterisk -- A telephony toolkit for Linux. 00003 * 00004 * Call Parking and Pickup API 00005 * 00006 * Copyright (C) 1999, Mark Spencer 00007 * 00008 * Mark Spencer <markster@linux-support.net> 00009 * 00010 * This program is free software, distributed under the terms of 00011 * the GNU General Public License. 00012 * 00013 * Includes code and algorithms from the Zapata library. 00014 * 00015 */ 00016 00017 #ifndef _PARKING_H 00018 #define _PARKING_H 00019 00020 //! Park a call and read back parked location 00021 /*! \param chan the channel to actually be parked 00022 \param host the channel which will have the parked location read to 00023 Park the channel chan, and read back the parked location to the 00024 host. If the call is not picked up within a specified period of 00025 time, then the call will return to the last step that it was in 00026 (in terms of exten, priority and context) 00027 \param timeout is a timeout in milliseconds 00028 \param extout is a parameter to an int that will hold the parked location, or NULL if you want 00029 */ 00030 extern int ast_park_call(struct ast_channel *chan, struct ast_channel *host, int timeout, int *extout); 00031 //! Park a call via a masqueraded channel 00032 /*! \param rchan the real channel to be parked 00033 \param host the channel to have the parking read to 00034 Masquerade the channel rchan into a new, empty channel which is then 00035 parked with ast_park_call 00036 \param timeout is a timeout in milliseconds 00037 \param extout is a parameter to an int that will hold the parked location, or NULL if you want 00038 */ 00039 extern int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *host, int timeout, int *extout); 00040 00041 //! Determine system parking extension 00042 /*! Returns the call parking extension for drivers that provide special 00043 call parking help */ 00044 extern char *ast_parking_ext(void); 00045 extern char *ast_pickup_ext(void); 00046 00047 //! Bridge a call, optionally allowing redirection 00048 00049 extern int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer,struct ast_bridge_config *config); 00050 00051 extern int ast_pickup_call(struct ast_channel *chan); 00052 00053 00054 #endif /* _PARKING_H */

Generated on Sat Jun 12 16:40:58 2004 for Asterisk by doxygen 1.3.7