diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-11-02 01:22:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-11-02 01:22:37 +0000 |
commit | 48dd350c80677624c91e762d8e723f7b477c9d00 (patch) | |
tree | 7716be539f7d504929f57e88f521166219e712d0 /include | |
parent | e9162dfc7c0b151ad453db675e8d17be9dbd28f2 (diff) |
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/parking.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/asterisk/parking.h b/include/asterisk/parking.h new file mode 100755 index 000000000..6b3dec1f1 --- /dev/null +++ b/include/asterisk/parking.h @@ -0,0 +1,47 @@ +/* + * Asterisk -- A telephony toolkit for Linux. + * + * Call Parking API + * + * Copyright (C) 1999, Mark Spencer + * + * Mark Spencer <markster@linux-support.net> + * + * This program is free software, distributed under the terms of + * the GNU General Public License. + * + * Includes code and algorithms from the Zapata library. + * + */ + +#ifndef _PARKING_H +#define _PARKING_H + +//! Park a call and read back parked location +/*! \param chan the channel to actually be parked + \param host the channel which will have the parked location read to + Park the channel chan, and read back the parked location to the + host. 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) +*/ +extern int ast_park_call(struct ast_channel *chan, struct ast_channel *host); +//! Park a call via a masqueraded channel +/*! \param rchan the real channel to be parked + \param host the channel to have the parking read to + Masquerade the channel rchan into a new, empty channel which is then + parked with ast_park_call +*/ +extern int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *host); + +//! Determine system parking extension +/*! Returns the call parking extension for drivers that provide special + call parking help */ +extern char *ast_parking_ext(void); + +//! Bridge a call, optionally allowing redirection + +extern int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer, int allowredirect); + + +#endif /* _PARKING_H */ |