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.
Thanks ! Luiz Gustavo Chiaretto ----- Original Message ----- From: "Doug Lytle" <[email protected]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <[email protected]> Sent: Friday, February 25, 2011 2:31:20 PM Subject: Re: [asterisk-users] Handle in dialplan user disconnection Luiz Gustavo Chiaretto wrote: > > only need identify when user's hangup in a Read/Background/Dial > > application. If you're going to be doing a read/background/dial, then just before any of them, set a variable. For example: exten s,1,Set(_Flag=Read) exten s,n,Read(get-admin-password|enter-password|||3|) exten s,n,Hangup() exten h,1,GotoIf($["${Flag}" = "Read"]?Do_Something) By the way, this is just off the top of my head, none of it has ever been tested. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
