<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><span>Thanks a lot for the idea Doug but it's complicated to use because i have to unset the flag every time that asterisk hangs up the call. Somebody knows another solution for our problem. <br><br>Thanks !<br><br><span name="x"></span><div><div><font style="font-weight: bold;" size="2"><span style="font-family: arial,helvetica,sans-serif;">Luiz Gustavo Chiaretto</span></font><br><img src="http://freeddom.com/images/signature/signature.jpg"><br></div></div><span name="x"></span><br></span><br><hr id="zwchr"><b>From: </b>"Doug Lytle" &lt;support@drdos.info&gt;<br><b>To: </b>"Asterisk Users Mailing List - Non-Commercial Discussion" &lt;asterisk-users@lists.digium.com&gt;<br><b>Sent: </b>Friday, February 25, 2011 2:31:20 PM<br><b>Subject: </b>Re: [asterisk-users] Handle in dialplan user disconnection<br><br>Luiz Gustavo Chiaretto wrote:<br>&gt; &gt; only need identify when user's hangup in a Read/Background/Dial<br>&gt; &gt; application.<br><br>If you're going to be doing a read/background/dial, then just before any <br>of them, set a variable. &nbsp;For example:<br><br>exten s,1,Set(_Flag=Read)<br>exten s,n,Read(get-admin-password|enter-password|||3|)<br>exten s,n,Hangup()<br><br><br>exten h,1,GotoIf($["${Flag}" = "Read"]?Do_Something)<br><br><br>By the way, this is just off the top of my head, none of it has ever <br>been tested.<br><br>Doug<br><br><br>-- <br><br>Ben Franklin quote:<br><br>"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."<br><br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://www.asterisk.org/hello<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; http://lists.digium.com/mailman/listinfo/asterisk-users<br></div></body></html>