[asterisk-users] Handle in dialplan user disconnection

Doug Lytle support at drdos.info
Fri Feb 25 11:31:20 CST 2011


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."




More information about the asterisk-users mailing list