<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 12:45 PM, jonathan white <span dir="ltr"><<a href="mailto:jw@uvacity.com" target="_blank">jw@uvacity.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Can you write the unique variable to astdb and then write it back to the variable?  </p>
<p dir="ltr">Not sure I have thought this through</p>
<p dir="ltr">J</p>
<div class="gmail_quote"><div><div class="h5">On 11 Jun 2014 18:42, "Kelly Opal" <<a href="mailto:kelly@ncwcom.com" target="_blank">kelly@ncwcom.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">

<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Hi</div>
<div>        I am trying to set up a hold 
system so that a call is always parked in the same spot no matter how many times 
it is picked up. My problem is I cannot fins a variable the identifies the call 
all the way through until it is destroyed. ${UNIQUEID} and ${CHANNEL}  both 
seam to get lost when the call is parked. I tried setting </div>
<div>    set($[“${UNIQUEID}-hold”=”701”])</div>
<div>and</div>
<div>    set($[“${CHANNEL}-hold”=”701”])</div>
<div> </div>
<div>and both work fine until I do a transfer to park. Then both variables are 
blank. Is there any variable that is persistent to a call through all of the 
transfers.</div>
<div> </div>
<div>asterisk 11.6-cert1</div>
<div>centos 5.7</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Kelly</div><br clear="all"></div></div></div></div></div></blockquote></div></blockquote></div><br></div><div class="gmail_extra">You are most likely running into masquerades. A masquerade is an internal operation in Asterisk that involves renaming a channel. When this occurs, your AMI client will receive a sequence of Masquerade and Rename events. Your client will need to update its tracking of the channel based on those events.<br>
<br>Alternatively, you can move to Asterisk 12. One of the major projects that was done in that version was to remove the visibility of masquerades from external systems (and mostly purge them internally), such that channels have a stable, consistent identifier for the channel throughout its lifetime.<br>
</div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div>
</div></div>