<div>Thanks, Andrew.</div>
<div> </div>
<div>I downloaded the latest branch as on today 27th March. I tried to access the 'PARKEDAT' variable in the following manner, but always the value of ${PARKEDAT} is displayed blank. Actually i want to access this variable when dialed on another extension.
</div>
<div>Can you give me some sample dialplan showing the usage.</div>
<div> </div>
<div>Please advice.</div>
<div> </div>
<div>Sharath</div>
<div> </div>
<div>[default]</div>
<div>
<p>include => parkedcalls<br>exten => 4170056,1,Answer<br>exten => 4170056,2,Wait(1)<br>exten => 4170056,3,Playback(welcome)<br>exten => 4170056,4,ParkAndAnnounce(|20||default,${EXTEN},5)<br>exten => 4170056,5,NoOp(${PARKEDAT})
<br>exten => 4170056,6,Playback(goodbye)<br>exten => 4170056,7,Hungup</p>
<p>exten => 4170057,1,Answer<br>exten => 4170057,2,Wait(1)<br>exten => 4170057,3,NoOp(${PARKEDAT})<br>exten => 4170057,4,ParkedCalls(${PARKEDAT})<br></p>
<p> </p>
<p><span class="gmail_quote">On 3/25/06, <b class="gmail_sendername">Andrew Kohlsmith</b> <<a href="mailto:akohlsmith-asterisk@benshaw.com">akohlsmith-asterisk@benshaw.com</a>> wrote:</span></p></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Friday 24 March 2006 09:42, Sharath Chandra wrote:<br>> I am using ParkAndAnnounce to Park the call and explicitly retrieving using
<br>> ParkedCall app in the dial plan. I am trying to guess the parking lot being<br>> used in a particular call by incrementing a counter just before the<br>> ParkAndAnnounce and decrement the counter just before the ParkedCall. I am
<br>> not sure if this is the right way to do. What i want to know is when is the<br>> parking lot released for recycling. Is is a safe assumption to decrement<br>> just before ParkedCall.<br><br>There was a patch added recently (it's mine, which is how I know this) which
<br>allows you to programmatically see where the parked call has been placed.<br>You should use that instead of trying to hack your way around it with counter<br>variables, since that is a race condition just waiting to happen.
<br><br>*CLI> show application ParkAndAnnounce<br><br>-= Info about application 'ParkAndAnnounce' =-<br><br>[Synopsis]<br>Park and Announce<br><br>[Description]<br>ParkAndAnnounce(announce:template|timeout|dial|[return_context]):
<br>Park a call into the parkinglot and announce the call to another channel.<br><br>announce template: Colon-separated list of files to announce. The word PARKED<br> will be replaced by a say_digits of the extension in which
<br> the call is parked.<br>timeout: Time in seconds before the call returns into the return<br> context.<br>dial: The app_dial style resource to call to make the<br>
announcement. Console/dsp calls the console.<br>return_context: The goto-style label to jump the call back into after<br> timeout. Default <priority+1>.<br><br>The variable ${PARKEDAT} will contain the parking extension into which the
<br>call was placed. Use with the Local channel to allow the dialplan to make<br>use of this information.<br><br>-A.<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">
Easynews.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a>
<br></blockquote></div><br>