<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Park">Asterisk 11 Application_Park</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk11Application_Park-Park%28%29"></a>Park()</h1>
<h3><a name="Asterisk11Application_Park-Synopsis"></a>Synopsis</h3>
<p>Park yourself.</p>
<h3><a name="Asterisk11Application_Park-Description"></a>Description</h3>
<p>Used to park yourself (typically in combination with a supervised transfer to know the parking space).</p>
<p>If you set the <tt>PARKINGEXTEN</tt> variable to a parking space extension in the parking lot, Park() will attempt to park the call on that extension. If the extension is already is in use then execution will continue at the next priority.</p>
<p>If the <tt>parkeddynamic</tt> option is enabled in <tt>features.conf</tt> the following variables can be used to dynamically create new parking lots.</p>
<p>If you set the <tt>PARKINGDYNAMIC</tt> variable and this parking lot exists then it will be used as a template for the newly created dynamic lot. Otherwise, the default parking lot will be used.</p>
<p>If you set the <tt>PARKINGDYNCONTEXT</tt> variable then the newly created dynamic parking lot will use this context.</p>
<p>If you set the <tt>PARKINGDYNEXTEN</tt> variable then the newly created dynamic parking lot will use this extension to access the parking lot.</p>
<p>If you set the <tt>PARKINGDYNPOS</tt> variable then the newly created dynamic parking lot will use those parking postitions.</p>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Note</b><br />This application must be used as the first extension priority to be recognized as a parking access extension. DTMF transfers and some channel drivers need this distinction to operate properly. The parking access extension in this case is treated like a dialplan hint.</td></tr></table></div>
<div class='panelMacro'><table class='infoMacro'><colgroup><col width='24'><col></colgroup><tr><td valign='top'><img src="/wiki/images/icons/emoticons/information.gif" width="16" height="16" align="absmiddle" alt="" border="0"></td><td><b>Note</b><br />Parking lots automatically create and manage dialplan extensions in the parking lot context. You do not need to explicitly use this application in your dialplan. Instead, all you should do is include the parking lot context in your dialplan.</td></tr></table></div>
<h3><a name="Asterisk11Application_Park-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>Park(timeout,return_context,return_exten,return_priority,options,parking_lot_name)</pre>
</div></div>
<h5><a name="Asterisk11Application_Park-Arguments"></a>Arguments</h5>
<ul>
        <li>timeout - A custom parking timeout for this parked call. Value in milliseconds.</li>
        <li>return_context - The context to return the call to after it times out.</li>
        <li>return_exten - The extension to return the call to after it times out.</li>
        <li>return_priority - The priority to return the call to after it times out.</li>
        <li>options - A list of options for this parked call.
        <ul>
                <li>r - Send ringing instead of MOH to the parked call.</li>
                <li>R - Randomize the selection of a parking space.</li>
                <li>s - Silence announcement of the parking space number.</li>
        </ul>
        </li>
        <li>parking_lot_name - Specify in which parking lot to park a call.The parking lot used is selected in the following order:1) parking_lot_name option2) <tt>PARKINGLOT</tt> variable3) <tt>CHANNEL(parkinglot)</tt> function (Possibly preset by the channel driver.)4) Default parking lot.</li>
</ul>
<h3><a name="Asterisk11Application_Park-SeeAlso"></a>See Also</h3>
<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_ParkAndAnnounce" title="Asterisk 11 Application_ParkAndAnnounce">Asterisk 11 Application_ParkAndAnnounce</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Application_ParkedCall" title="Asterisk 11 Application_ParkedCall">Asterisk 11 Application_ParkedCall</a></li>
</ul>
<h3><a name="Asterisk11Application_Park-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Park">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Park?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>