<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
C. Chad Wallace wrote:
<blockquote cite="mid:20090827121239.1b49faef@ws80.int.tlc" type="cite">
  <pre wrap="">At 11:52 AM on 27 Aug 2009, Mat Murdock wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">[parkedcallstimeout]

exten =&gt; _SIP011XX,1,Answer()
exten =&gt; _SIP011XX,n,NoOp(Call Parked on: ${PARKINGSLOT})
exten =&gt; _SIP011XX,n,NoOp(This is who parked us: ${EXTEN})
exten =&gt; _SIP011XX,n,Set(PARKINGEXTEN=${PARKINGSLOT})
;This sets the PARKINGEXTEN to the parking slot we were parked in.
exten =&gt; 
_SIP011XX,n,Dial(SIP/${EXTEN:4:4},${RINGTIMER},${INTERNAL_DIAL_OPTIONS})
;This send the call back to the person who parked it.  There are a 
couple of global variables I use here.  Nothing unusual here.


So what is the problem?  Well the problem is that the PARKINGEXTEN 
variable gets reset after the dial command in parkedcallstimeout.
That makes it so I cannot find out where that call was originally
parked  If I can find out how to get that little bit of information
when the call is re-parked then I think this will work.  If anyone
has any suggestions on how to accomplish this I would be grateful.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Have you tried prefixing PARKINGEXTEN with '__' (two underscores) on
the Set call in parkedcallstimeout?  That makes it a persistent
variable, which will be inherited by sub-channels, like after a Dial.

exten =&gt; _SIP011XX,n,Set(__PARKINGEXTEN=${PARKINGSLOT})

You might only need one underscore. 
For more info, see 'core show application set'.


  </pre>
</blockquote>
<br>
Perfect.&nbsp; That did the job!&nbsp; Now I have "Sticky Park"!!<br>
<br>
Mat<br>
</body>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</html>