Parking: Add 'AnnounceChannel' argument to manager action 'Park'

(closes ASTERISK-23397)
Reported by: Denis
Review: https://reviewboard.asterisk.org/r/3446/
........

Merged revisions 413196 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2014-05-02 16:06:40 +00:00
parent 120ac66df9
commit 57372e61d2
4 changed files with 135 additions and 14 deletions

View File

@@ -385,6 +385,19 @@ void publish_parked_call_failure(struct ast_channel *parkee);
*/
void publish_parked_call(struct parked_user *pu, enum ast_parked_call_event_type event_type);
/*!
* \since 12.3.0
* \brief Create a parking announcement subscription
*
* \param chan Channel that will receive the announcement
* \param parkee_uuid Unique ID of the channel being parked
* \param hangup_after if non-zero, have the channel hangup after hearing the announcement
*
* \retval 0 on success
* \retval -1 on failure
*/
int create_parked_subscription(struct ast_channel *chan, const char *parkee_uuid, int hangup_after);
/*!
* \since 12.0.0
* \brief Setup a parked call on a parking bridge without needing to parse appdata