[asterisk-users] Handle in dialplan user disconnection

2011-02-25 Thread Sidarta Aguiar de Oliveira
Hi folks, How handle in dialplan when a user disconnected ? The first try was using the special context h, however all hangups are handled by this context and I only need identify when user's hangup in a Read/Background/Dial application. Can asterisk send to dialplan only when the user

Re: [asterisk-users] Handle in dialplan user disconnection

2011-02-25 Thread Doug Lytle
Sidarta Aguiar de Oliveira wrote: only need identify when user's hangup in a Read/Background/Dial application. Set a flag for those cases and then trap it in the H extension Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety,

Re: [asterisk-users] Handle in dialplan user disconnection

2011-02-25 Thread Luiz Gustavo Chiaretto
: Doug Lytle supp...@drdos.info To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Sent: Friday, February 25, 2011 10:06:00 AM Subject: Re: [asterisk-users] Handle in dialplan user disconnection Sidarta Aguiar de Oliveira wrote: only need identify when

Re: [asterisk-users] Handle in dialplan user disconnection

2011-02-25 Thread Doug Lytle
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

Re: [asterisk-users] Handle in dialplan user disconnection

2011-02-25 Thread Luiz Gustavo Chiaretto
To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com 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